This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: old libg2c intrinsics (ltime, fseek, ftell, fputc, etc.)
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Bryan Irby <irby at zambi dot gsfc dot nasa dot gov>
- Cc: fortran at gcc dot gnu dot org
- Date: Thu, 25 Aug 2005 10:14:55 -0700
- Subject: Re: old libg2c intrinsics (ltime, fseek, ftell, fputc, etc.)
- References: <20050825165024.GA14141@zambi.gsfc.nasa.gov>
On Thu, Aug 25, 2005 at 12:50:24PM -0400, Bryan Irby wrote:
> Hi,
>
> I have the dubious honor of managing a large system of software which
> includes a fair amount of ancient/legacy fortran code. Trying to keep
> up with the times, we're working to get it all compiling with gfortran/g95,
> (currently it's okay with f90 or g77), and have not surprisingly run into
> a number of problems. One of these problems is that some of the code uses
> instrinsics defined in the old libg2c (ltime, fseek, ftell, fputc, fgetc),
> and these are evidently no longer available. Mainly I'm now looking for
> some official confirmation a) that this is indeed the case, b) whether
> these functions will be reinstated at some point, and c) whether there
> are similar existing functions that might be used instead.
>
This is PR 19292. The answers to your questions are: a) yes, b) yes,
c) Don't know.
Adding intrinsic procedures is one of the easier modifications
to make to gfortran due to the enormous number of examples
already present (ie., copy -> paste -> edit -> compile).
If you don't mind getting your hands dirty, this is an area
where contributions would be welcomed.
--
Steve