GCC Bugzilla – Bug 10504
[3.3] ICE with SSE2 code and -O3 -mcpu=pentium4 -msse2
Last modified: 2003-07-21 19:09:57 UTC
ICE when trying to compile code with calls to SSE2 Intel intrinsic library. Any combination ofoptimizing flag -Ox with -mcpu=pentium4 -march=pentium4 -msse2 generate an ICE.
The output is:
> gcc-3.3 -save-temps -O3 -mcpu=pentium4 -march=pentium4 -msse2 sse2test.c -o sse2test
sse2test.c: En la función `main':
sse2test.c:94: internal compiler error: in simplify_unary_operation, at simplify-rtx.c:387
Por favor envíe un reporte completo de `bugs',
con el código preprocesado si es apropiado.
Vea <URL:http://gcc.gnu.org/bugs.html> para más instrucciones.
Attached is sse2test.tar.gz with 'sse2test.c' and 'sse2test.i' files
gcc versión 3.3 20030424 (prerelease)
pentium4-pc-linux-gnu; Kernel-2.4.19, SuSE-linux 8.1
Try to compile the code with -O3 -mcpu=pentium4 -march=pentium4 -msse2 flags
State-Changed-Why: Confirmed. Problem exists in 3.3, but 3.4 works. 3.2.x never
really supported sse2, so this is not a regression.
From: Guillermo Ballester Valor <email@example.com>
To: firstname.lastname@example.org, email@example.com, firstname.lastname@example.org,
Subject: Re: target/10504: [3.3] ICE with SSE2 code and -O3 -mcpu=pentium4 -msse2
Date: Sun, 18 May 2003 11:11:16 +0200
I am the guy who reported the bug. I only would like to add that the bug
should be introduced recently. Precisely, the gcc version used by SuSE 8.2
does not show any problem:
gcc (GCC) 3.3 20030226 (prerelease) (SuSE Linux)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
OTOH, I tried with the 3.3 release and the problem is still here.
Hope this helps.
Guillermo Ballester Valor
Ogijares, Granada SPAIN
Responsible-Changed-Why: Jan, I think this is your field, right?
So, when this GCC 3.4 patch backported will be commited to the 3.3 CVS branch ?
This is apparently fixed for mainline, and it is an ice-on-valid-code; also,
this PR is only in the FSF release, not in the SuSE prerelease they use for SuSE
8.2. Probably Jan's fix was in the SuSE tree all along, which would mean this
is well-tested and therefore safe for 3.3.1. Is there stil ltime for a backport?
Subject: Re: [3.3] ICE with SSE2 code and -O3
On Fri, 2003-07-11 at 17:11, steven at gcc dot gnu dot org wrote:
> PLEASE REPLY TO email@example.com ONLY, *NOT* firstname.lastname@example.org.
> steven at gcc dot gnu dot org changed:
> What |Removed |Added
> CC| |mark at codesourcery dot com
> ------- Additional Comments From steven at gcc dot gnu dot org 2003-07-12 00:11 -------
> This is apparently fixed for mainline, and it is an ice-on-valid-code; also,
> this PR is only in the FSF release, not in the SuSE prerelease they use for SuSE
> 8.2. Probably Jan's fix was in the SuSE tree all along, which would mean this
> is well-tested and therefore safe for 3.3.1. Is there stil ltime for a backport?
Yes, and it would be great to do that!
Fixed by my earlier patch