This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[lto] Handle -Wabi and -Wpsabi in lto1


These two warnings are handled by the backend, so they need to be
handled by lto1 as well.  This fixes 24 failures in gcc/gc++.

Most of the remaining failures in the testsuite are execution
failures.  Once those are fixed I will start the big streamer
reorganization (the code is too messy to be merged in mainline
and it does not handle variable-sized types at all).

Tested on x86_64.


Diego.


	* c.opt (Wabi): Add LTO.
	(Wpsabi): Add LTO.

lto/ChangeLog

	* lto-lang.c (lto_handle_option): Hanlde OPT_Wabi.

Index: c.opt
===================================================================
--- c.opt	(revision 148004)
+++ c.opt	(working copy)
@@ -113,11 +113,11 @@ C ObjC C++ ObjC++ Joined Separate
 -U<macro>	Undefine <macro>
 
 Wabi
-C ObjC C++ ObjC++ Var(warn_abi) Warning
+C ObjC C++ ObjC++ LTO Var(warn_abi) Warning
 Warn about things that will change when compiling with an ABI-compliant compiler
 
 Wpsabi
-C ObjC C++ ObjC++ Var(warn_psabi) Init(1) Undocumented
+C ObjC C++ ObjC++ LTO Var(warn_psabi) Init(1) Undocumented
 
 Waddress
 C ObjC C++ ObjC++ Var(warn_address) Warning
Index: lto/lto-lang.c
===================================================================
--- lto/lto-lang.c	(revision 148029)
+++ lto/lto-lang.c	(working copy)
@@ -686,6 +686,10 @@ lto_handle_option (size_t scode, const c
       result = 1;
       break;
 
+    case OPT_Wabi:
+      warn_psabi = value;
+      break;
+
     default:
       break;
     }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]