]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/42852 (gfortran -Wall warns about truncated lines when only a continuat...
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Sun, 25 Jul 2010 15:07:45 +0000 (15:07 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Sun, 25 Jul 2010 15:07:45 +0000 (15:07 +0000)
commitac64eec40cd1d2ab07b24e1b077d35d05c9dd2de
tree6784d2dcd7365cf5faef8a9bb3e4178b7f5eef52
parentaf8e1802e1d235b67a0b1056ce34df3c44a23f53
re PR fortran/42852 (gfortran -Wall warns about truncated lines when only a continuation character is truncated)

2010-07-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/42852
* scanner.c (gfc_next_char_literal): Move check for truncation earlier
in the function so that it does not get missed by early exits.
(load_line): Add checks for quoted strings and free form comments to
disable warnings on comments. Add check for ampersand as first
character after truncation and don't warn for this case, but warn if
there are subsequent non-whitespace characters.

From-SVN: r162512
gcc/fortran/ChangeLog
gcc/fortran/scanner.c