re PR c/7872 ([m68k]ICE on legal code, regression from 3.0 and 2.9*)
authorJames E Wilson <wilson@tuliptree.org>
Tue, 4 Mar 2003 04:25:51 +0000 (20:25 -0800)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 4 Mar 2003 04:25:51 +0000 (20:25 -0800)
* optabs.c (add_equal_note): Delete SUBREG_REG use.
Fixes PR c/7872.

From-SVN: r63762

gcc/ChangeLog
gcc/optabs.c

index fbd9b6fa7528198630f1c580d2fbc9113bd81925..2dc5507dce0232dfbc3f585c405ef1db3b44aa14 100644 (file)
@@ -1,3 +1,8 @@
+2003-03-03  James E Wilson  <wilson@tuliptree.org>
+
+       * optabs.c (add_equal_note): Delete SUBREG_REG use.
+       Fixes PR c/7872.
+
 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
 
        * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
index e30e47720ca57433bd03f88aa1d031ee7ba26072..d4eaf6c967ad2463b1af826f833c94b88bba70bd 100644 (file)
@@ -171,11 +171,9 @@ add_equal_note (insns, target, code, op0, op1)
     return 1;
 
   if (! rtx_equal_p (SET_DEST (set), target)
-      /* For a STRICT_LOW_PART, the REG_NOTE applies to what is inside the
-        SUBREG.  */
+      /* For a STRICT_LOW_PART, the REG_NOTE applies to what is inside it.  */
       && (GET_CODE (SET_DEST (set)) != STRICT_LOW_PART
-         || ! rtx_equal_p (SUBREG_REG (XEXP (SET_DEST (set), 0)),
-                           target)))
+         || ! rtx_equal_p (XEXP (SET_DEST (set), 0), target)))
     return 1;
 
   /* If TARGET is in OP0 or OP1, check if anything in SEQ sets TARGET