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: r51043
This commit is contained in:
Jason Merrill 2002-03-19 16:38:43 -05:00 committed by Jason Merrill
parent 2a4ea32640
commit f9d09ae5bb
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 Bob Wilson <bob.wilson@acm.org>

View 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))