This is the mail archive of the gcc-bugs@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]

[Bug fortran/23814] New: unformatted files from gfortran are incompatible with g77 unformatted files and solaris f95 unformatted files


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


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