This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: g77 file truncation bug
- To: mike at snl951 dot chem dot metro-u dot ac dot jp
- Subject: Re: g77 file truncation bug
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Date: Wed, 21 Feb 2001 00:07:50 +0100
- CC: gcc-bugs at gcc dot gnu dot org, Brett Bode <brett at si dot fi dot ameslab dot gov>
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <200102192255.HAA15160@snl951.chem.metro-u.ac.jp>
mike@snl951.chem.metro-u.ac.jp wrote:
> I would like to report a serious defect in the I/O library of g77,
> present in versions up to 2.95, and a fix for this. This E-mail
> consists of three parts:
> 1. a description of the problem
> 2. a small FORTRAN program demonstrating it
> 3. a fix to the endfile.c routine
Thank you very much for this detailed bug report. I am aware of the
strange way of dealing with overwriting SEQUENTIAL files in the run time
library of g77 (which is derived from the run time library accompanying
the free Fortran-to-C converter f2c).
I'd like to discuss this matter with the original author of that library
(David M. Gay of AT&T) before deciding on the way to fix this
shortcoming.
It might be that Dr. Gay implemented it this way to work around
behaviours in certain operating systems or certain variants of Unix.
If so, I'll devise an autoconf test to find out if ftruncate works
correctly for this feature.
Kind regards,
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)