Bug 42860 - ICE in gcc-4.4.3 with graphite
Summary: ICE in gcc-4.4.3 with graphite
Status: RESOLVED WONTFIX
Alias: None
Product: gcc
Classification: Unclassified
Component: middle-end (show other bugs)
Version: 4.4.3
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
: 43398 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-01-25 03:13 UTC by ronis
Modified: 2011-02-02 16:23 UTC (History)
3 users (show)

See Also:
Host: i686-linux-gnu
Target: i686-linux-gnu
Build: i686-linux-gnu
Known to work: 4.5.0
Known to fail:
Last reconfirmed:


Attachments
Preprocessed source file causing the ICE (23.04 KB, application/octet-stream)
2010-01-25 03:15 UTC, ronis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ronis 2010-01-25 03:13:51 UTC
I've just upgraded to 4.4.3 and tried a fresh build of mesa's git/master.  I get an ICE as:

/usr/bin/gcc -I../../include -march=native -msse2 -mfpmath=sse -O3 -ffast-math -funroll-loops -fomit-frame-pointer -floop-interchange -floop-strip-mine -floop-block -Wall -Wmissing-prototypes -std=c99 -ffast-math -fvisibility=hidden -fno-strict-aliasing  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS  clip.c -L../../lib -lglut -lGLU -lGL  -lm -o clip
checker.c: In function 'main':
checker.c:129: internal compiler error: in expand_scalar_variables_expr, at graphite.c:4295
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
gmake[2]: *** [checker] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[2]: Leaving directory `/home/ronis/Project/notar/X/mesa/progs/redbook'

I recompiled with --save-temps and will upload the .i file.

Removing the -floop-interchange -floop-strip-mine -floop-block flags "fixes" the problem

Finally, I'm quite sure that I reported something similar to this in the past, and that it was supposedly fixed (I can't find it in bugzilla though).
Comment 1 ronis 2010-01-25 03:15:30 UTC
Created attachment 19701 [details]
Preprocessed source file causing the ICE

This is the first source file that triggers the ICE; there are others.
Comment 2 Sebastian Pop 2010-02-08 05:50:21 UTC
Works with trunk GCC 4.5 at rev. 156585.
Comment 3 Sebastian Pop 2010-03-17 15:13:13 UTC
*** Bug 43398 has been marked as a duplicate of this bug. ***
Comment 4 Sebastian Pop 2010-03-17 15:14:37 UTC
See PR43398 for a nicely reduced testcase.
Comment 5 Sebastian Pop 2011-02-02 16:23:27 UTC
I won't fix graphite in 4.4, please use GCC 4.5.