This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Undefined references due to varasm.c (globalize_decl) changes
- From: Jason Merrill <jason at redhat dot com>
- To: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 18 Mar 2002 23:28:13 +0000
- Subject: Re: Undefined references due to varasm.c (globalize_decl) changes
- References: <20020318213525.82533.qmail@web14510.mail.yahoo.com>
Would it work to always get the name from the RTL instead? i.e. (untested)
*** varasm.c.~1~ Fri Mar 15 16:14:32 2002
--- varasm.c Mon Mar 18 23:26:37 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))