diff options
author | Jakub Jelinek <jakub@redhat.com> | 2005-03-29 17:37:29 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2005-03-29 17:37:29 +0200 |
commit | 1a612e0a6cc76824017ca688693c9340114f1a76 (patch) | |
tree | 689501abab0bcf8ec5a3d3c534f71588bc8a79c1 /gcc/toplev.c | |
parent | 64a1ec409fa0e4897247093f995606843acdc6f8 (diff) | |
download | gcc-1a612e0a6cc76824017ca688693c9340114f1a76.zip gcc-1a612e0a6cc76824017ca688693c9340114f1a76.tar.gz gcc-1a612e0a6cc76824017ca688693c9340114f1a76.tar.bz2 |
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/toplev.c')
-rw-r--r-- | gcc/toplev.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index 7c8723c..5895d37 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -783,6 +783,8 @@ wrapup_global_declarations (tree *vec, int len) if (flag_unit_at_a_time && node->finalized) needed = 0; + else if (node->alias) + needed = 0; else if ((flag_unit_at_a_time && !cgraph_global_info_ready) && (TREE_USED (decl) || TREE_USED (DECL_ASSEMBLER_NAME (decl)))) |