OSDN Git Service

* rtlanal.c (reg_referenced_p): Use reg_overlap_mentioned_p
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Jun 1999 15:05:18 +0000 (15:05 +0000)
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Jun 1999 15:05:18 +0000 (15:05 +0000)
for the parts of an UNSPEC / UNSPEC_VOLATILE.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27720 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/rtlanal.c

index 582330e..650648c 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 fb4f87c..52ff6a9 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)))