------- Comment #5 from jvdelisle at gcc dot gnu dot org 2006-04-13 06:25 ------- Subject: Bug 26766
Author: jvdelisle Date: Thu Apr 13 06:24:58 2006 New Revision: 112914 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112914 Log: 2006-04-12 Jerry DeLisle <[EMAIL PROTECTED]> PR libgfortran/26766 * io/io.h: Add bit to identify associated unit as internal. * io/unit.c (get_external_unit): Renamed the find_unit_1 function to reflect the external unit functionality vs internal unit. (get_internal_unit): New function to allocate and initialize an internal unit structure. (get_unit): Use get_internal_unit and get_external_unit. (is_internal_unit): Revised to use new bit added in io.h. * io/transfer.c (data_transfer_init): Fix line width. (st_read_done): Free memory allocated for internal unit. (st_write_done): Add test to only flush and truncate when not an internal unit. Free memory allocated for internal unit. Modified: trunk/libgfortran/ChangeLog trunk/libgfortran/io/io.h trunk/libgfortran/io/transfer.c trunk/libgfortran/io/unit.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26766