This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [3.3] Fix PR optimization/11662


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]