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]

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

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