]> git.ipfire.org Git - thirdparty/gcc.git/commit
Share vtables instead of replicating them for each unit.
authorJanne Blomqvist <jb@gcc.gnu.org>
Fri, 16 Mar 2012 08:30:26 +0000 (10:30 +0200)
committerJanne Blomqvist <jb@gcc.gnu.org>
Fri, 16 Mar 2012 08:30:26 +0000 (10:30 +0200)
commit33959d1d3c8f791c6b293367fdfb8acacab17534
treea57a717a913b31ddd91e573fff313fe1d159570e
parentc4256b35bfb6a4395951053536300ca1725b0521
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.

From-SVN: r185454
libgfortran/ChangeLog
libgfortran/io/unix.c
libgfortran/io/unix.h