Bug 247407 - gcc w/ -O1+ gives internal compiler error: Segmentation fault
gcc w/ -O1+ gives internal compiler error: Segmentation fault
Product: Fedora
Classification: Fedora
Component: gcc (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Fedora Extras Quality Assurance
: Reopened
Depends On:
Blocks: 268281
  Show dependency treegraph
Reported: 2007-07-09 00:33 EDT by Matthew Fluet
Modified: 2007-11-30 17:12 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-09-26 15:34:19 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
preprocessed source demonstrating gcc ICE (203.80 KB, text/x-csrc)
2007-07-09 00:35 EDT, Matthew Fluet
no flags Details

External Trackers
Tracker ID Priority Status Summary Last Updated
GNU Compiler Collection 32694 None None None Never

  None (edit)
Description Matthew Fluet 2007-07-09 00:33:48 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20070530 Fedora/ Firefox/

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):

How reproducible:

Steps to Reproduce:
1. gcc -c -O1 ccVnl11d.out.c

Actual Results:
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.

Expected Results:

Additional info:
Comment 1 Matthew Fluet 2007-07-09 00:35:30 EDT
Created attachment 158745 [details]
preprocessed source demonstrating gcc ICE
Comment 2 Jakub Jelinek 2007-07-09 08:56:51 EDT
Tracking upstream.
Comment 3 Adam Goode 2007-08-29 11:19:54 EDT
Can the fix in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32694#c5 be backported? 

This is breaking MLton in Fedora:
Comment 4 Adam Goode 2007-09-17 16:54:58 EDT
F8t3 freeze is soon. Any chance of this being fixed before that? Thanks.
Comment 5 Adam Goode 2007-09-26 15:34:19 EDT
I've confirmed this is fixed in latest rawhide. Thanks!

Note You need to log in before you can comment on or make changes to this bug.