With the snapshot 20041121 I get an ICE bitmap_ior, at bitmap.c:704 if I use the options -O1 (or higher) and -fmove-loop-invariants Snapshot 20041121 has the same problem. Michael Cieslinski gcc40a -c -O2 -fmove-loop-invariants -o cineonlib.o cineonlib.i -v -pipe Reading specs from /usr/local/gcc40a/lib/gcc/powerpc-unknown-linux- gnu/4.0.0/specs Configured with: ../gcc40/configure --prefix=/usr/local/gcc40a --program- suffix=40a --with-cpu=G5 --enable-altivec --enable-languages=c,c++ --enable- checking Thread model: posix gcc version 4.0.0 20041121 (experimental) /usr/local/gcc40a/libexec/gcc/powerpc-unknown-linux-gnu/4.0.0/cc1 - fpreprocessed cineonlib.i -quiet -dumpbase cineonlib.i -mcpu=G5 -auxbase-strip cineonlib.o -O2 -version -fmove-loop-invariants -o - | as -mpower4 -maltivec -many -V -Qy -o cineonlib.o - GNU C version 4.0.0 20041121 (experimental) (powerpc-unknown-linux-gnu) compiled by GNU C version 4.0.0 20041107 (experimental). GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU assembler version 2.15.90 (ppc-redhat-linux) using BFD version 2.15.90 20040225 cineonlib.c: In function dumpCineonGenericHeader: cineonlib.c:282: internal compiler error: in bitmap_ior, at bitmap.c:704 Please submit a full bug report, with preprocessed source if appropriate.
Created attachment 7581 [details] preprocessed source
Confirmed. Patch here: http://gcc.gnu.org/ml/gcc-patches/2004-11/msg01770.html
Reduced testcase: typedef struct { int channels_per_image; int channel[8]; } CineonImageInformation; void dumpCineonImageInfo(CineonImageInformation* imageInfo) { int i; for (i = 0; i < imageInfo->channels_per_image; ++i) { dumpCineonChannelInfo(&imageInfo->channel[i]); } }
Fixed
Can you commit the small testcase here, Daniel?
Subject: Re: [4.0 Regression] ICE: in bitmap_ior, at bitmap.c:704 with -O1 -fmove-loop-invariants On Mon, 23 Nov 2004, giovannibajo at libero dot it wrote: > > ------- Additional Comments From giovannibajo at libero dot it 2004-11-23 03:01 ------- > Can you commit the small testcase here, Daniel? Will do.
Subject: Bug 18611 CVSROOT: /cvs/gcc Module name: gcc Changes by: dberlin@gcc.gnu.org 2004-11-23 03:13:53 Added files: gcc/testsuite/gcc.dg: 20041122-1.c Log message: Testcase from PR rtl-optimization/18611 Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/20041122-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1