Bug 42860

Summary: ICE in gcc-4.4.3 with graphite
Product: gcc Reporter: ronis
Component: middle-endAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED WONTFIX    
Severity: normal CC: gcc-bugs, scientica, spop
Priority: P3    
Version: 4.4.3   
Target Milestone: ---   
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

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.