Red Hat Bugzilla – Bug 133810
gcc4 cc1 segfaults while compiling code
Last modified: 2007-11-30 17:10:50 EST
Description of problem:
The attached .c program gives cc1 indigestion if compiled with '-Os
-march=MMMM', where MMMM is i586 or higher (i386 and i486 are OK).
Compiling with -O2 -march=pentium4 or -O3 -march=pentium4 works - it's
*only* an issue with -Os and i586 or higher.
Version-Release number of selected component (if applicable):
gcc4 -c -Os -march=pentium4 gcc-foo2.c
Steps to Reproduce:
% gcc4 -c -Os -march=pentium4 gcc4-foo2.c
gcc4: Internal error: Segmentation fault (program cc1)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
This is a trimmed-down version of the tkFont.c file from the
current Tk CVS tree.
Created attachment 104384 [details]
gcc4-foo2.c - compile with 'gcc4 -c -Os -march=pentium gcc4-foo2.c'
There are several known problems with scalar evolutions ATM.
Until these are fixed, there is no point in creating further
testcases involving scev. During a distro rebuild with gcc4, there
were at least 14 occurences of scev ICEs.