rtlanal.c (reg_referenced_p): Use reg_overlap_mentioned_p for the parts of an UNSPEC...
authorJ"orn Rennecke <amylaar@cygnus.co.uk>
Wed, 23 Jun 1999 15:05:18 +0000 (15:05 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Wed, 23 Jun 1999 15:05:18 +0000 (16:05 +0100)
* rtlanal.c (reg_referenced_p): Use reg_overlap_mentioned_p
for the parts of an UNSPEC / UNSPEC_VOLATILE.

From-SVN: r27720

gcc/ChangeLog
gcc/rtlanal.c

index 582330eff1ed43e99d713b7c7c0536ca242042dd..650648ca248748c5af7a5072595709f3b9cf5523 100644 (file)
@@ -1,3 +1,8 @@
+Wed Jun 23 21:26:00 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
+
+       * rtlanal.c (reg_referenced_p): Use reg_overlap_mentioned_p
+       for the parts of an UNSPEC / UNSPEC_VOLATILE.
+
 1999-06-23  Bruce Korb  <ddsinc09@ix.netcom.com>
 
        *fixinc/inclhack.def:  Add fix development commentary
index fb4f87c07de31686ed87a11e512f6bc37b47067e..52ff6a90c64afa13ecb7187a6eda9b79a2e84b88 100644 (file)
@@ -410,6 +410,11 @@ reg_referenced_p (x, body)
 
     case UNSPEC:
     case UNSPEC_VOLATILE:
+      for (i = XVECLEN (body, 0) - 1; i >= 0; i--)
+       if (reg_overlap_mentioned_p (x, XVECEXP (body, 0, i)))
+         return 1;
+      return 0;
+
     case PARALLEL:
       for (i = XVECLEN (body, 0) - 1; i >= 0; i--)
        if (reg_referenced_p (x, XVECEXP (body, 0, i)))