aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtlanal.c
diff options
context:
space:
mode:
authorJ"orn Rennecke <amylaar@cygnus.co.uk>1999-06-23 15:05:18 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>1999-06-23 16:05:18 +0100
commit2f9fb4c226e96e73d87ebeab0dc43fa2711296db (patch)
tree9d6f3e319eb1301c1dc980e11524a67142efd2c8 /gcc/rtlanal.c
parent34043bd2e9ad8e2c582e5893838d9694e1796998 (diff)
downloadgcc-2f9fb4c226e96e73d87ebeab0dc43fa2711296db.zip
gcc-2f9fb4c226e96e73d87ebeab0dc43fa2711296db.tar.gz
gcc-2f9fb4c226e96e73d87ebeab0dc43fa2711296db.tar.bz2
rtlanal.c (reg_referenced_p): Use reg_overlap_mentioned_p for the parts of an UNSPEC / UNSPEC_VOLATILE.
* rtlanal.c (reg_referenced_p): Use reg_overlap_mentioned_p for the parts of an UNSPEC / UNSPEC_VOLATILE. From-SVN: r27720
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r--gcc/rtlanal.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c
index fb4f87c..52ff6a9 100644
--- a/gcc/rtlanal.c
+++ b/gcc/rtlanal.c
@@ -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)))