This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Patch i386.c fixes 'else' bound to wrong 'if' i386.c
- To: egcs-bugs at cygnus dot com
- Subject: Patch i386.c fixes 'else' bound to wrong 'if' i386.c
- From: grahams at rcp dot co dot uk
- Date: Thu, 26 Feb 1998 13:09:11 GMT
* config/i386/i386.c (reg_mentoined_in_mem): Add explicit braces to
correct else bound to wring if.
*** egcs-980221/gcc/config/i386/i386.c Wed Feb 25 12:26:07 1998
--- egcs-980221.orig/gcc/config/i386/i386.c Wed Feb 11 23:03:32 1998
*************** reg_mentioned_in_mem (reg, rtl)
*** 4850,4860 ****
for (i = GET_RTX_LENGTH (code) - 1; i >= 0; i--)
{
if (fmt[i] == 'E')
- {
for (j = XVECLEN (rtl, i) - 1; j >= 0; j--)
if (reg_mentioned_in_mem (reg, XVECEXP (rtl, i, j)))
return 1;
! }
else if (fmt[i] == 'e' && reg_mentioned_in_mem (reg, XEXP (rtl,
i)))
return 1;
}
--- 4850,4859 ----
for (i = GET_RTX_LENGTH (code) - 1; i >= 0; i--)
{
if (fmt[i] == 'E')
for (j = XVECLEN (rtl, i) - 1; j >= 0; j--)
if (reg_mentioned_in_mem (reg, XVECEXP (rtl, i, j)))
return 1;
!
else if (fmt[i] == 'e' && reg_mentioned_in_mem (reg, XEXP (rtl,
i)))
return 1;
}
Graham