From 1a612e0a6cc76824017ca688693c9340114f1a76 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 29 Mar 2005 17:37:29 +0200 Subject: 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 --- gcc/varasm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/varasm.c') diff --git a/gcc/varasm.c b/gcc/varasm.c index 751c8bc..c51f6c0 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -4518,7 +4518,7 @@ assemble_alias (tree decl, tree target) if (TREE_CODE (decl) == FUNCTION_DECL) cgraph_node (decl); else - cgraph_varpool_node (decl); + cgraph_varpool_node (decl)->alias = true; /* If the target has already been emitted, we don't have to queue the alias. This saves a tad o memory. */ -- cgit v1.1