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 55132 - g77 internal error for exit(%val)
g77 internal error for exit(%val)
Product: Red Hat Linux
Classification: Retired
Component: gcc (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2001-10-25 20:05 EDT by Jay W Parker
Modified: 2007-04-18 12:37 EDT (History)
0 users

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

Attachments (Terms of Use)

  None (edit)
Description Jay W Parker 2001-10-25 20:05:37 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.7 (Macintosh; I; PPC)

Description of problem:
Trivial program trying "call exit(%val(zero))" (admittedly a strange thing to try) generates gcc-g77 internal 
error. Like this:
>cat tmp2.f
      program tmp
c checks exit status flag connection
      implicit none
      integer *8  zero
      parameter (zero = 0)
      call exit(%val(zero))
> g77 -c -fno-underscoring tmp2.f
../../../gcc/f/com.c:3863: failed assertion `"bad op" == NULL'
tmp2.f: In program `tmp':
tmp2.f:6: Internal error: Aborted.

Version-Release number of selected component (if applicable):
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
Install date: Wed 11 Jul 2001 10:08:28 PM PDT      Build Host: porky.devel.redhat.com
Group       : Development/Languages         Source RPM: gcc-2.96-85.src.rpm
Size        : 4071462                          License: GPL
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>

How reproducible:

Steps to Reproduce:
1.g77 -c -fno-underscoring tmp2.f (see above for tmp2.f)

Actual Results:  g77 -c -fno-underscoring tmp2.f
../../../gcc/f/com.c:3863: failed assertion `"bad op" == NULL'
tmp2.f: In program `tmp':
tmp2.f:6: Internal error: Aborted.
Please submit a full bug report.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.

Expected Results:  tmp2.o

Additional info:
Comment 1 Jakub Jelinek 2001-10-29 06:23:13 EST
Actually, any g77 will fail this way. Not being a Fortran speaker, I passed this
on to GCC Fortran maintainer.
Comment 2 Alan Cox 2002-12-15 13:00:51 EST
Fixed for 3.2

tmp2.f: In program `tmp':
         call exit(%val(zero))
Too many arguments passed to intrinsic `EXIT' at (^)

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