This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/59764] Read logicals, line buffer, item_count, and error message consistancy


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59764

--- Comment #6 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Author: jvdelisle
Date: Sat Feb 22 02:11:44 2014
New Revision: 208038

URL: http://gcc.gnu.org/viewcvs?rev=208038&root=gcc&view=rev
Log:
2014-02-21  Jerry DeLisle  <jvdelisle@gcc.gnu>
        Dominique d'Humieres  <dominiq@lps.ens.fr>
        Steven G. Kargl  <kargl@gcc.gnu.org>

    Backport from mainline
    PR libfortran/59700
    PR libfortran/59764
    * io/io.h (struct st_parameter_dt): Assign expanded_read flag to
    unused bit. Define new variable line_buffer_pos.
    * io/list_read.c (free_saved, next_char, l_push_char,
    read_logical, read_real): Replace use of item_count with
    line_buffer_pos for line_buffer look ahead.
    (read_logical, read_integer, parse_real, read_real, check_type):
    Adjust location of free_line to after generating error messages
    to retain the correct item count for the message. 

Modified:
    branches/gcc-4_8-branch/libgfortran/ChangeLog
    branches/gcc-4_8-branch/libgfortran/io/io.h
    branches/gcc-4_8-branch/libgfortran/io/list_read.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]