This breaks LTO bootstrap because of warnings for apparently incompatible types 
at the interface between C and Ada.  Given that it's very likely not possible 
to fix them all, let's keep accepting them.

Tested on i586-suse-linux, applied on the mainline.


2012-02-07  Eric Botcazou  <ebotca...@adacore.com>

        * gcc-interface/Make-lang.in (GCC_LINKERFLAGS): New variable.
        (GCC_LINK): Use it.


-- 
Eric Botcazou
Index: gcc-interface/Make-lang.in
===================================================================
--- gcc-interface/Make-lang.in	(revision 183906)
+++ gcc-interface/Make-lang.in	(working copy)
@@ -165,7 +165,10 @@ else
   endif
 endif
 
-GCC_LINK=$(LINKER) $(ALL_LINKERFLAGS) -static-libgcc $(LDFLAGS)
+# Strip -Werror during linking for the LTO bootstrap
+GCC_LINKERFLAGS = $(filter-out -Werror, $(ALL_LINKERFLAGS))
+
+GCC_LINK=$(LINKER) $(GCC_LINKERFLAGS) -static-libgcc $(LDFLAGS)
 
 # Lists of files for various purposes.
 

Reply via email to