This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR26763
- From: Roger Sayle <roger at eyesopen dot com>
- To: Richard Guenther <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 4 Apr 2006 07:51:36 -0600 (MDT)
- Subject: Re: [PATCH] Fix PR26763
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
--