From 0d3ffb5ae4b42975f570514f3b9fb841ccaba4ee Mon Sep 17 00:00:00 2001 From: Geoff Keating Date: Wed, 19 Jan 2000 20:21:08 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/rtlanal.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fff7083ba95..389ce07df68 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-01-19 Geoff Keating + + * rtlanal.c (reg_referenced_p): A CLOBBER of a MEM uses any REGs + inside the MEM. + 2000-01-20 Michael Hayes * loop.c (loop_optimize): Allocate loop_info structure for each loop diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 3739bdee8ac..24ca8d1b530 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; }