This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: g77 - fatal signal


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)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]