File pr30113.patch of Package gcc41

Subject: Bug 30113

Author: rakdver
Date: Mon Dec 11 21:29:44 2006
New Revision: 119748

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119748
Log:
        PR rtl-optimization/30113
        * loop-iv.c (implies_p): Require the mode of the operands to be
        scalar.

Index: gcc/loop-iv.c
===================================================================
*** gcc/loop-iv.c	(revision 120791)
--- gcc/loop-iv.c	(working copy)
*************** implies_p (rtx a, rtx b)
*** 1497,1503 ****
  	    mode = VOIDmode;
  	}
  
!       if (mode != VOIDmode
  	  && rtx_equal_p (op1, opb1)
  	  && simplify_gen_binary (MINUS, mode, opb0, op0) == const1_rtx)
  	return true;
--- 1497,1503 ----
  	    mode = VOIDmode;
  	}
  
!       if (SCALAR_INT_MODE_P (mode)
  	  && rtx_equal_p (op1, opb1)
  	  && simplify_gen_binary (MINUS, mode, opb0, op0) == const1_rtx)
  	return true;
openSUSE Build Service is sponsored by