macro.c (warn_of_redefinition): Suppress warnings for builtins that lack the NODE_WAR...
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Fri, 29 Aug 2014 15:28:45 +0000 (15:28 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Fri, 29 Aug 2014 15:28:45 +0000 (15:28 +0000)
commitb753b37bd6a43a9d1cc2433f57a091c213380147
treebcdc43baa9947832913a10b03e07131bc343844b
parentef0981b8aea59164340d4d57b4e48b6810cc41fb
macro.c (warn_of_redefinition): Suppress warnings for builtins that lack the NODE_WARN flag...

libcpp/ChangeLog:

2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>

* macro.c (warn_of_redefinition): Suppress warnings for builtins
that lack the NODE_WARN flag, unless Wbuiltin-macro-redefined.
(_cpp_create_definition): Use Wbuiltin-macro-redefined for
builtins that lack the NODE_WARN flag.
* directives.c (do_undef): Likewise.
* init.c (cpp_init_special_builtins): Do not change flags
depending on Wbuiltin-macro-redefined.

gcc/c-family/ChangeLog:

2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>

* c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
* c-opts.c (c_common_handle_option): Do not handle here.

From-SVN: r214730
gcc/c-family/ChangeLog
gcc/c-family/c-opts.c
gcc/c-family/c.opt
libcpp/ChangeLog
libcpp/directives.c
libcpp/init.c
libcpp/macro.c