This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR34130, extract_muldiv broken
- From: Matthias Klose <doko at cs dot tu-berlin dot de>
- To: Richard Guenther <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 22 Nov 2007 14:18:02 +0100
- Subject: Re: [PATCH] Fix PR34130, extract_muldiv broken
- References: <Pine.LNX.4.64.0711171525251.4148@zhemvz.fhfr.qr>
Richard Guenther writes:
>
> It folds -C*ABS<n> to ABS<-C*n>. Anyone else thinks this function needs
> to go? :/
>
> Bootstrapped & tested on x86_64-unknown-linux-gnu, applied to mainline.
>
> Richard.
>
> 2007-11-17 Richard Guenther <rguenther@suse.de>
>
> PR middle-end/34130
> * fold-const.c (extract_muldiv_1): Do not move negative
> constants inside ABS_EXPR.
>
> * gcc.c-torture/execute/pr34130.c: New testcase.
The same patch applies to the 4.2 branch as well. checked on
sparc-linux-gnu without regressions. Ok to checkin?
Currently running the testsuite on the 4.1 branch. Ok to check in on
this branch, if the testsuite succeeds without regressions?
Matthias