summaryrefslogtreecommitdiff
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2005-03-29 17:37:29 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2005-03-29 17:37:29 +0200
commit1a612e0a6cc76824017ca688693c9340114f1a76 (patch)
tree689501abab0bcf8ec5a3d3c534f71588bc8a79c1 /gcc/cgraph.c
parent64a1ec409fa0e4897247093f995606843acdc6f8 (diff)
downloadgcc-1a612e0a6cc76824017ca688693c9340114f1a76.tar.gz
re PR middle-end/20622 (Alias to nocommon variable fails to assemble on ppc64)
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. From-SVN: r97161
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r--gcc/cgraph.c4
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;