This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH to globalize_decl
- From: Jason Merrill <jason at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 19 Mar 2002 21:37:22 +0000
- Subject: PATCH to globalize_decl
Apparently using DECL_ASSEMBLER_NAME causes problems with targets that use
ENCODE_SECTION_INFO, and this fixes them.
Booted and tested i686-pc-linux-gnu.
2002-03-19 Jason Merrill <jason@redhat.com>
* varasm.c (globalize_decl): Get the name from the RTL, not
DECL_ASSEMBLER_NAME.
*** varasm.c.~1~ Tue Mar 19 08:53:36 2002
--- varasm.c Mon Mar 18 23:27:53 2002
*************** static void
*** 5061,5067 ****
globalize_decl (decl)
tree decl;
{
! const char *name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl));
#if defined (ASM_WEAKEN_LABEL) || defined (ASM_WEAKEN_DECL)
if (DECL_WEAK (decl))
--- 5061,5067 ----
globalize_decl (decl)
tree decl;
{
! const char *name = XSTR (XEXP (DECL_RTL (decl), 0), 0);
#if defined (ASM_WEAKEN_LABEL) || defined (ASM_WEAKEN_DECL)
if (DECL_WEAK (decl))