[Bug libfortran/19303] New: Opteron problem when writing binary files: 8-byte record header instead of 4-byte record header
milan at cmm dot ki dot si
gcc-bugzilla@gcc.gnu.org
Thu Jan 6 23:27:00 GMT 2005
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
More information about the Gcc-bugs
mailing list