varasm.c (globalize_decl): Get the name from the RTL, not DECL_ASSEMBLER_NAME.

* varasm.c (globalize_decl): Get the name from the RTL, not
        DECL_ASSEMBLER_NAME.

From-SVN: r51044
This commit is contained in:
Jason Merrill 2002-03-19 16:39:25 -05:00 committed by Jason Merrill
parent 8a5e53c3d8
commit 77f9437e81
2 changed files with 4 additions and 1 deletions

View 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 Dale Johannesen <dalej@apple.com>

View File

@ -5052,7 +5052,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))