varasm.c (globalize_decl): Get the name from the RTL, not DECL_ASSEMBLER_NAME.
authorJason Merrill <jason@redhat.com>
Tue, 19 Mar 2002 21:38:43 +0000 (16:38 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 19 Mar 2002 21:38:43 +0000 (16:38 -0500)
        * varasm.c (globalize_decl): Get the name from the RTL, not
        DECL_ASSEMBLER_NAME.

From-SVN: r51043

gcc/ChangeLog
gcc/varasm.c

index ba4fa52eadc68471a293a2cfe1581bb3e20a8018..aadf05fcb16e3e90ff83ad9bf3ea1be9cfc1ce12 100644 (file)
@@ -1,5 +1,8 @@
 2002-03-19  Jason Merrill  <jason@redhat.com>
 
+       * varasm.c (globalize_decl): Get the name from the RTL, not
+       DECL_ASSEMBLER_NAME.
+
        * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
 
 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
index f8df75b660866a0befd4a8f621d5c2eebc69ffdb..1b6e3f7334c795a11df9bec5da4ae98f4081a625 100644 (file)
@@ -5061,7 +5061,7 @@ static void
 globalize_decl (decl)
      tree decl;
 {
-  const char *name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl));
+  const char *name = XSTR (XEXP (DECL_RTL (decl), 0), 0);
 
 #if defined (ASM_WEAKEN_LABEL) || defined (ASM_WEAKEN_DECL)
   if (DECL_WEAK (decl))