aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/scanner.c
diff options
context:
space:
mode:
authorJerry DeLisle <jvdelisle@gcc.gnu.org>2008-04-14 00:43:32 +0000
committerJerry DeLisle <jvdelisle@gcc.gnu.org>2008-04-14 00:43:32 +0000
commitdfbfb6301cf57551b13e2db2c7eabc32b67c30ba (patch)
tree2db815be26d6bb01b303596a05c9f1e2c07423c3 /gcc/fortran/scanner.c
parente7d95f6fdaf08bdffbf63230063ad1fba98c071c (diff)
downloadgcc-dfbfb6301cf57551b13e2db2c7eabc32b67c30ba.zip
gcc-dfbfb6301cf57551b13e2db2c7eabc32b67c30ba.tar.gz
gcc-dfbfb6301cf57551b13e2db2c7eabc32b67c30ba.tar.bz2
re PR fortran/35882 (Miscounted continuation lines when interspersed with data)
2008-04-13 Jerry DeLisle <jvdelisle@gcc.gnu.org> Tobias Burnus <burnus@net-b.de> PR fortran/35882 * options.c (gfc_init_options): Set the default maximum continuation lines to 255 for both free and fixed form source for warnings. (gfc_handle_option): Set -std=f95 fixed form max continuations to 19 and the -std=f95 free form max continuations to 39 for warnings. * scanner.c (gfc_next_char_literal): Adjust the current_line number only if it is less than the current locus. Co-Authored-By: Tobias Burnus <burnus@net-b.de> From-SVN: r134251
Diffstat (limited to 'gcc/fortran/scanner.c')
-rw-r--r--gcc/fortran/scanner.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/fortran/scanner.c b/gcc/fortran/scanner.c
index 872f350..dcdac64 100644
--- a/gcc/fortran/scanner.c
+++ b/gcc/fortran/scanner.c
@@ -821,7 +821,8 @@ restart:
"statement at %C", gfc_option.max_continue_free);
}
}
- continue_line = gfc_linebuf_linenum (gfc_current_locus.lb);
+ if (continue_line < gfc_linebuf_linenum (gfc_current_locus.lb))
+ continue_line = gfc_linebuf_linenum (gfc_current_locus.lb);
/* Now find where it continues. First eat any comment lines. */
openmp_cond_flag = skip_free_comments ();