aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/parse.c
diff options
context:
space:
mode:
authorJerry DeLisle <jvdelisle@gcc.gnu.org>2009-09-01 03:02:07 +0000
committerJerry DeLisle <jvdelisle@gcc.gnu.org>2009-09-01 03:02:07 +0000
commit9cd38d51e8bd13ccb1433cc920dc29b66820bc09 (patch)
tree9936a9bbed77c9807150e93a8b4afbed01f5b47f /gcc/fortran/parse.c
parent453503d6e6df0d85757837080f0ea2c72369e974 (diff)
downloadgcc-9cd38d51e8bd13ccb1433cc920dc29b66820bc09.zip
gcc-9cd38d51e8bd13ccb1433cc920dc29b66820bc09.tar.gz
gcc-9cd38d51e8bd13ccb1433cc920dc29b66820bc09.tar.bz2
re PR fortran/39229 (No warning of truncated lines if a continuation line follows)
2009-08-31 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/39229 * scanner.c (next_char): Fix typo in comment. (gfc_get_char_literal): Warn if truncate flag is set for both fixed and free form source, adjusting error locus as needed. * parse.c (next_fixed): Clear the truncate flag. (next_statement): Remove truncate warning. From-SVN: r151258
Diffstat (limited to 'gcc/fortran/parse.c')
-rw-r--r--gcc/fortran/parse.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/gcc/fortran/parse.c b/gcc/fortran/parse.c
index 2552fcd..e743989 100644
--- a/gcc/fortran/parse.c
+++ b/gcc/fortran/parse.c
@@ -849,6 +849,8 @@ next_fixed (void)
blank_line:
if (digit_flag)
gfc_warning ("Ignoring statement label in empty statement at %C");
+
+ gfc_current_locus.lb->truncated = 0;
gfc_advance_line ();
return ST_NONE;
}
@@ -862,6 +864,7 @@ next_statement (void)
{
gfc_statement st;
locus old_locus;
+
gfc_new_block = NULL;
gfc_current_ns->old_cl_list = gfc_current_ns->cl_list;
@@ -871,14 +874,7 @@ next_statement (void)
gfc_buffer_error (1);
if (gfc_at_eol ())
- {
- if ((gfc_option.warn_line_truncation || gfc_current_form == FORM_FREE)
- && gfc_current_locus.lb
- && gfc_current_locus.lb->truncated)
- gfc_warning_now ("Line truncated at %C");
-
- gfc_advance_line ();
- }
+ gfc_advance_line ();
gfc_skip_comments ();