summaryrefslogtreecommitdiff
path: root/gcc/stmt.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-27 17:36:20 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-27 17:36:20 +0000
commit05927e409381dcdbb63e22b18f2906f1241775c6 (patch)
tree6974cc8c80b55c205754b981c6f2050865b697e6 /gcc/stmt.c
parent38606abfc3739b1525c09d7f860dcb0081906b0a (diff)
downloadgcc-05927e409381dcdbb63e22b18f2906f1241775c6.tar.gz
* function.c (expand_function_end): Don't init arg_pointer_save_area.
(get_arg_pointer_save_area): New. Create an init it here. (fix_lexical_addr): Use it. * function.h: Declare it. * builtins.c (expand_builtin_setjmp_receiver): Use it. * stmt.c (expand_nl_goto_receiver): Use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45200 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r--gcc/stmt.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c
index 0a15a4a8992..123c9d3c2b7 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -3490,16 +3490,9 @@ expand_nl_goto_receiver ()
#endif
{
/* Now restore our arg pointer from the address at which it
- was saved in our stack frame.
- If there hasn't be space allocated for it yet, make
- some now. */
- if (arg_pointer_save_area == 0)
- arg_pointer_save_area
- = assign_stack_local (Pmode, GET_MODE_SIZE (Pmode), 0);
+ was saved in our stack frame. */
emit_move_insn (virtual_incoming_args_rtx,
- /* We need a pseudo here, or else
- instantiate_virtual_regs_1 complains. */
- copy_to_reg (arg_pointer_save_area));
+ copy_to_reg (get_arg_pointer_save_area (cfun)));
}
}
#endif