Patch to DECL_ASSEMBLER_NAME handling

Jason Merrill jason@cygnus.com
Thu Mar 9 11:52:00 GMT 2000


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


More information about the Gcc-patches mailing list