aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family/c-opts.c
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2014-08-29 16:06:19 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2014-08-29 16:06:19 +0000
commit81b5d104e944fd473032ab9c6ea588cdb0a02065 (patch)
treede65daf646063d398a29e838164556dae2e7bbc3 /gcc/c-family/c-opts.c
parentf71f9d3fb6156edd82822ad9a26d3e4c6495d041 (diff)
downloadgcc-81b5d104e944fd473032ab9c6ea588cdb0a02065.zip
gcc-81b5d104e944fd473032ab9c6ea588cdb0a02065.tar.gz
gcc-81b5d104e944fd473032ab9c6ea588cdb0a02065.tar.bz2
directives.c (check_eol_1): New.
libcpp/ChangeLog: 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org> * directives.c (check_eol_1): New. (check_eol_endif_labels): New. (check_eol): Call check_eol_1. (do_else,do_endif): Call check_eol_endif_labels. gcc/c-family/ChangeLog: 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org> * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels, Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs, Wundef): Use CPP, Var and Init. * c-opts.c (c_common_handle_option): Do not handle the above flags here. From-SVN: r214735
Diffstat (limited to 'gcc/c-family/c-opts.c')
-rw-r--r--gcc/c-family/c-opts.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/gcc/c-family/c-opts.c b/gcc/c-family/c-opts.c
index 81b7c96..6093eb3 100644
--- a/gcc/c-family/c-opts.c
+++ b/gcc/c-family/c-opts.c
@@ -381,7 +381,6 @@ c_common_handle_option (size_t scode, const char *arg, int value,
case OPT_Wall:
/* ??? Don't add new options here. Use LangEnabledBy in c.opt. */
- cpp_opts->warn_trigraphs = value;
cpp_opts->warn_num_sign_change = value;
break;
@@ -389,29 +388,10 @@ c_common_handle_option (size_t scode, const char *arg, int value,
cpp_opts->warn_cxx_operator_names = value;
break;
- case OPT_Wdeprecated:
- cpp_opts->cpp_warn_deprecated = value;
- break;
-
- case OPT_Wendif_labels:
- cpp_opts->warn_endif_labels = value;
- break;
-
- case OPT_Winvalid_pch:
- cpp_opts->warn_invalid_pch = value;
- break;
-
- case OPT_Wliteral_suffix:
- cpp_opts->warn_literal_suffix = value;
- break;
-
case OPT_Wlong_long:
cpp_opts->cpp_warn_long_long = value;
break;
- case OPT_Wmissing_include_dirs:
- cpp_opts->warn_missing_include_dirs = value;
- break;
case OPT_Wnormalized_:
/* FIXME: Move all this to c.opt. */
if (kind == DK_ERROR)
@@ -439,14 +419,6 @@ c_common_handle_option (size_t scode, const char *arg, int value,
cpp_opts->cpp_warn_traditional = value;
break;
- case OPT_Wtrigraphs:
- cpp_opts->warn_trigraphs = value;
- break;
-
- case OPT_Wundef:
- cpp_opts->warn_undef = value;
- break;
-
case OPT_Wunknown_pragmas:
/* Set to greater than 1, so that even unknown pragmas in
system headers will be warned about. */