Red Hat Bugzilla – Bug 247407
gcc w/ -O1+ gives internal compiler error: Segmentation fault
Last modified: 2007-11-30 17:12:09 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:22.214.171.124) Gecko/20070530 Fedora/126.96.36.199-1.fc6 Firefox/188.8.131.52
Description of problem:
After the recent update to gcc-4.1.2-13.fc6, I observe many ICEs on C files produced by MLton (http://mlton.org), a compiler for Standard ML that uses C and gcc as one backend. The ICEs occur with optimization level 1 or higher; I do not observe the ICEs with optimization level 0. I did not observe any such ICEs (with any optimization level) with
As the C code is machine generated, it isn't particularly human readable.
Nonetheless, I've attached a preprocessed source file, as indicated by the gcc error message.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. gcc -c -O1 ccVnl11d.out.c
z.2.c: In function ‘Chunk2’:
z.2.c:1188: warning: assignment makes pointer from integer without a cast
z.2.c:1533: warning: assignment makes pointer from integer without a cast
z.2.c:1552: warning: assignment makes pointer from integer without a cast
z.2.c:164: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccRZLLye.out file, please attach this to your bugreport.
Created attachment 158745 [details]
preprocessed source demonstrating gcc ICE
Can the fix in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32694#c5 be backported?
This is breaking MLton in Fedora:
F8t3 freeze is soon. Any chance of this being fixed before that? Thanks.
I've confirmed this is fixed in latest rawhide. Thanks!