This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
c enable-checking failure
- To: egcs-patches at cygnus dot com
- Subject: c enable-checking failure
- From: Richard Henderson <rth at cygnus dot com>
- Date: Sun, 5 Jul 1998 14:46:46 -0700
- Reply-To: Richard Henderson <rth at cygnus dot com>
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 ();