From: J"orn Rennecke Date: Wed, 23 Jun 1999 15:05:18 +0000 (+0000) Subject: rtlanal.c (reg_referenced_p): Use reg_overlap_mentioned_p for the parts of an UNSPEC... X-Git-Tag: releases/libgcj-2.95.0~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f9fb4c226e96e73d87ebeab0dc43fa2711296db;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 582330eff1ed..650648ca2487 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Wed Jun 23 21:26:00 1999 J"orn Rennecke + + * rtlanal.c (reg_referenced_p): Use reg_overlap_mentioned_p + for the parts of an UNSPEC / UNSPEC_VOLATILE. + 1999-06-23 Bruce Korb *fixinc/inclhack.def: Add fix development commentary diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index fb4f87c07de3..52ff6a90c64a 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)))