This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/19303] New: Opteron problem when writing binary files: 8-byte record header instead of 4-byte record header
- From: "milan at cmm dot ki dot si" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jan 2005 23:26:58 -0000
- Subject: [Bug libfortran/19303] New: Opteron problem when writing binary files: 8-byte record header instead of 4-byte record header
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I am trying to read the binary files produced with amd64 on a 32 bit machine.
This is not possible because the record header changed from 4-bytes to 8-bytes.
Can this be fixed? Example program:
write(1)'Z'
end
produces fort.1 on opteron with the following content if opened in emacs:
^A^@^@^@^@^@^@^@Z^A^@^@^@^@^@^@^@
But it produces:
^A^@^@^@Z^A^@^@^@
on 32 bit machine or using -m32 on opteron.
I beleive this is libfortran bug or feature, but I still thing the files should
be readable across the platforms, or there should be some compile time option
for this. I hope this is not against some stupid standard :-(
--
Summary: Opteron problem when writing binary files: 8-byte record
header instead of 4-byte record header
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libfortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: milan at cmm dot ki dot si
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19303