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]

Warning removal in sdbout.c


Sun Nov 18 14:13:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* sdbout.c (sdbout_symbol): Avoid warning due to &DECL_RTL.

*** sdbout.c	2001/11/14 13:51:09	1.62
--- sdbout.c	2001/11/18 19:03:29
*************** sdbout_symbol (decl, local)
*** 797,801 ****
        if (GET_CODE (value) == REG)
  	{
! 	  regno = REGNO (DECL_RTL (decl));
  	  if (regno >= FIRST_PSEUDO_REGISTER)
  	    return;
--- 797,801 ----
        if (GET_CODE (value) == REG)
  	{
! 	  regno = REGNO (value);
  	  if (regno >= FIRST_PSEUDO_REGISTER)
  	    return;
*************** sdbout_symbol (decl, local)
*** 810,815 ****
  		return;
  	    }
! 	  regno = REGNO (alter_subreg (&DECL_RTL (decl)));
! 	  value = DECL_RTL (decl);
  	}
        /* Don't output anything if an auto variable
--- 810,815 ----
  		return;
  	    }
! 	  regno = REGNO (alter_subreg (&value));
! 	  SET_DECL_RTL (decl, value);
  	}
        /* Don't output anything if an auto variable


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