optimization/8252: gcc 3.2 ICE on AltiVec code with optimisation turned on

adam@varisys.co.uk adam@varisys.co.uk
Thu Oct 17 07:46:00 GMT 2002


>Number:         8252
>Category:       optimization
>Synopsis:       gcc 3.2 ICE on AltiVec code with optimisation turned on
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 17 07:46:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Adam Barnes
>Release:        3.2
>Organization:
>Environment:
In-house port of Linux 2.4.19 (Debian based) on reasonably mature own design PowerPC G4 single board computer
>Description:
I'm trying to compile an Apple AltiVec FFT program called "vBigDSP" with gcc 3.2. After changing brackets to braces on all vector initialisations, it compiles OK. But if I try any level of optimisation I get an internal compiler error. When I tried the latest snapshot (3.3-20021017) I got a different error without optimisation (I will report this separately).
--------------------------------------------------
hppb:/home/test/examples/applefft# gcc -v -save-temps -c vBigDSP.c -O
Reading specs from /usr/local/lib/gcc-lib/powerpc-unknown-linux-gnu/3.2/specs
Configured with: ../gcc-3.2/configure --enable-languages=c,c++ --enable-altivec
Thread model: posix
gcc version 3.2
 /usr/local/lib/gcc-lib/powerpc-unknown-linux-gnu/3.2/cpp0 -lang-c -v -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=0 -D__GXX_ABI_VERSION=102 -DPPC -D__ELF__ -Dpowerpc -D__PPC__ -D__ELF__ -D__powerpc__ -D__PPC -D__powerpc -Acpu=powerpc -Amachine=powerpc -D__OPTIMIZE__ -D__STDC_HOSTED__=1 -D_CALL_SYSV -D_BIG_ENDIAN -D__BIG_ENDIAN__ -Amachine=bigendian -D_ARCH_PPC -D__unix__ -D__gnu_linux__ -D__linux__ -Dunix -D__unix -Dlinux -D__linux -Asystem=unix -Asystem=posix vBigDSP.c vBigDSP.i
GNU CPP version 3.2 (cpplib) (PowerPC GNU/Linux)
ignoring nonexistent directory "NONE/include"
ignoring nonexistent directory "/usr/local/powerpc-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/local/lib/gcc-lib/powerpc-unknown-linux-gnu/3.2/include
 /usr/include
End of search list.
 /usr/local/lib/gcc-lib/powerpc-unknown-linux-gnu/3.2/cc1 -fpreprocessed vBigDSP.i -quiet -dumpbase vBigDSP.c -O -version -o vBigDSP.s
GNU CPP version 3.2 (cpplib) (PowerPC GNU/Linux)
GNU C version 3.2 (powerpc-unknown-linux-gnu)
        compiled by GNU C version 3.3 20021017 (experimental).
vBigDSP.c: In function `fft_recursive':
vBigDSP.c:1623: Internal compiler error in print_operand, at config/rs6000/rs6000.c:6821
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
hppb:/home/test/examples/applefft#
--------------------------------------------------
>How-To-Repeat:
vBigDSP_3.2.i.gz contains the intermediate output.
>Fix:
Do not use optimisation (drastic performance impact).
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list