From 689c7e14c7f35b651f68f0a96d4a24f544f18043 Mon Sep 17 00:00:00 2001 From: Sebastian Hack Date: Wed, 22 Mar 2006 15:02:00 +0000 Subject: [PATCH] Set the register class of the call pointer --- ir/be/beabi.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ir/be/beabi.c b/ir/be/beabi.c index 3a086eee0..72e07f72c 100644 --- a/ir/be/beabi.c +++ b/ir/be/beabi.c @@ -555,6 +555,13 @@ static ir_node *adjust_call(be_abi_irg_t *env, ir_node *irn, ir_node *curr_sp) else low_call = be_new_Call(irg, bl, curr_mem, curr_sp, call_ptr, curr_res_proj + pset_count(caller_save), n_low_args, in); + /* + TODO: + Set the register class of the call address to the same as the stack pointer's. + That' probably buggy for some architectures. + */ + be_node_set_reg_class(low_call, be_pos_Call_ptr, sp->reg_class); + /* Set the register classes and constraints of the Call parameters. */ for(i = 0; i < n_low_args; ++i) { int index = low_args[i]; -- 2.20.1