This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch, fortran, committed] PR31812 Better message when truncating long lines
- From: Jerry DeLisle <jvdelisle at verizon dot net>
- To: Fortran List <fortran at gcc dot gnu dot org>
- Cc: "patch >> gcc-patches" <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 27 May 2007 15:36:01 -0700
- Subject: [patch, fortran, committed] PR31812 Better message when truncating long lines
I am committing the following as obvious and simple. Gives a warning all the
time for free format when a line gets truncated.
Index: parse.c
===================================================================
*** parse.c (revision 125102)
--- parse.c (working copy)
*************** next_statement (void)
*** 653,659 ****
if (gfc_at_eol ())
{
! if (gfc_option.warn_line_truncation
&& gfc_current_locus.lb
&& gfc_current_locus.lb->truncated)
gfc_warning_now ("Line truncated at %C");
--- 653,659 ----
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");