gcc/libgfortran
Janne Blomqvist 0dc4346159 re PR libfortran/16339 (Unformatted i/o on large arrays inefficient)
2005-10-07  Janne Blomqvist <jblomqvi@cc.hut.fi>

	PR fortran/16339
	PR fortran/23363
	* io/io.h: Add read and write members to stream, define access
	macros.
	* io/transfer.c (read_block_direct): New function.
	(write_block_direct): New function.
	(unformatted_read): Change to use read_block_direct.
	(unformatted_write): Change to use write_block_direct.
	* io/unix.c: Remove mmap includes and defines.
	(writen): Remove.
	(readn): Remove.
	(reset_stream): New function.
	(do_read): New function.
	(do_write): New function.
	(fd_flush): Change to use do_write() instead of writen().
	(fd_alloc_r_at): Change to use do_read().
	(fd_seek): Change return type to try, as the prototype. Add check
	to avoid syscall overhead if possible.
	(fd_read): New function.
	(fd_write): New function.
	(fd_open): Set pointers for new functions.
	(mem_read): New function.
	(mem_write): New function.
	(open_internal): Set pointers for new functions.
	(is_seekable): Clean up comment.

From-SVN: r105101
2005-10-07 20:02:28 +00:00
..
generated re PR libfortran/19308 (I/O library should support more real and integer kinds) 2005-10-03 07:22:20 +00:00
intrinsics re PR libfortran/19308 (I/O library should support more real and integer kinds) 2005-10-03 07:22:20 +00:00
io re PR libfortran/16339 (Unformatted i/o on large arrays inefficient) 2005-10-07 20:02:28 +00:00
m4 re PR libfortran/19308 (I/O library should support more real and integer kinds) 2005-10-03 07:22:20 +00:00
runtime * runtime/memory.c (allocate_size): Malloc 1 byte if size == 0. 2005-10-03 22:32:44 +02:00
.cvsignore
acinclude.m4 re PR target/23552 (FAIL: gfortran.dg/large_real_kind_1.f90) 2005-09-27 21:12:52 +00:00
aclocal.m4 c99_protos.h: Add prototypes for C99 complex functions. 2005-09-25 21:39:58 +00:00
c99_protos.h c99_protos.h: Add prototypes for C99 complex functions. 2005-09-25 21:39:58 +00:00
ChangeLog re PR libfortran/16339 (Unformatted i/o on large arrays inefficient) 2005-10-07 20:02:28 +00:00
config.h.in re PR target/23552 (FAIL: gfortran.dg/large_real_kind_1.f90) 2005-09-27 21:12:52 +00:00
configure re PR target/23552 (FAIL: gfortran.dg/large_real_kind_1.f90) 2005-09-27 21:12:52 +00:00
configure.ac re PR target/23552 (FAIL: gfortran.dg/large_real_kind_1.f90) 2005-09-27 21:12:52 +00:00
fmain.c
libgfortran.h re PR libfortran/19308 (I/O library should support more real and integer kinds) 2005-10-03 07:22:20 +00:00
libtool-version
Makefile.am re PR libfortran/19308 (I/O library should support more real and integer kinds) 2005-10-03 07:22:20 +00:00
Makefile.in re PR libfortran/19308 (I/O library should support more real and integer kinds) 2005-10-03 07:22:20 +00:00
mk-kinds-h.sh re PR libfortran/19308 (I/O library should support more real and integer kinds) 2005-10-03 07:22:20 +00:00
mk-sik-inc.sh
mk-srk-inc.sh