This is the mail archive of the gcc-patches@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 reload.c fix else bound to wrong if.


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


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