diff options
author | Geoff Keating <geoffk@cygnus.com> | 2000-01-19 20:21:08 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2000-01-19 20:21:08 +0000 |
commit | 0d3ffb5ae4b42975f570514f3b9fb841ccaba4ee (patch) | |
tree | 4aac5832745fe0890d40f666df64ce94671ef172 /gcc/rtlanal.c | |
parent | 78458962965e06a91c20511ab02f88195d3b6a91 (diff) | |
download | gcc-0d3ffb5ae4b42975f570514f3b9fb841ccaba4ee.zip gcc-0d3ffb5ae4b42975f570514f3b9fb841ccaba4ee.tar.gz gcc-0d3ffb5ae4b42975f570514f3b9fb841ccaba4ee.tar.bz2 |
rtlanal.c (reg_referenced_p): A CLOBBER of a MEM uses any REGs inside the MEM.
* rtlanal.c (reg_referenced_p): A CLOBBER of a MEM uses any REGs
inside the MEM.
From-SVN: r31509
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r-- | gcc/rtlanal.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 3739bde..24ca8d1 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -422,6 +422,12 @@ reg_referenced_p (x, body) return 1; return 0; + case CLOBBER: + if (GET_CODE (XEXP (body, 0)) == MEM) + if (reg_overlap_mentioned_p (x, XEXP (XEXP (body, 0), 0))) + return 1; + return 0; + default: return 0; } |