aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2002-03-19 16:38:43 -0500
committerJason Merrill <jason@gcc.gnu.org>2002-03-19 16:38:43 -0500
commitf9d09ae5bb74df042e5214c1a88392621204f177 (patch)
tree61e5ea6db930c4408d127bbe50d57b9a2a12e660
parent2a4ea3264073f0bb84ce90370c75234b844bf51d (diff)
downloadgcc-f9d09ae5bb74df042e5214c1a88392621204f177.zip
gcc-f9d09ae5bb74df042e5214c1a88392621204f177.tar.gz
gcc-f9d09ae5bb74df042e5214c1a88392621204f177.tar.bz2
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
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/varasm.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ba4fa52..aadf05f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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>
diff --git a/gcc/varasm.c b/gcc/varasm.c
index f8df75b..1b6e3f7 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -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))