diff mbox

[Ada] Remove useless flags for gnatbind link

Message ID 201104180028.54907.ebotcazou@adacore.com
State New
Headers show

Commit Message

Eric Botcazou April 17, 2011, 10:28 p.m. UTC
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  <ebotcazou@adacore.com>

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

Patch

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