This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Warning removal in sdbout.c
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 18 Nov 01 14:17:56 EST
- Subject: 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