This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r185454 - in /trunk/libgfortran: ChangeLog io/u...
- From: jb at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Fri, 16 Mar 2012 08:30:29 -0000
- Subject: r185454 - in /trunk/libgfortran: ChangeLog io/u...
Author: jb
Date: Fri Mar 16 08:30:26 2012
New Revision: 185454
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185454
Log:
Share vtables instead of replicating them for each unit.
2012-03-16 Janne Blomqvist <jb@gcc.gnu.org>
* io/unix.h (struct stream): Rename to stream_vtable.
(struct stream): New struct definition.
(sread): Dereference vtable pointer.
(swrite): Likewise.
(sseek): Likewise.
(struncate): Likewise.
(sflush): Likewise.
(sclose): Likewise.
* io/unix.c (raw_vtable): New variable.
(buf_vtable): Likewise.
(mem_vtable): Likewise.
(mem4_vtable): Likewise.
(raw_init): Assign vtable pointer.
(buf_init): Likewise.
(open_internal): Likewise.
(open_internal4): Likewise.
Modified:
trunk/libgfortran/ChangeLog
trunk/libgfortran/io/unix.c
trunk/libgfortran/io/unix.h