PR 25708 Avoid seeking when parsing strings and when peeking.
commit925fd923c57a02231894851b8ef57f8c55eabc13
authorjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Dec 2011 14:12:37 +0000 (1 14:12 +0000)
committerjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Dec 2011 14:12:37 +0000 (1 14:12 +0000)
tree5e86a010eb82092208c029451a0de36d2a425501
parent71c2d07f9531c002933720907068640220c1224d
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181879 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/module.c