[patch, fortran] PR35882 Miscounted continuation lines when interspersed with data

Jerry DeLisle jvdelisle@verizon.net
Mon Apr 14 07:02:00 GMT 2008


This patch is obvious and simple and I will commit shortly with the new
test case.  I am changing gfortran default behavior to warn on -pedantic
or -std=f2003 if the continuation line count exceeds 255 and warn for 19
and 39 for -std=f95.

Regression tested on x86-64-gnu-linux.

Best regards,

Jerry

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.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr35882.diff
Type: text/x-patch
Size: 3287 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080414/61f2532d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: continuation_10.f90
Type: text/x-fortran
Size: 1092 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080414/61f2532d/attachment-0001.bin>


More information about the Gcc-patches mailing list