gcc-3.3 ICE error using -msse2 -O3 in pentium4-pc-linux-gnu
Guillermo Ballester Valor
gbv@oxixares.com
Fri Apr 25 01:02:00 GMT 2003
Hi,
Today I've installed CVS gcc-3.3 compiler and bootstraped OK
I've wrote a code to perform Lucas-Lehmer Test to check whether a Mersenne
number is prime (see http://glucas.sourceforge.net/ ). I'm now writing SSE2
code to be used on Opterons and Pentium4, calling to built_in intrinsic SSE2
libraries. Up to now, it runned OK for both Athlon/gcc-3.2 (using emulated
sse2 code) and Intel C++ compiler with (true SSE2 code).
When I try to use gcc-3.3 compiler then I get the following error, It is not
produced when I supress the -O optimization flag (-01 -O2 and -O3 does the
same) :
gcc-3.3 -S -DHAVE_CONFIG_H -I. -O3 -mcpu=pentium4 -march=pentium4 -msse2
-DNO_HACK_ALIGN -DY_TARGET=0 -DY_AVAL=4 -DY_CACHE_LINE=16 -DY_SECURE
-DY_USE_SSE2 -DY_PENTIUM4 -o radixmm_8.s radixmm_8.c
radixmm_8.c: En la función `radixmm0_8_dif':
radixmm_8.c:361: 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.
make: *** [radixmm_8.s] Error 1
gbv@bach:~> gcc-3.3 -v
Leyendo especificaciones de
/usr/local/gcc-3.3/lib/gcc-lib/i686-pc-linux-gnu/3.3/specs
Configurado con: /home/gbv/gcc-3.3/gcc/configure --prefix=/usr/local/gcc-3.3
--program-suffix=-3.3
Modelo de hilos: posix
gcc versión 3.3 20030424 (prerelease)
I was a few lost. I think it is a bug but I didn't know how can I send you an
easy test to show the problem, the resulting radixmm_8.i is unreadable due to
the recursed expansion of large macros.
Fortunately, I've been able to write a small test to show the problem. Again,
Intel C++ compiler runs OK.
gbv@bach:~/glucas/glucas-2.9.1> gcc-3.3 -O3 -mcpu=pentium4 -msse2 sse2test.c
-o sse2test
sse2test.c: En la función `main':
sse2test.c:87: 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.
And attached is the offending code
Guillermo.
--
Guillermo Ballester Valor
gbv@oxixares.com
Ogijares, Granada SPAIN
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sse2test.c
Type: text/x-csrc
Size: 2461 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20030425/95838c51/attachment.bin>
More information about the Gcc
mailing list