Red Hat Bugzilla – Bug 50484
gcc3-3.0-5 ices on legal code with optimization O2
Last modified: 2007-04-18 12:35:20 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
Description of problem:
The attached source code, test.c, results in an "Internal error:
Segmentation Fault" when compiled with -O2.
Steps to Reproduce:
1.compile attached source with 'gcc3 -c -O2'.
Actual Results: > gcc3 -c -O2 test.c
test.c: In function `foo':
test.c:64: Internal error: Segmentation fault
Expected Results: compile cleanly.
1) compiles cleanly with optimizations < 2.
2) compiles cleanly all the time with gcc version egcs-2.91.66
19990314/Linux (egcs-1.1.2 release)
3) also reported to gnats reference number c3886
Created attachment 25631 [details]
source test case
I downloaded gcc3 from cvs (gcc.gnu.org) tonight and, whatever they did they did
well; my test case now compiles cleanly with -O2!! Woo Hoo!! If you haven't
updated your tree in a while doing so will probably allow you to mark this bug