This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: g77 - fatal signal
- To: H C Pumphrey <hcp at met dot ed dot ac dot uk>
- Subject: Re: g77 - fatal signal
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Date: Tue, 19 Sep 2000 20:31:11 +0200
- CC: gcc-bugs at gcc dot gnu dot org
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <Pine.GSO.4.10.10009191149230.2979-100000@humilis>
H C Pumphrey wrote:
> I'm writing to report a bug in g77. The bug is exposed by a source
> file from the NCAR Graphics package, which has recently been released
> under the GPL ( see http://ngwww.ucar.edu/ng4.2/). The source code
> file cpgetr.f causes an internal compiler error, giving a fatal
> signal:
>
> bash$ g77 -W -Wall -O -c cpgetr.f
> /home/swt/doko/export/packages/gcc/gcc-2.95.2/src/gcc/f/stw.c:308: failed assertion `b->uses_ > 0'
> g77: Internal compiler error: program f771 got fatal signal 6
This is a known bug; it is already repaired in both the main development
trunk of our CVS tree and the 2.95.3 release branch. Unfortunately,
it's unclear whether (and if, when) a 2.95.3 release will take place.
If you want to correct it yourself, change line 73 of the file stw.h in
the f subdirectory of the gcc-2.95.2 distribution as follows:
Old: char uses_; /* # uses (new+use-kill calls). */
New: int uses_; /* # uses (new+use-kill calls). */
and rebuild the compiler.
Hope this helps,
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://g95.sourceforge.net/ (under construction)