Bug 41798 - internal compiler error: in expand_scalar_variables_expr, at graphite.c:4295
Summary: internal compiler error: in expand_scalar_variables_expr, at graphite.c:4295
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: tree-optimization (show other bugs)
Version: 4.4.2
: P3 critical
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-22 17:26 UTC by ronis
Modified: 2009-10-22 17:48 UTC (History)
1 user (show)

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


Attachments
Preprocessed file leading to ICE (29.54 KB, text/plain)
2009-10-22 17:27 UTC, ronis
Details
Resulting .s file (27 bytes, text/plain)
2009-10-22 17:28 UTC, ronis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ronis 2009-10-22 17:26:33 UTC
I'm building the git master of mesa on an i686-linux-gnu box (basically slackware 12.2) using 
gcc configured/built with 

gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc/configure --host=i686-pc-linux-gnu --prefix=/usr --with-gnu-as --enable-shared --with-gnu-ld --enable-threads=posix --with-ecj-jar=/usr/share/java/ecj.jar --enable-languages=c,c++,fortran,java,objc
Thread model: posix
gcc version 4.4.2 (GCC)

No CFLAGS or CXXFLAGS were set when I built gcc.

Make was building in mesa/progs/redbook when:


/usr/bin/gcc -save-temps -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 -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  checker.c -L../../lib -lglut -lGLU -lGL  -lm -o checker
checker.c:53: warning: no previous prototype for 'makeCheckImage'
checker.c:67: warning: no previous prototype for 'myinit'
checker.c:87: warning: no previous prototype for 'display'
checker.c:104: warning: no previous prototype for 'myReshape'
checker.c: In function 'makeCheckImage':
checker.c:53: internal compiler error: in expand_scalar_variables_expr, at graphite.c:4295

I'll attach the .i and .s files.
Comment 1 ronis 2009-10-22 17:27:22 UTC
Created attachment 18867 [details]
Preprocessed file leading to ICE
Comment 2 ronis 2009-10-22 17:28:40 UTC
Created attachment 18868 [details]
Resulting .s file

This is basically empty.
Comment 3 ronis 2009-10-22 17:33:20 UTC
removing -floop- flags hides/removes the problem.

Comment 4 Andrew Pinski 2009-10-22 17:34:50 UTC
(In reply to comment #3)
> removing -floop- flags hides/removes the problem.

Removes the problem.  graphite.c code is only involved when the -floop-* options are supplied.
Comment 5 Sebastian Pop 2009-10-22 17:44:31 UTC
Fixed in the Graphite branch.  I will do a merge back to trunk in the next days.

Sebastian
Comment 6 Sebastian Pop 2009-10-22 17:48:06 UTC
Oh, well, this is reported against gcc4.4. 

I do not intend to fix graphite there anymore, as there are way too many changes to backport.  You should try gcc 4.5 if you intend to use -floop-block.

Sebastian