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-22 18:39:16 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2014-08-22 18:39:16 +0000
commit596e808cf6cc91f556838099b832bd01ce71e828 (patch)
tree6489058639e3b1df63ce8eeb1d0b4fbd5b3eb3b1 /gcc/c-family/c-opts.c
parent1d4555205a6e40cafd2dc6828e70de48959f34f6 (diff)
downloadgcc-596e808cf6cc91f556838099b832bd01ce71e828.zip
gcc-596e808cf6cc91f556838099b832bd01ce71e828.tar.gz
gcc-596e808cf6cc91f556838099b832bd01ce71e828.tar.bz2
c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
gcc/c-family/ChangeLog: 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org> * c.opt (Wcomment): Use CPP, Var and LangEnabledBy. (Wmultichar): Likewise. (Wdate-time): Use C-family languages instead of Common. Use CPP and Var. * c-opts.c (c_common_handle_option): Do not handle the above options here. (sanitize_cpp_opts): Likewise. gcc/testsuite/ChangeLog: 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org> * g++.dg/warn/wdate-time.C: Remove. * gcc.dg/wdate-time.c: Move from here... * c-c++-common/wdate-time.c: ... to here. From-SVN: r214350
Diffstat (limited to 'gcc/c-family/c-opts.c')
-rw-r--r--gcc/c-family/c-opts.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/gcc/c-family/c-opts.c b/gcc/c-family/c-opts.c
index 5cae2b8..ddc480b 100644
--- a/gcc/c-family/c-opts.c
+++ b/gcc/c-family/c-opts.c
@@ -382,7 +382,6 @@ c_common_handle_option (size_t scode, const char *arg, int value,
/* ??? Don't add new options here. Use LangEnabledBy in c.opt. */
cpp_opts->warn_trigraphs = value;
- cpp_opts->warn_comments = value;
cpp_opts->warn_num_sign_change = value;
break;
@@ -390,10 +389,6 @@ c_common_handle_option (size_t scode, const char *arg, int value,
cpp_opts->warn_builtin_macro_redefined = value;
break;
- case OPT_Wcomment:
- cpp_opts->warn_comments = value;
- break;
-
case OPT_Wc___compat:
cpp_opts->warn_cxx_operator_names = value;
break;
@@ -421,12 +416,8 @@ c_common_handle_option (size_t scode, const char *arg, int value,
case OPT_Wmissing_include_dirs:
cpp_opts->warn_missing_include_dirs = value;
break;
-
- case OPT_Wmultichar:
- cpp_opts->warn_multichar = value;
- break;
-
case OPT_Wnormalized_:
+ /* FIXME: Move all this to c.opt. */
if (kind == DK_ERROR)
{
gcc_assert (!arg);
@@ -1310,7 +1301,6 @@ sanitize_cpp_opts (void)
cpp_opts->unsigned_char = !flag_signed_char;
cpp_opts->stdc_0_in_system_headers = STDC_0_IN_SYSTEM_HEADERS;
- cpp_opts->warn_date_time = cpp_warn_date_time;
cpp_opts->cpp_warn_c90_c99_compat = warn_c90_c99_compat;
/* Wlong-long is disabled by default. It is enabled by: