This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch i386.c fixes 'else' bound to wrong 'if' i386.c






* 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  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]