From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20665 invoked by alias); 17 Oct 2002 14:46:03 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 20642 invoked by uid 71); 17 Oct 2002 14:46:02 -0000 Resent-Date: 17 Oct 2002 14:46:02 -0000 Resent-Message-ID: <20021017144602.20640.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, adrian@varisys.co.uk Resent-Reply-To: gcc-gnats@gcc.gnu.org, adam@varisys.co.uk Received: (qmail 14124 invoked by uid 61); 17 Oct 2002 14:37:36 -0000 Message-Id: <20021017143736.14123.qmail@sources.redhat.com> Date: Thu, 17 Oct 2002 07:46:00 -0000 From: adam@varisys.co.uk Reply-To: adam@varisys.co.uk To: gcc-gnats@gcc.gnu.org Cc: adrian@varisys.co.uk X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) X-GNATS-Notify: adrian@varisys.co.uk Subject: optimization/8252: gcc 3.2 ICE on AltiVec code with optimisation turned on X-SW-Source: 2002-10/txt/msg00669.txt.bz2 List-Id: >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 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: