Bootstrapped and regression tested on x86_64-linux-gnu. Committed as
obvious at r215272.

gcc/c-family/ChangeLog:

2014-09-15  Manuel López-Ibáñez  <m...@gcc.gnu.org>

    * c.opt (Wpsabi): Use LangEnabledBy.
    * c-opts.c (c_common_handle_option): Do not handle here.

Index: gcc/c-family/c.opt
===================================================================
--- gcc/c-family/c.opt    (revision 215252)
+++ gcc/c-family/c.opt    (working copy)
@@ -263,11 +263,11 @@ Warn about things that change between th
 Wabi-tag
 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)
 Warn about suspicious uses of memory addresses

Index: gcc/c-family/c-opts.c
===================================================================
--- gcc/c-family/c-opts.c    (revision 215252)
+++ gcc/c-family/c-opts.c    (working copy)
@@ -683,14 +683,10 @@ c_common_handle_option (size_t scode, co
       break;

     case OPT_v:
       verbose = true;
       break;
-
-    case OPT_Wabi:
-      warn_psabi = value;
-      break;
     }

   switch (c_language)
     {
     case clk_c:

Reply via email to