Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 52554 - g77 -O2 -c serf.f causes internal compiler error
g77 -O2 -c serf.f causes internal compiler error
Product: Red Hat Linux
Classification: Retired
Component: gcc (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2001-08-24 19:54 EDT by Jay W Parker
Modified: 2007-04-18 12:36 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-12-15 12:39:32 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
very old fortran file: single prec error fcn from math77 (23.18 KB, text/plain)
2001-08-24 20:01 EDT, Jay W Parker
no flags Details

  None (edit)
Description Jay W Parker 2001-08-24 19:54:52 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.7 (Macintosh; I; PPC)

Description of problem:
Compilation of one particular routine by g77 with -O2 causes internal error report, no output.
-O1 or less works, -O3 fails. This same compilation line worked under RH6.2. 
You can have the source (see attachment).

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.  g77 -c -O2 serf.f

Actual Results:  > g77 -c -O2 serf.f
serf.f: In function `serf':
serf.f:453: Internal compiler error in convert_regs_1, at reg-stack.c:2607

Expected Results:  should have produced serf.o

Additional info:

Name        : gcc-g77                      Relocations: (not relocateable)
Version     : 2.96                              Vendor: Red Hat, Inc.
Release     : 85                            Build Date: Wed 09 May 2001 11:04:50 AM PDT
Comment 1 Jay W Parker 2001-08-24 20:02:00 EDT
Created attachment 29454 [details]
very old fortran file: single prec error fcn from math77
Comment 2 Jakub Jelinek 2001-08-28 08:09:18 EDT
Seems gcse is messing up the flow graph. The bug is present in g77 3.0.1 too,
bug apparently at least not reproduceable in g77 3.1 CVS.
Simple workaround -fno-gcse. Debugging...
Comment 3 Alan Cox 2002-12-15 12:39:32 EST
Ok in 3.2

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