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



------- Comment #23 from tkoenig at gcc dot gnu dot org  2007-12-01 22:19 -------
I'm studying why we get a regression in backspace_6.f, and
I'm confused by fd_alloc_r_at:



  gfc_offset m;

  if (where == -1)
    where = s->logical_offset;
...

What happens if where != -1 (if we use salloc_r_at)
and we hit the lines

  m = where + s->active;

  if (s->physical_offset != m && lseek (s->fd, m, SEEK_SET) < 0)
    return NULL;

I don't think this is correct.

We only use salloc_r_at form in backspace, so this
might be the reason for some mysterious bugs there.


-- 


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]