summaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-30 22:07:51 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-30 22:07:51 +0000
commit1d09f0e68f9152817a7f896505d8c6dbe7e14e01 (patch)
tree2703a1a2856c88be6ea09ad01570de46dd943419 /gcc/cgraphunit.c
parent3bdc9b0e43017ac69a1d5842efdf9e9e8ea99ce5 (diff)
downloadgcc-1d09f0e68f9152817a7f896505d8c6dbe7e14e01.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97284 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 6e864d5e243..9fef33e9557 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;