This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: c enable-checking failure
- To: Richard Henderson <rth at cygnus dot com>
- Subject: Re: c enable-checking failure
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 06 Jul 1998 23:02:02 -0600
- cc: egcs-patches at cygnus dot com, wilson at cygnus dot com
- Reply-To: law at cygnus dot com
In message <19980705144646.A8323@dot.cygnus.com>you write:
> 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.
Good question. Or maybe it's stripped out during tree->rtl conversion.
Jim -- comments?
>
> 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 ();
>