This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR27116, negate_expr bug
- From: Ian Lance Taylor <iant at google dot com>
- To: Richard Guenther <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 07 Jun 2006 17:33:40 -0700
- Subject: Re: [PATCH] Fix PR27116, negate_expr bug
- References: <Pine.LNX.4.64.0606080020320.4318@nyjnma.fhfr.qr>
Richard Guenther <rguenther@suse.de> writes:
> 2006-06-08 Richard Guenther <rguenther@suse.de>
>
> PR middle-end/27116
> * fold-const.c (negate_expr_p): We can negate BIT_NOT_EXPR
> only, if overflow is defined and not trapping.
> (negate_expr): Likewise.
>
> * gcc.dg/torture/pr27116.c: New testcase.
> * gcc.dg/pr15785-1.c: Remove test for invalid transformation.
This is OK.
Thanks.
:REVIEWMAIL:
Ian