Bug 24115

Summary: gcc 2.96-69 segfault with i686/athlon optimization
Product: [Retired] Red Hat Linux Reporter: Daniel Karlsson <chaotica>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: high Docs Contact:
Priority: medium    
Version: 7.0   
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: 2001-01-16 17:00:30 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:

Description Daniel Karlsson 2001-01-16 15:50:09 UTC
--- begin test.c ---
void
func(int i)
{
  float f;

  i = 1;

  f = i ? 1 : 0;
}
--- end test.c ---

gcc -c -O[n] -march={i686|athlon} test.c
test.c: In function `func':
test.c:9: Internal error: Segmentation fault.

Comment 1 Jakub Jelinek 2001-01-16 17:00:27 UTC
Fixed in CVS gcc and in my tree, the fix will appear in gcc-2.96-71.

Comment 2 Jakub Jelinek 2001-01-31 13:19:59 UTC
*** Bug 25375 has been marked as a duplicate of this bug. ***