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]

PATCH: Fix alias regression



This patch fixes a regression introduced by my lazy DECL_RTL patch,
as discovered by H.J. Lu.  

The original code was figuring out the name of the entity by poking
around inside RTL (tsk, tsk), rather than using DECL_ASSEMBLER_NAME.

Bootstrapped and tested on i686-pc-linux-gnu, applied on the branch.
Obviously, I'll put this on the mainline along with the rest of the
lazy DECL_RTL patch, as soon as testing is complete.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

2001-03-14  Mark Mitchell  <mark@codesourcery.com>

	* varasm.c (assemble_alias): Use DECL_ASSEMBLER_NAME, not the
	contents of the RTL, to determine the name of the object.

Index: varasm.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/varasm.c,v
retrieving revision 1.161.2.3
diff -c -p -r1.161.2.3 varasm.c
*** varasm.c	2001/03/14 18:26:33	1.161.2.3
--- varasm.c	2001/03/15 02:36:31
*************** assemble_alias (decl, target)
*** 4809,4816 ****
  {
    const char *name;
  
!   make_decl_rtl (decl, (char *) 0);
!   name = XSTR (XEXP (DECL_RTL (decl), 0), 0);
  
  #ifdef ASM_OUTPUT_DEF
    /* Make name accessible from other files, if appropriate.  */
--- 4809,4815 ----
  {
    const char *name;
  
!   name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl));
  
  #ifdef ASM_OUTPUT_DEF
    /* Make name accessible from other files, if appropriate.  */


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