Bug 24115 - gcc 2.96-69 segfault with i686/athlon optimization
Summary: gcc 2.96-69 segfault with i686/athlon optimization
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: gcc
Version: 7.0
Hardware: i686
OS: Linux
medium
high
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: David Lawrence
URL:
Whiteboard:
: 25375 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-01-16 15:50 UTC by Daniel Karlsson
Modified: 2007-04-18 16:30 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-01-16 17:00:30 UTC
Embargoed:


Attachments (Terms of Use)

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. ***


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