* stmt.c (decl_conflicts_with_clobbers_p): Add REG_P check.
authorGraham Stott <graham.stott@btinternet.com>
Mon, 14 Oct 2002 18:02:43 +0000 (18:02 +0000)
committerGraham Stott <grahams@gcc.gnu.org>
Mon, 14 Oct 2002 18:02:43 +0000 (18:02 +0000)
From-SVN: r58128

gcc/ChangeLog
gcc/stmt.c

index 1e5c0ed9d01218aa0aa6a7b71b659df30f892b66..0f5f1e061c4048b242f7b8cf4f3a9d87a39586c9 100644 (file)
@@ -1,3 +1,7 @@
+2002-10-14  Graham Stott  <graham.stott@btinternet.com>
+
+       * stmt.c (decl_conflicts_with_clobbers_p): Add REG_P check.
+
 2002-10-14  Aldy Hernandez  <aldyh@redhat.com>
 
        * stmt.c: Fix typo in comment.
@@ -2932,7 +2936,7 @@ Tue Sep 17 13:40:13 2002  Nicola Pero  <n.pero@mi.flashnet.it>
        * cfgcleanup.c (try_crossjump_to_edge): Fix updating of liveness
        information.
 
-2002-09-07  Graham Stott  <graham.stott@btinternet.con>
+2002-09-07  Graham Stott  <graham.stott@btinternet.com>
 
        * rtlanal.c (dead_or_set_regno_p): Fix typo.
 
index 66233ce5324aac90f9881314597a977517173b57..c07fe663fb3ad735ae424bc7d7d4b978a2b21523 100644 (file)
@@ -1414,6 +1414,7 @@ decl_conflicts_with_clobbers_p (decl, clobbered_regs)
      list are not allowed.  */
   if ((TREE_CODE (decl) == VAR_DECL || TREE_CODE (decl) == PARM_DECL)
       && DECL_REGISTER (decl)
+      && REG_P (DECL_RTL (decl))
       && REGNO (DECL_RTL (decl)) < FIRST_PSEUDO_REGISTER)
     {
       rtx reg = DECL_RTL (decl);