diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-05 22:19:33 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-05 22:19:33 +0000 |
commit | 28992b23bc88821d83d650703beb1102a3303586 (patch) | |
tree | 6d8310470c10ca87b4dc63ecaa076fb112326f11 /gcc/cgraph.c | |
parent | 7d3e46b8b1d7211b092d0e853a8fbae20e3b9b0a (diff) | |
download | gcc-28992b23bc88821d83d650703beb1102a3303586.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63868 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r-- | gcc/cgraph.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c index d947eb99910..185a97b5651 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -204,6 +204,22 @@ cgraph_global_info (decl) return &node->global; } +/* Return local info for the compiled function. */ + +struct cgraph_rtl_info * +cgraph_rtl_info (decl) + tree decl; +{ + struct cgraph_node *node; + if (TREE_CODE (decl) != FUNCTION_DECL) + abort (); + node = cgraph_node (decl); + if (decl != current_function_decl + && !TREE_ASM_WRITTEN (node->decl)) + return NULL; + return &node->rtl; +} + /* Dump the callgraph. */ |