This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
patch reload.c fix else bound to wrong if.
- To: egcs-patches at cygnus dot com
- Subject: patch reload.c fix else bound to wrong if.
- From: Graham <grahams at rcp dot co dot uk>
- Date: Tue, 20 Oct 1998 13:07:03 +0100
Hi
This patch is against egcs-19981019 snapshot.
ChangeLog
* reload.c (loc_mentioned_in_p): add missing braces
to bind else to correct if.
*** reload.c.orig Mon Oct 19 22:49:31 1998
--- reload.c Mon Oct 19 22:48:00 1998
*************** loc_mentioned_in_p (loc, in)
*** 1586,1593 ****
if (loc == &XEXP (in, i))
return 1;
if (fmt[i] == 'e')
! if (loc_mentioned_in_p (loc, XEXP (in, i)))
! return 1;
else if (fmt[i] == 'E')
for (j = XVECLEN (in, i) - 1; i >= 0; i--)
if (loc_mentioned_in_p (loc, XVECEXP (in, i, j)))
--- 1586,1595 ----
if (loc == &XEXP (in, i))
return 1;
if (fmt[i] == 'e')
! {
! if (loc_mentioned_in_p (loc, XEXP (in, i)))
! return 1;
! }
else if (fmt[i] == 'E')
for (j = XVECLEN (in, i) - 1; i >= 0; i--)
if (loc_mentioned_in_p (loc, XVECEXP (in, i, j)))
graham