]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR bootstrap/30469 (profiledbootstrap no longer works)
authorDaniel Jacobowitz <dan@codesourcery.com>
Sun, 28 Jan 2007 14:08:13 +0000 (14:08 +0000)
committerDaniel Jacobowitz <drow@gcc.gnu.org>
Sun, 28 Jan 2007 14:08:13 +0000 (14:08 +0000)
PR bootstrap/30469
* Makefile.in (CFLAGS): Forcibly remove -fprofile-generate and
-fprofile-use.

From-SVN: r121257

libgcc/ChangeLog
libgcc/Makefile.in

index 33907af6921560a669dfb193ad42f7af7a330354..a92bf3998cc1ed9a65a4dd45aaa6d285446c75f1 100644 (file)
@@ -1,3 +1,9 @@
+2007-01-28  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       PR bootstrap/30469
+       * Makefile.in (CFLAGS): Forcibly remove -fprofile-generate and
+       -fprofile-use.
+
 2007-01-25  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * configure.ac: Add --enable-version-specific-runtime-libs.
index 689e0cde19774f5cb857f7cfce44ce25803bdaf6..a911ef8f2bcdfa6b9a3cfd0546222b250c797614 100644 (file)
@@ -195,6 +195,10 @@ INCLUDES = -I. -I$(@D) -I$(gcc_objdir) \
           -I$(srcdir) -I$(srcdir)/$(@D) -I$(srcdir)/../gcc \
           -I$(srcdir)/../include $(DECNUMINC)
 
+# Forcibly remove any profiling-related flags.  There is no point
+# in supporting profiled bootstrap in this library.
+override CFLAGS := $(filter-out -fprofile-generate -fprofile-use,$(CFLAGS))
+
 # CFLAGS first is not perfect; normally setting CFLAGS should override any
 # options in LIBGCC2_CFLAGS.  But LIBGCC2_CFLAGS may contain -g0, and CFLAGS
 # will usually contain -g, so for the moment CFLAGS goes first.  We must