aboutsummaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 42dca29..634753e 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -734,6 +734,12 @@ make_decl_rtl (decl, asmspec, top_level)
ASM_FORMAT_PRIVATE_NAME (label, name, var_labelno);
name = obstack_copy0 (saveable_obstack, label, strlen (label));
var_labelno++;
+
+ /* We've changed the name by which this entity is
+ known. In order that we can generate
+ correct references to it, we update its
+ DECL_ASSEMBLER_NAME. */
+ DECL_ASSEMBLER_NAME (decl) = get_identifier (name);
}
if (name == 0)