diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2014-08-22 18:39:16 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2014-08-22 18:39:16 +0000 |
commit | 596e808cf6cc91f556838099b832bd01ce71e828 (patch) | |
tree | 6489058639e3b1df63ce8eeb1d0b4fbd5b3eb3b1 /gcc/c-family/c.opt | |
parent | 1d4555205a6e40cafd2dc6828e70de48959f34f6 (diff) | |
download | gcc-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.opt')
-rw-r--r-- | gcc/c-family/c.opt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt index f33a425..140e89f 100644 --- a/gcc/c-family/c.opt +++ b/gcc/c-family/c.opt @@ -328,7 +328,7 @@ C ObjC C++ ObjC++ Var(warn_clobbered) Warning EnabledBy(Wextra) Warn about variables that might be changed by \"longjmp\" or \"vfork\" Wcomment -C ObjC C++ ObjC++ Warning +C ObjC C++ ObjC++ CPP(warn_comments) Var(cpp_warn_comment) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall) Warn about possibly nested block comments, and C++ comments spanning more than one physical line Wcomments @@ -598,7 +598,7 @@ Wmudflap C ObjC C++ ObjC++ Ignore Warn(switch %qs is no longer supported) Wmultichar -C ObjC C++ ObjC++ Warning +C ObjC C++ ObjC++ CPP(warn_multichar) Var(cpp_warn_multichar) Warning Warn about use of multi-character character constants Wnarrowing @@ -702,7 +702,7 @@ C ObjC C++ ObjC++ Var(warn_pragmas) Init(1) Warning Warn about misuses of pragmas Wdate-time -Common Var(cpp_warn_date_time) Warning +C ObjC C++ ObjC++ CPP(warn_date_time) Var(cpp_warn_date_time) Warning Warn about __TIME__, __DATE__ and __TIMESTAMP__ usage Wproperty-assign-default |