aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/options.c
diff options
context:
space:
mode:
authorJerry DeLisle <jvdelisle@gcc.gnu.org>2006-10-03 03:58:20 +0000
committerJerry DeLisle <jvdelisle@gcc.gnu.org>2006-10-03 03:58:20 +0000
commit5a06474ce9fc9e586e3ae5a51bed465335dc3c75 (patch)
treee74b55da3e465b70067b338b94f7b616d7926f52 /gcc/fortran/options.c
parent2834a5fe89e275ce695eaf2a64bb99f3cdc76dd3 (diff)
downloadgcc-5a06474ce9fc9e586e3ae5a51bed465335dc3c75.zip
gcc-5a06474ce9fc9e586e3ae5a51bed465335dc3c75.tar.gz
gcc-5a06474ce9fc9e586e3ae5a51bed465335dc3c75.tar.bz2
re PR fortran/19262 (more than thirty-nine continuation lines should issue a std-warn)
2006-10-02 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/19262 * gfortran.h (gfc_option_t): Add max_continue_fixed and max_continue_free. * options.c (gfc_init_options): Initialize fixed form and free form consecutive continuation line limits. * scanner.c (gfc_scanner_init_1): Initialize continue_line and continue_count. (gfc_next_char_literal): Count the number of continuation lines in the current statement and warn if limit is exceeded. 2006-10-02 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/19260 * scanner.c (gfc_next_char_literal): Add check for missing '&' and warn if in_string, otherwise return ' '. From-SVN: r117384
Diffstat (limited to 'gcc/fortran/options.c')
-rw-r--r--gcc/fortran/options.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c
index cd550d4..4d76030 100644
--- a/gcc/fortran/options.c
+++ b/gcc/fortran/options.c
@@ -48,6 +48,8 @@ gfc_init_options (unsigned int argc ATTRIBUTE_UNUSED,
gfc_option.source_form = FORM_UNKNOWN;
gfc_option.fixed_line_length = -1;
gfc_option.free_line_length = -1;
+ gfc_option.max_continue_fixed = 19;
+ gfc_option.max_continue_free = 39;
gfc_option.max_identifier_length = GFC_MAX_SYMBOL_LEN;
gfc_option.verbose = 0;
@@ -586,6 +588,8 @@ gfc_handle_option (size_t scode, const char *arg, int value)
gfc_option.allow_std = GFC_STD_F95_OBS | GFC_STD_F77
| GFC_STD_F2003 | GFC_STD_F95;
gfc_option.warn_std = GFC_STD_F95_OBS;
+ gfc_option.max_continue_fixed = 255;
+ gfc_option.max_continue_free = 255;
gfc_option.max_identifier_length = 63;
gfc_option.warn_ampersand = 1;
break;