diff options
author | Richard Henderson <rth@redhat.com> | 2005-03-30 14:07:51 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2005-03-30 14:07:51 -0800 |
commit | 12527dcee33276926ce75f6117544205982291e9 (patch) | |
tree | 2703a1a2856c88be6ea09ad01570de46dd943419 /gcc/cgraphunit.c | |
parent | 7efa52a3e519324350c2d649264191c7b51344a6 (diff) | |
download | gcc-12527dcee33276926ce75f6117544205982291e9.zip gcc-12527dcee33276926ce75f6117544205982291e9.tar.gz gcc-12527dcee33276926ce75f6117544205982291e9.tar.bz2 |
cgraph.h (struct cgraph_node): Add alias.
* cgraph.h (struct cgraph_node): Add alias.
* varasm.c (assemble_alias): Set it.
* cgraphunit.c (cgraph_assemble_pending_functions): Check it and
avoid calling cgraph_expand_function.
From-SVN: r97284
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r-- | gcc/cgraphunit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 6e864d5..9fef33e 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -300,7 +300,9 @@ cgraph_assemble_pending_functions (void) cgraph_nodes_queue = cgraph_nodes_queue->next_needed; n->next_needed = NULL; - if (!n->global.inlined_to && !DECL_EXTERNAL (n->decl)) + if (!n->global.inlined_to + && !n->alias + && !DECL_EXTERNAL (n->decl)) { cgraph_expand_function (n); output = true; |