This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Undefined references due to varasm.c (globalize_decl) changes


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]