This removes the bunch of -Wxxx flags that are currently passed to link 
gnatbind, by replacing $(ALL_CFLAGS) with $(CFLAGS) as is done for gnat1.
This (marginally) helps during LTO bootstrap.

Tested on i586-suse-linux, applied on the mainline and 4.6 branch.


2011-04-17  Eric Botcazou  <ebotca...@adacore.com>

        * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with
        $(CFLAGS) on the link line.


-- 
Eric Botcazou
Index: gcc-interface/Make-lang.in
===================================================================
--- gcc-interface/Make-lang.in	(revision 172617)
+++ gcc-interface/Make-lang.in	(working copy)
@@ -485,7 +485,7 @@ gnat1$(exeext): $(TARGET_ADA_SRCS) $(GNA
 	$(RM) stamp-gnatlib2-rts stamp-tools
 
 gnatbind$(exeext): ada/b_gnatb.o $(CONFIG_H) $(GNATBIND_OBJS)
-	$(GCC_LINK) -o $@ ada/b_gnatb.o $(GNATBIND_OBJS) $(ALL_CFLAGS) $(LIBS) $(SYSLIBS)
+	$(GCC_LINK) -o $@ ada/b_gnatb.o $(GNATBIND_OBJS) $(LIBS) $(SYSLIBS) $(CFLAGS)
 
 # use cross-gcc
 gnat-cross: force

Reply via email to