[PATCH] Fix PR27116, negate_expr bug

Ian Lance Taylor iant@google.com
Thu Jun 8 00:34:00 GMT 2006


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



More information about the Gcc-patches mailing list