http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38199
--- Comment #42 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- Author: jvdelisle Date: Thu Mar 13 05:06:57 2014 New Revision: 208528 URL: http://gcc.gnu.org/viewcvs?rev=208528&root=gcc&view=rev Log: 2014-03-12 Jerry DeLisle <jvdeli...@gcc.gnu> PR libfortran/38199 * io/read.c (read_decimal): Quickly skip spaces to avoid calls to next_char. * io/unit.c (is_trim_ok): New helper function to check various conditions to see if its OK to trim the internal unit string. (get_internal_unit): Use LEN_TRIM to shorten selected internal unit strings for optimizing READ. Enable this optimization for formatted READ. * io/list_read.c (finish_list_read): Don't call eat_line for internal units. Modified: trunk/libgfortran/ChangeLog trunk/libgfortran/io/list_read.c trunk/libgfortran/io/read.c trunk/libgfortran/io/unit.c