[Patch, libfortran] PR 50016 Slow IO on Windows due to _commit()

Janne Blomqvist blomqvist.janne@gmail.com
Mon Oct 31 18:57:00 GMT 2011


Hi,

here's an updated version of my patch that gets rid of _commit along
with a section in the manual describing data consistency and
durability issues.

See also the thread starting at

http://gcc.gnu.org/ml/fortran/2011-10/msg00079.html

and the latest mail in that thread with my current thinking which
perhaps explains some of the motivations behind this patch:

http://gcc.gnu.org/ml/fortran/2011-10/msg00141.html

Regtested on x86_64-unknown-linux-gnu, Ok for trunk?

frontend ChangeLog:

2011-10-31  Janne Blomqvist  <jb@gcc.gnu.org>

	PR libfortran/50016
	* gfortran.texi (Data consistency and durability): New section.


testsuite ChangeLog:

2011-10-31  Janne Blomqvist  <jb@gcc.gnu.org>

	PR libfortran/50016
	* gfortran.dg/inquire_size.f90: Don't flush the unit.

libgfortran ChangeLog:

2011-10-31  Janne Blomqvist  <jb@gcc.gnu.org>

	PR libfortran/50016
	* io/inquire.c (inquire_via_unit): Flush the unit and use ssize.
	* io/unix.c (buf_flush): Don't call _commit.


-- 
Janne Blomqvist
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wincommit.diff
Type: text/x-patch
Size: 5229 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20111031/cb925a9f/attachment.bin>


More information about the Fortran mailing list