diff options
author | Richard Henderson <rth@redhat.com> | 2011-03-03 13:56:58 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2011-03-03 13:56:58 -0800 |
commit | 9eac0f2a07b6e919feacfcd30c19a3058dd58e01 (patch) | |
tree | 1bc97a08baf05002d630ce3689e67be7e0a590fb /gcc/function.c | |
parent | dfee1406b912a5d6fa1d199414121e8c8c8e265d (diff) | |
download | gcc-9eac0f2a07b6e919feacfcd30c19a3058dd58e01.zip gcc-9eac0f2a07b6e919feacfcd30c19a3058dd58e01.tar.gz gcc-9eac0f2a07b6e919feacfcd30c19a3058dd58e01.tar.bz2 |
explow.c (emit_stack_save): Remove 'after' parameter.
* explow.c (emit_stack_save): Remove 'after' parameter.
(emit_stack_restore): Likewise.
* expr.h: Update to match.
* builtins.c, calls.c, stmt.c: Likewise.
* config/alpha/alpha.md, config/avr/avr.md: Likewise.
* config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
* function.c (expand_function_end): Insert the emit_stack_save
sequence before parm_birth_insn instead of after.
From-SVN: r170663
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/gcc/function.c b/gcc/function.c index 8b80485..19b480d 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -5121,10 +5121,15 @@ expand_function_end (void) if (! EXIT_IGNORE_STACK && cfun->calls_alloca) { - rtx tem = 0; + rtx tem = 0, seq; - emit_stack_save (SAVE_FUNCTION, &tem, parm_birth_insn); - emit_stack_restore (SAVE_FUNCTION, tem, NULL_RTX); + start_sequence (); + emit_stack_save (SAVE_FUNCTION, &tem); + seq = get_insns (); + end_sequence (); + emit_insn_before (seq, parm_birth_insn); + + emit_stack_restore (SAVE_FUNCTION, tem); } /* ??? This should no longer be necessary since stupid is no longer with |