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]

Re: Patch to DECL_ASSEMBLER_NAME handling


Tweak tweak tweak

2000-03-09  Jason Merrill  <jason@casey.cygnus.com>

	* varasm.c (make_decl_rtl): Skip initial '*' when setting
	DECL_ASSEMBLER_NAME.

Index: varasm.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/varasm.c,v
retrieving revision 1.106
diff -c -p -r1.106 varasm.c
*** varasm.c	2000/03/07 20:39:05	1.106
--- varasm.c	2000/03/09 19:47:29
*************** make_decl_rtl (decl, asmspec, top_level)
*** 799,805 ****
  	      name = new_name;
  	    }
  
! 	  DECL_ASSEMBLER_NAME (decl) = get_identifier (name);
  	  DECL_RTL (decl) = gen_rtx_MEM (DECL_MODE (decl),
  					 gen_rtx_SYMBOL_REF (Pmode, name));
  	  MEM_ALIAS_SET (DECL_RTL (decl)) = get_alias_set (decl);
--- 799,806 ----
  	      name = new_name;
  	    }
  
! 	  DECL_ASSEMBLER_NAME (decl)
! 	    = get_identifier (name[0] == '*' ? name + 1 : name);
  	  DECL_RTL (decl) = gen_rtx_MEM (DECL_MODE (decl),
  					 gen_rtx_SYMBOL_REF (Pmode, name));
  	  MEM_ALIAS_SET (DECL_RTL (decl)) = get_alias_set (decl);

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