From 9d05bbceb29f58b912b95cee1e43b0bcd8994e56 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 16 Dec 2003 00:06:36 +0000 Subject: 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 --- gcc/function.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'gcc/function.c') 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 -- cgit v1.1