aboutsummaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2005-04-22 10:15:09 +0000
committerJoseph Myers <joseph@codesourcery.com>2005-04-22 10:15:09 +0000
commit986027836989aa4572dfce74eb5d4baffba65e85 (patch)
tree947d8bb4234906c7a01439784b99167a4a3bc891 /gcc/varasm.c
parent2b0d29fab4f95dc47dd687112d531649c56686cd (diff)
* varasm.c (do_assemble_alias): Return early if TREE_ASM_WRITTEN
(decl). testsuite: * gcc.dg/weak/weak-13.c: New test. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@98551 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 832b55b1d1f..a3aa44aa0b7 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -4486,6 +4486,9 @@ find_decl_and_mark_needed (tree decl, tree target)
static void
do_assemble_alias (tree decl, tree target ATTRIBUTE_UNUSED)
{
+ if (TREE_ASM_WRITTEN (decl))
+ return;
+
TREE_ASM_WRITTEN (decl) = 1;
TREE_ASM_WRITTEN (DECL_ASSEMBLER_NAME (decl)) = 1;