This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: fortran io with g77 on redhat 7.2 for itanium ( IA64 )


Winfrid Tschiedel wrote:

Please check your answer - I have attached a small program which
tells you about datasizes and representation.
`long' is 8 byte on RedHat 7.2 for Itanium ( IA64 ) as you can see from
the output of the attached program :


uname -a
Linux tiger-4 2.4.9-18smp #1 SMP Tue Dec 11 12:59:00 EST 2001 ia64 unknown

gcc-c++-2.96-112.7.2
gcc-g77-2.96-112.7.2
gcc-2.96-112.7.2
gcc-g77-2.96-112.7.2
glibc-2.2.4-31
glibc-common-2.2.4-31

OK. Whether the length of a record on unformatted I/O is given as a long or an int is determined by the setting of the preprocessor symbol UIOLEN_int (see gcc/libf2c/libI77/fio.h).


As gcc-2.96 is not an FSF release of gcc, I cannot confirm (or deny) that this symbol was set such that `int' was used as the type of integer used for record lengths, or `long'.

Please build a recent gcc (such as 3.2.3) from source and report the results.

Thanks,

--
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
GNU Fortran 95: http://gcc-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]