aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2003-12-16 00:06:36 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2003-12-16 00:06:36 +0000
commit9d05bbceb29f58b912b95cee1e43b0bcd8994e56 (patch)
treebb744203a591f3b6d08d264bc0f98c12bab6cdbf /gcc/function.c
parentcbc278f44087d8f2ca5d60f50e0291929a3be7a0 (diff)
downloadgcc-9d05bbceb29f58b912b95cee1e43b0bcd8994e56.zip
gcc-9d05bbceb29f58b912b95cee1e43b0bcd8994e56.tar.gz
gcc-9d05bbceb29f58b912b95cee1e43b0bcd8994e56.tar.bz2
flow.c (EXIT_IGNORE_STACK): Move to ...
* flow.c (EXIT_IGNORE_STACK): Move to ... * defaults.h (EXIT_IGNORE_STACK): ... here. * dojump.c (clear_pending_stack_adjust): Don't use #ifdef EXIT_IGNORE_STACK. * function.c (expand_function_end): Likewise. * global.c (global_alloc): Likewise. * ra.c (init_ra): Likewise. * reload1.c (init_elim_table): Likewise. * reorg.c (fill_simple_delay_slots): Likewise. * resource.c (init_resource_info): Likewise. * doc/tm.texi (EXIT_IGNORE_STACK): Document that the default is 0. From-SVN: r74654
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/gcc/function.c b/gcc/function.c
index f3c07d2..618447d 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -7038,16 +7038,14 @@ expand_function_end (void)
/* If we had calls to alloca, and this machine needs
an accurate stack pointer to exit the function,
insert some code to save and restore the stack pointer. */
-#ifdef EXIT_IGNORE_STACK
- if (! EXIT_IGNORE_STACK)
-#endif
- if (current_function_calls_alloca)
- {
- rtx tem = 0;
+ if (! EXIT_IGNORE_STACK
+ && current_function_calls_alloca)
+ {
+ rtx tem = 0;
- emit_stack_save (SAVE_FUNCTION, &tem, parm_birth_insn);
- emit_stack_restore (SAVE_FUNCTION, tem, NULL_RTX);
- }
+ emit_stack_save (SAVE_FUNCTION, &tem, parm_birth_insn);
+ emit_stack_restore (SAVE_FUNCTION, tem, NULL_RTX);
+ }
/* If scalar return value was computed in a pseudo-reg, or was a named
return value that got dumped to the stack, copy that to the hard