This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [RFC] fseek, an alternative implementation (PR22359)
- From: "François-Xavier Coudert" <fxcoudert at gmail dot com>
- To: "Janne Blomqvist" <blomqvist dot janne at gmail dot com>
- Cc: "Jerry DeLisle" <jvdelisle at verizon dot net>, "Daniel Franke" <franke dot daniel at gmail dot com>, fortran at gcc dot gnu dot org
- Date: Mon, 30 Apr 2007 09:38:55 +0200
- Subject: Re: [RFC] fseek, an alternative implementation (PR22359)
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=fsn8zCZQoo+jr1vtsVsU6YUT3gMOtFmMHe2a6ZVCvQr5aGyrkxn/19fELrhliKTEoERh3x/ttV8SWsvmuN1YGK01o+g3QNx275JLpVdyV6fcvjWgZ9yxYFJPucS5QohQ/ymRYL6AqVveu0nboikHunnkOFO+ZApp2OliybWxyB0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=iOJLYb92JlpUgJGdeMm/CVNI7oBbPMZKdAAjtG6eGHckKpD50nswQcGEG/M16Fom6WSuKPJMOdy99TZouEkMGnn8z3/p+/6PWBuavztMnO9qbea5eVjh+7ucUy1IYLMWYB9cg8DwKelI5Z9i/vmYaIidMjZ/AuC0h7ushU/r6kw=
- References: <200704292241.56411.franke.daniel@gmail.com> <46351713.1080906@verizon.net> <7b446c2e0704300035h4427c7e0q7ab9b905cb2383a4@mail.gmail.com>
I don't think the front end knows what sizeof(gfc_offset) is on the
target. But rather than worry about teaching the frontend yet another
detail about the target, I'd suggest just using INTEGER(8) for
offsets, whether the target has LFS support or not. Unless we claim to
support targets that don't support 8 byte integer types at all?
We already have, both in the front-end and library, a type "I/O int"
(gfc_intio_kind in the front end; GFC_IO_INT in the library) for this
kind of thing. It's an integer(8) is this is supported, an integer(4)
otherwise.
That sounds like the good type to use.
FX