From: drow Date: Sun, 28 Jan 2007 14:08:13 +0000 (+0000) Subject: PR bootstrap/30469 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f03569135d5c24584d1e458dc5fe0e0ce70eb6ec;p=thirdparty%2Fgcc.git PR bootstrap/30469 * Makefile.in (CFLAGS): Forcibly remove -fprofile-generate and -fprofile-use. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121257 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 33907af69215..a92bf3998cc1 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,9 @@ +2007-01-28 Daniel Jacobowitz + + PR bootstrap/30469 + * Makefile.in (CFLAGS): Forcibly remove -fprofile-generate and + -fprofile-use. + 2007-01-25 Daniel Jacobowitz * configure.ac: Add --enable-version-specific-runtime-libs. diff --git a/libgcc/Makefile.in b/libgcc/Makefile.in index 689e0cde1977..a911ef8f2bcd 100644 --- a/libgcc/Makefile.in +++ b/libgcc/Makefile.in @@ -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