This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/23814] New: unformatted files from gfortran are incompatible with g77 unformatted files and solaris f95 unformatted files
- From: "rrr6399 at futuretek dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Sep 2005 03:16:38 -0000
- Subject: [Bug fortran/23814] New: unformatted files from gfortran are incompatible with g77 unformatted files and solaris f95 unformatted files
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I ran into a problem with unformatted files with gfortran. It appears that it is
padding the delimitters to 8 byte boundaries (or the delimitters are 64 bit
longs) rather than the normal 4 byte delimitter approach.
For instance, I have a program that does this:
write(1) 1
end
g77 and solaris f95 returns (ignoring the byteswapping issues):
od -x fort.1:
0000000 0004 0000 0001 0000 0004 0000
gfortran returns:
0000000 0004 0000 0000 0000 0001 0000 0004 0000
0000020 0000 0000
is there a flag to make the delimitters 4 bytes rather than 8 bytes?
--
Summary: unformatted files from gfortran are incompatible with
g77 unformatted files and solaris f95 unformatted files
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: critical
Priority: P1
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rrr6399 at futuretek dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23814