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]

c enable-checking failure


This one I found compiling 132.ijpeg from spec95.

The exact situation was a NOP to the same integer type, so one
might wonder if fold isn't supposed to take care of that.

Opinions?


r~



Index: stmt.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/stmt.c,v
retrieving revision 1.43
diff -c -p -d -r1.43 stmt.c
*** stmt.c	1998/06/25 15:14:28	1.43
--- stmt.c	1998/07/05 21:41:46
*************** expand_end_case (orig_index)
*** 4691,4697 ****
  
        /* Compute span of values.  */
        if (count != 0)
! 	range = fold (build (MINUS_EXPR, index_type, maxval, minval));
  
        end_cleanup_deferral ();
  
--- 4691,4700 ----
  
        /* Compute span of values.  */
        if (count != 0)
! 	{
! 	  range = fold (build (MINUS_EXPR, index_type, maxval, minval));
! 	  STRIP_NOPS (range);
! 	}
  
        end_cleanup_deferral ();
  


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