This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, fortran] PR25289 Cannot handle record numbers large than huge(0_4)


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


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