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 libfortran/33985] New: access="stream",form="unformatted" doesn't buffer


Reduced test case from

http://gcc.gnu.org/ml/fortran/2007-10/msg00412.html

$ cat write.f90 
program main
  implicit none
  integer :: i
  open(95,form="unformatted",access="stream")
  do i=0,255
    write(95) int(i,kind=1)
  end do
end program main
$ gfortran write.f90 
$ strace -etrace=write ./a.out
write(3, "\0", 1)                       = 1
write(3, "\1", 1)                       = 1
write(3, "\2", 1)                       = 1
write(3, "\3", 1)                       = 1
write(3, "\4", 1)                       = 1
write(3, "\5", 1)                       = 1
write(3, "\6", 1)                       = 1
write(3, "\7", 1)                       = 1
write(3, "\10", 1)                      = 1
write(3, "\t", 1)                       = 1
write(3, "\n", 1)                       = 1
write(3, "\v", 1)                       = 1
write(3, "\f", 1)                       = 1
write(3, "\r", 1)                       = 1
write(3, "\16", 1)                      = 1
write(3, "\17", 1)                      = 1
write(3, "\20", 1)                      = 1
write(3, "\21", 1)                      = 1
write(3, "\22", 1)                      = 1
write(3, "\23", 1)                      = 1
write(3, "\24", 1)                      = 1
write(3, "\25", 1)                      = 1
write(3, "\26", 1)                      = 1
write(3, "\27", 1)                      = 1
write(3, "\30", 1)                      = 1
write(3, "\31", 1)                      = 1
write(3, "\32", 1)                      = 1
write(3, "\33", 1)                      = 1
write(3, "\34", 1)                      = 1

... and so on.


-- 
           Summary: access="stream",form="unformatted" doesn't buffer
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tkoenig at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33985


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