Bug 188183

Summary: ICE compiling with -O
Product: [Fedora] Fedora Reporter: Kai Engert (:kaie) (inactive account) <kengert>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED WORKSFORME QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-04-06 19:27:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Preprocessed source none

Description Kai Engert (:kaie) (inactive account) 2006-04-06 18:58:45 UTC
Description of problem:
internal compiler error: Segmentation fault

Version-Release number of selected component (if applicable):
gcc version 4.1.0 20060304 (Red Hat 4.1.0-3)

How reproducible:

gcc -c -fPIC -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -Wno-long-long
-pedantic -pthread -pipe -O x.c

No ICE if I emit -O


Original command:
gcc -o e_pow.o -c -I../../../dist/include/system_wrappers -include
/home/kaie/moz/18-ecc/mozilla/config/gcc_hidden.h -DOSTYPE=\"Linux2.6.16-1\"
-DOSARCH=\"Linux\" -DBUILD_ID=2006040620   -I../../../dist/include/js
-I../../../dist/include -I../../../dist/include/nspr   
-I../../../dist/sdk/include    -fPIC  -Wall -W -Wno-unused -Wpointer-arith
-Wcast-align -Wno-long-long -pedantic -pthread -pipe  -DNDEBUG -DTRIMMED -O
-D_IEEE_LIBM   -include ../../../mozilla-config.h -DMOZILLA_CLIENT
-Wp,-MD,.deps/e_pow.pp /home/kaie/moz/18-ecc/mozilla/js/src/fdlibm/e_pow.c: In
function â__ieee754_powâ:
/home/kaie/moz/18-ecc/mozilla/js/src/fdlibm/e_pow.c:386: internal compiler
error: Segmentation fault
Preprocessed source stored into /tmp/cc3vBWE8.out file, please attach this to
your bugreport.
gmake[1]: *** [e_pow.o] Error 1

Comment 1 Kai Engert (:kaie) (inactive account) 2006-04-06 18:58:45 UTC
Created attachment 127421 [details]
Preprocessed source

Comment 2 Kai Engert (:kaie) (inactive account) 2006-04-06 19:11:27 UTC
This seems to work with gcc from rawhide


Comment 3 Kai Engert (:kaie) (inactive account) 2006-04-06 19:20:33 UTC
To elaborate on my previous comment:

On a Rawhide machine with the same gcc version number installed
   gcc version 4.1.0 20060304 (Red Hat 4.1.0-3)
I do not get an ICE.


Comment 4 Kai Engert (:kaie) (inactive account) 2006-04-06 19:27:28 UTC
I'm confused. Although I had been able to repeatedly reproduce the problem, I no
longer can. I wonder if my machine got a hardware memory problem. Let me resolve
this as WORKSFORME for now, I'll reopen if I can reproduce again.