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/cgraph.h | |
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/cgraph.h')
-rw-r--r-- | gcc/cgraph.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h index 4404fb8..6c8c8af 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -42,6 +42,15 @@ struct cgraph_global_info int dummy; }; +/* Information about the function that is propagated by the RTL backend. + Available only for functions that has been already assembled. */ + +struct cgraph_rtl_info +{ + bool const_function, pure_function; + int preferred_incoming_stack_boundary; +}; + /* The cgraph data strutcture. Each function decl has assigned cgraph_node listing calees and callers. */ @@ -74,6 +83,7 @@ struct cgraph_node bool output; struct cgraph_local_info local; struct cgraph_global_info global; + struct cgraph_rtl_info rtl; }; struct cgraph_edge @@ -95,6 +105,7 @@ struct cgraph_node *cgraph_node PARAMS ((tree decl)); bool cgraph_calls_p PARAMS ((tree, tree)); struct cgraph_local_info *cgraph_local_info PARAMS ((tree)); struct cgraph_global_info *cgraph_global_info PARAMS ((tree)); +struct cgraph_rtl_info *cgraph_rtl_info PARAMS ((tree)); /* In cgraphunit.c */ void cgraph_finalize_function PARAMS ((tree, tree)); |