diff options
author | Jan Hubicka <jh@suse.cz> | 2003-03-05 23:19:33 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2003-03-05 22:19:33 +0000 |
commit | b255a03659c00eef213ffbeab6ce371f56e089e7 (patch) | |
tree | 6d8310470c10ca87b4dc63ecaa076fb112326f11 /gcc/toplev.c | |
parent | 0eb933a0d0199d0c42da23f3b49880fee7d63358 (diff) | |
download | gcc-b255a03659c00eef213ffbeab6ce371f56e089e7.zip gcc-b255a03659c00eef213ffbeab6ce371f56e089e7.tar.gz gcc-b255a03659c00eef213ffbeab6ce371f56e089e7.tar.bz2 |
Makefile.in (calls.o, [...]): Depend on cgraph.h
* Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
* alias.c: Include cgraph.h
(mark_constant_function): Use cgraph_rtl_info.
* calls.c: Include cgraph.h
(flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
calls.
(expand_call): Use cgraph_rtl_info to set preferred stack boundary.
* cgraph.c (cgraph_rtl_info): New function.
* cgraph.h (cgraph_rtl_info): Declare
(cgraph_rtl_info): Likewise.
* function.h (struct function): Add recursive_call_emit.
* toplev.c: Include cgraph.h.
(rest_of_compilation): Set preferred_incoming_stack_boundary.
* gcc.dg/i386-local2.c: New.
From-SVN: r63868
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index 2dbdf4f..0856418 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -75,6 +75,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "cfglayout.h" #include "cfgloop.h" #include "hosthooks.h" +#include "cgraph.h" #if defined (DWARF2_UNWIND_INFO) || defined (DWARF2_DEBUGGING_INFO) #include "dwarf2out.h" @@ -3772,6 +3773,16 @@ rest_of_compilation (decl) timevar_pop (TV_FINAL); + if ((*targetm.binds_local_p) (current_function_decl)) + { + int pref = cfun->preferred_stack_boundary; + if (cfun->recursive_call_emit + && cfun->stack_alignment_needed > cfun->preferred_stack_boundary) + pref = cfun->stack_alignment_needed; + cgraph_rtl_info (current_function_decl)->preferred_incoming_stack_boundary + = pref; + } + /* Make sure volatile mem refs aren't considered valid operands for arithmetic insns. We must call this here if this is a nested inline function, since the above code leaves us in the init_recog state |