diff options
author | Jakub Jelinek <jakub@redhat.com> | 2005-03-29 15:37:29 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2005-03-29 15:37:29 +0000 |
commit | c8a74ac78a65d8fb77a4b91cdaa51f2ea299b78e (patch) | |
tree | 689501abab0bcf8ec5a3d3c534f71588bc8a79c1 /gcc/cgraph.c | |
parent | 30a0ec4ffff9f9ff36c26a40955df12c2c5fe514 (diff) |
PR middle-end/20622
* cgraph.h (struct cgraph_varpool_node): Add alias field.
* cgraph.c (cgraph_varpool_assemble_pending_decls): Don't call
assemble_variable on aliases.
* varasm.c (assemble_alias): Set node->alias.
* toplev.c (wrapup_global_declarations): Don't call
rest_of_decl_compilation on aliases again.
* gcc.dg/alias-7.c: New test.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@97161 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r-- | gcc/cgraph.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c index 3aabc4071fb..b769f841085 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -724,11 +724,11 @@ cgraph_varpool_assemble_pending_decls (void) while (cgraph_varpool_nodes_queue) { - tree decl = cgraph_varpool_nodes_queue->decl; struct cgraph_varpool_node *node = cgraph_varpool_nodes_queue; + tree decl = node->decl; cgraph_varpool_nodes_queue = cgraph_varpool_nodes_queue->next_needed; - if (!TREE_ASM_WRITTEN (decl)) + if (!TREE_ASM_WRITTEN (decl) && !node->alias) { assemble_variable (decl, 0, 1, 0); changed = true; |