From 737a4826d093d89963618fe7e0a8a97f3c154909 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20L=C3=B3pez-Ib=C3=A1=C3=B1ez?= Date: Mon, 15 Sep 2014 16:32:50 +0000 Subject: [PATCH] c.opt (Wpsabi): Use LangEnabledBy. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gcc/c-family/ChangeLog: 2014-09-15 Manuel López-Ibáñez * c.opt (Wpsabi): Use LangEnabledBy. * c-opts.c (c_common_handle_option): Do not handle here. From-SVN: r215272 --- gcc/c-family/ChangeLog | 5 +++++ gcc/c-family/c-opts.c | 4 ---- gcc/c-family/c.opt | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 4b8d1a5d2bb..0b22cf6d2ac 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,8 @@ +2014-09-15 Manuel López-Ibáñez + + * c.opt (Wpsabi): Use LangEnabledBy. + * c-opts.c (c_common_handle_option): Do not handle here. + 2014-09-12 Joseph Myers * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__ diff --git a/gcc/c-family/c-opts.c b/gcc/c-family/c-opts.c index 74866911e5b..3f295d80880 100644 --- a/gcc/c-family/c-opts.c +++ b/gcc/c-family/c-opts.c @@ -685,10 +685,6 @@ c_common_handle_option (size_t scode, const char *arg, int value, case OPT_v: verbose = true; break; - - case OPT_Wabi: - warn_psabi = value; - break; } switch (c_language) diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt index 5e6182b2f4b..72ac2eddd89 100644 --- a/gcc/c-family/c.opt +++ b/gcc/c-family/c.opt @@ -265,7 +265,7 @@ C++ ObjC++ Var(warn_abi_tag) Warning Warn if a subobject has an abi_tag attribute that the complete object type does not have Wpsabi -C ObjC C++ ObjC++ LTO Var(warn_psabi) Init(1) Undocumented +C ObjC C++ ObjC++ LTO Var(warn_psabi) Init(1) Undocumented LangEnabledBy(C ObjC C++ ObjC++,Wabi) Waddress C ObjC C++ ObjC++ Var(warn_address) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)