PR 25708 Avoid seeking when parsing strings and when peeking.
authorJanne Blomqvist <jb@gcc.gnu.org>
Thu, 1 Dec 2011 14:12:37 +0000 (16:12 +0200)
committerJanne Blomqvist <jb@gcc.gnu.org>
Thu, 1 Dec 2011 14:12:37 +0000 (16:12 +0200)
commitd7fb38e9ac62b51cf64ac901c8424c8cffc17907
tree5e86a010eb82092208c029451a0de36d2a425501
parentc136d69611a4b67e4e80657f1f9f0a7c4ef2d3f1
PR 25708 Avoid seeking when parsing strings and when peeking.

2011-12-01  Janne Blomqvist  <jb@gcc.gnu.org>

PR fortran/25708
* module.c (parse_string): Read string into resizable array
instead of parsing twice and seeking.
(peek_atom): New implementation avoiding seeks.
(require_atom): Save and set column and line explicitly for error
handling.

From-SVN: r181879
gcc/fortran/ChangeLog
gcc/fortran/module.c