Re: [Patch, libfortran, 3/3] Update file position lazily

2011-10-31 Thread Janne Blomqvist
On Sun, Oct 30, 2011 at 01:29, Janne Blomqvist wrote: > On Sat, Oct 29, 2011 at 18:35, Mikael Morin wrote: >> On Saturday 29 October 2011 14:43:22 Mikael Morin wrote: >>> > FWIW, it seems ifort 12.0 uses "UNDEFINED" in this case; I suppose a >>> > case could be made for using the same. Comments?

Re: [Patch, libfortran, 3/3] Update file position lazily

2011-10-29 Thread Janne Blomqvist
On Sat, Oct 29, 2011 at 18:35, Mikael Morin wrote: > On Saturday 29 October 2011 14:43:22 Mikael Morin wrote: >> > FWIW, it seems ifort 12.0 uses "UNDEFINED" in this case; I suppose a >> > case could be made for using the same. Comments? >> >> Let's go for UNDEFINED then. > On second thought, UNSP

Re: [Patch, libfortran, 3/3] Update file position lazily

2011-10-29 Thread Mikael Morin
On Saturday 29 October 2011 14:43:22 Mikael Morin wrote: > > FWIW, it seems ifort 12.0 uses "UNDEFINED" in this case; I suppose a > > case could be made for using the same. Comments? > > Let's go for UNDEFINED then. On second thought, UNSPECIFIED is better as UNDEFINED is for another case.

Re: [Patch, libfortran, 3/3] Update file position lazily

2011-10-29 Thread Mikael Morin
On Saturday 29 October 2011 10:09:07 Janne Blomqvist wrote: > On Sat, Oct 29, 2011 at 01:48, Mikael Morin wrote: > > On Tuesday 18 October 2011 17:11:24 Janne Blomqvist wrote: > >> Also, I think I've found a small standards conformance bug. From F2008 > >> (N1830) 9.10.2.23 (page 256): "... ASIS i

Re: [Patch, libfortran, 3/3] Update file position lazily

2011-10-29 Thread Janne Blomqvist
On Sat, Oct 29, 2011 at 01:48, Mikael Morin wrote: > On Tuesday 18 October 2011 17:11:24 Janne Blomqvist wrote: >> Also, I think I've found a small standards conformance bug. From F2008 >> (N1830) 9.10.2.23 (page 256): "... ASIS if the connection was opened >> without changing its position." and "

Re: [Patch, libfortran, 3/3] Update file position lazily

2011-10-28 Thread Mikael Morin
On Tuesday 18 October 2011 17:11:24 Janne Blomqvist wrote: > Also, I think I've found a small standards conformance bug. From F2008 > (N1830) 9.10.2.23 (page 256): "... ASIS if the connection was opened > without changing its position." and "If the file has been repositioned > since the connection,

[Patch, libfortran, 3/3] Update file position lazily

2011-10-18 Thread Janne Blomqvist
Hi, libgfortran maintains a position flag which is used by the INQUIRE(POSITION=...) statement. Currently we update this flag after every IO statement. For unbuffered IO this is somewhat tedious, as figuring out whether we're at the beginning of a file or the end requires at least two syscalls. Th