This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [3.3] Fix PR optimization/11662
- From: "Zack Weinberg" <zack at codesourcery dot com>
- To: Eric Botcazou <ebotcazou at libertysurf dot fr>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 07 Sep 2003 01:39:53 -0700
- Subject: Re: [3.3] Fix PR optimization/11662
- References: <200309071020.55726.ebotcazou@libertysurf.fr>
Eric Botcazou <ebotcazou@libertysurf.fr> writes:
> Hi,
>
> This is a regression from GCC 3.0.4, present on the 3.3 branch on SPARC
> machines. The combiner is again the culprit, because it doesn't correctly
> propagate an error indicator.
>
> More specifically, simplify_shift_const calls gen_lowpart_for_combine to
> generate an ASHIFT of a SImode pseudo in DImode. The latter function returns
> the error indicator (clobber (const_int 0)), which is then passed to
> gen_binary. But gen_binary doesn't know of this indicator and uses it to
> build a binary operation.
>
> This has already been fixed on mainline so the patch is a backport.
> Bootstrapped/regtested on i586-redhat-linux-gnu (3.3 branch except Ada).
This is OK.
zw