Bug 18611 - [4.0 Regression] ICE: in bitmap_ior, at bitmap.c:704 with -O1 -fmove-loop-invariants
Summary: [4.0 Regression] ICE: in bitmap_ior, at bitmap.c:704 with -O1 -fmove-loop-inv...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: rtl-optimization (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: 4.0.0
Assignee: Daniel Berlin
URL:
Keywords: ice-on-valid-code, patch
Depends on:
Blocks:
 
Reported: 2004-11-22 16:52 UTC by Michael Cieslinski
Modified: 2004-11-23 03:01 UTC (History)
1 user (show)

See Also:
Host: powerpc-unknown-linux-gnu
Target: powerpc-unknown-linux-gnu
Build: powerpc-unknown-linux-gnu
Known to work:
Known to fail:
Last reconfirmed: 2004-11-22 17:07:51


Attachments
preprocessed source (16.94 KB, text/plain)
2004-11-22 16:54 UTC, Michael Cieslinski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Cieslinski 2004-11-22 16:52:52 UTC
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.
Comment 1 Michael Cieslinski 2004-11-22 16:54:02 UTC
Created attachment 7581 [details]
preprocessed source
Comment 2 Daniel Berlin 2004-11-22 17:07:51 UTC
Confirmed.

Patch here:
http://gcc.gnu.org/ml/gcc-patches/2004-11/msg01770.html
Comment 3 Andrew Pinski 2004-11-22 17:16:42 UTC
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]);
  }
}
Comment 4 Daniel Berlin 2004-11-23 02:58:13 UTC
Fixed
Comment 5 Giovanni Bajo 2004-11-23 03:01:00 UTC
Can you commit the small testcase here, Daniel?
Comment 6 Daniel Berlin 2004-11-23 03:08:22 UTC
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.
Comment 7 GCC Commits 2004-11-23 03:14:13 UTC
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