aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/options.c
diff options
context:
space:
mode:
authorTobias Burnus <burnus@net-b.de>2014-11-23 18:14:10 +0100
committerTobias Burnus <burnus@gcc.gnu.org>2014-11-23 18:14:10 +0100
commit16db2a6aa770f2e3285f3f4e9ab955a7c4cce5c1 (patch)
tree06de2eb8f0f1e7d94d2dcaa8a34b6bc4b1206af3 /gcc/fortran/options.c
parent5e383359eac455ec79830a25b81d7b4bc36abc7a (diff)
downloadgcc-16db2a6aa770f2e3285f3f4e9ab955a7c4cce5c1.zip
gcc-16db2a6aa770f2e3285f3f4e9ab955a7c4cce5c1.tar.gz
gcc-16db2a6aa770f2e3285f3f4e9ab955a7c4cce5c1.tar.bz2
gfortran.h (gfc_option_t): Remove warn_tabs.
2014-11-23 Tobias Burnus <burnus@net-b.de> Manuel López-Ibáñez <manu@gcc.gnu.org> gcc/fortran/ * gfortran.h (gfc_option_t): Remove warn_tabs. * lang.opt (Wpedantic): Add. (Wtabs): Use Var and LangEnabledBy. * options.c (gfc_init_options, gfc_post_options, set_Wall): Remove -Wtabs handling. (gfc_handle_option): Update -std=, remove OPT_Wtabs. * scanner.c (gfc_gobble_whitespace): Update for flag-variable renaming. (load_line): Ditto. Pass warn flag to diagnostic. gcc/testsuite/ * gfortran.dg/tab_continuation.f: Update dg-*. Co-Authored-By: Manuel López-Ibáñez <manu@gcc.gnu.org> From-SVN: r217985
Diffstat (limited to 'gcc/fortran/options.c')
-rw-r--r--gcc/fortran/options.c19
1 files changed, 5 insertions, 14 deletions
diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c
index bbbd6ab..dee1af4 100644
--- a/gcc/fortran/options.c
+++ b/gcc/fortran/options.c
@@ -104,7 +104,6 @@ gfc_init_options (unsigned int decoded_options_count,
gfc_option.warn_implicit_interface = 0;
gfc_option.warn_line_truncation = 0;
gfc_option.warn_surprising = 0;
- gfc_option.warn_tabs = 1;
gfc_option.warn_underflow = 1;
gfc_option.warn_intrinsic_shadow = 0;
gfc_option.warn_intrinsics_std = 0;
@@ -430,10 +429,7 @@ gfc_post_options (const char **pfilename)
gfc_option.flag_max_stack_var_size = 0;
if (pedantic)
- {
- gfc_option.warn_ampersand = 1;
- gfc_option.warn_tabs = 0;
- }
+ gfc_option.warn_ampersand = 1;
/* Optimization implies front end optimization, unless the user
specified it directly. */
@@ -461,7 +457,6 @@ set_Wall (int setting)
gfc_option.gfc_warn_conversion = setting;
gfc_option.warn_line_truncation = setting;
gfc_option.warn_surprising = setting;
- gfc_option.warn_tabs = !setting;
gfc_option.warn_underflow = setting;
gfc_option.warn_intrinsic_shadow = setting;
gfc_option.warn_intrinsics_std = setting;
@@ -720,10 +715,6 @@ gfc_handle_option (size_t scode, const char *arg, int value,
gfc_option.warn_surprising = value;
break;
- case OPT_Wtabs:
- gfc_option.warn_tabs = value;
- break;
-
case OPT_Wtarget_lifetime:
gfc_option.warn_target_lifetime = value;
break;
@@ -1038,7 +1029,7 @@ gfc_handle_option (size_t scode, const char *arg, int value,
gfc_option.max_continue_free = 39;
gfc_option.max_identifier_length = 31;
gfc_option.warn_ampersand = 1;
- gfc_option.warn_tabs = 0;
+ warn_tabs = 1;
break;
case OPT_std_f2003:
@@ -1047,7 +1038,7 @@ gfc_handle_option (size_t scode, const char *arg, int value,
gfc_option.warn_std = GFC_STD_F95_OBS;
gfc_option.max_identifier_length = 63;
gfc_option.warn_ampersand = 1;
- gfc_option.warn_tabs = 0;
+ warn_tabs = 1;
break;
case OPT_std_f2008:
@@ -1056,7 +1047,7 @@ gfc_handle_option (size_t scode, const char *arg, int value,
gfc_option.warn_std = GFC_STD_F95_OBS | GFC_STD_F2008_OBS;
gfc_option.max_identifier_length = 63;
gfc_option.warn_ampersand = 1;
- gfc_option.warn_tabs = 0;
+ warn_tabs = 1;
break;
case OPT_std_f2008ts:
@@ -1066,7 +1057,7 @@ gfc_handle_option (size_t scode, const char *arg, int value,
gfc_option.warn_std = GFC_STD_F95_OBS | GFC_STD_F2008_OBS;
gfc_option.max_identifier_length = 63;
gfc_option.warn_ampersand = 1;
- gfc_option.warn_tabs = 0;
+ warn_tabs = 1;
break;
case OPT_std_gnu: