This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, fortran] PR25289 Cannot handle record numbers large than huge(0_4)
- From: "François-Xavier Coudert" <fxcoudert at gmail dot com>
- To: "Jerry DeLisle" <jvdelisle at verizon dot net>
- Cc: "Fortran List" <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 19 Jun 2006 13:13:39 +0200
- Subject: Re: [Patch, fortran] PR25289 Cannot handle record numbers large than huge(0_4)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=AoBpjGbhEgf2UhxKTAACUcILS4mp8YvOLXM1TxaqSVZewqq5NyJWY75kE9pQxFCIQ1GJuCxw9Sy0Z81iiVI7XpgzAhuLhkPS3wwbOBhE85kYBjRI0y2JgUX9zCN3LtgYU2YYImrXDh5uVZw4oZAzhAWHpoShDC1KBnOSTYnkL0E=
- References: <44964AC9.2010006@verizon.net>
The patch converts the record number used for direct I/O to type gfc_offset in
the library and on the front end changes the type to int8 to match.
A gfc_offset is an off_t, which might not always be an int8.
The current situation is for the front-end to use
/* Choose the integer kind the same size as "void*" for our index kind. */
gfc_index_integer_kind = POINTER_SIZE / 8;
which means supposing that an off_t is always the same as a (void *).
I don't know if that assumption is right...
FX