This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR middle-end/26635
- From: "Richard Guenther" <richard dot guenther at gmail dot com>
- To: "Eric Botcazou" <ebotcazou at adacore dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 31 Mar 2006 22:29:04 +0200
- Subject: Re: [PATCH] Fix PR middle-end/26635
- References: <200603311852.29910.ebotcazou@adacore.com>
On 3/31/06, Eric Botcazou <ebotcazou@adacore.com> wrote:
> Hi,
>
> It's a regression from 4.0 present on mainline and 4.1 branch, see the
> analysis at http://gcc.gnu.org/ml/gcc/2006-03/msg00719.html.
>
> So, as per Joseph's suggestion, I'm proposing to introduce a new switch,
> namely -fmodv, that would specify whether conversion-to-signed overflow is
> reduced using modulo arithmetics in the middle-end, and set it to 1 for the C
> family of languages.
>
> Tested on x86_64-suse-linux. OK for mainline and 4.1 branch?
Note that this blocks a fix for wrong-code PR26630 on the 4.0 branch, so
this also should go on the 4.0 branch together with the fix for 26630.
Richard.