[PATCH] Fix PR26763

Roger Sayle roger@eyesopen.com
Tue Apr 4 14:14:00 GMT 2006


On Tue, 4 Apr 2006, Richard Guenther wrote:
> 2006-04-03  Richard Guenther  <rguenther@suse.de>
>
> 	PR tree-optimization/26763
> 	* fold-const.c (fold_comparison): Move folding of
> 	PTR + CST CMP PTR + CST ...
> 	(fold_binary): ... here.  Fold only for EQ_EXPR and NE_EXPR.
>
> 	* gcc.dg/torture/pr26763-1.c: New testcase.
> 	* gcc.dg/torture/pr26763-2.c: Likewise.

This is OK for mainline.  Thanks.

Roger
--



More information about the Gcc-patches mailing list