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 file truncation bug


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)


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