Bug 50484

Summary: gcc3-3.0-5 ices on legal code with optimization O2
Product: [Retired] Red Hat Raw Hide Reporter: eeeg
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: high Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-08-08 04:28:25 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
source test case none

Description eeeg 2001-07-31 16:46:05 UTC
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.

How reproducible:
Always

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.

Additional info:

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

Comment 1 eeeg 2001-07-31 16:47:46 UTC
Created attachment 25631 [details]
source test case

Comment 2 eeeg 2001-08-08 04:28:21 UTC
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
as closed.