This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] buiild machinery: fix the profiledbootstrap breakage.
- From: "Seongbae Park (박성배, 朴成培)" <seongbae dot park at gmail dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>, "Bonzini, Paolo" <bonzini at gnu dot org>, dj at redhat dot com, neroden at gcc dot gnu dot org, "Alexandre Oliva" <aoliva at redhat dot com>
- Date: Wed, 12 Mar 2008 17:41:30 -0700
- Subject: [PATCH] buiild machinery: fix the profiledbootstrap breakage.
Hi build machinery maintainers,
Paolo's patch on Feb 20th broke the profiledbootstrap
by building crt* with -fprofile-generate during stageprofile,
which makes the compiler from stageprofile unable to link any executable
(unless you pass -fprofile-generate, that is).
The below patch fixed the problem (along with my other pending patch
on libiberty/cplus-dem.c). Tested by doing a profiledbootstrap on
i686.
Ok for mainline ?
Seongbae
2008-03-12 Seongbae Park <seongbae.park@gmail.com>
* Makefile.in (all-stageprofile-gcc, all-stagepofile-target-libgcc):
Remove -fprofile-generate from C{XX}FLAGS_FOR_TARGET.
diff -r acf26548a037 Makefile.in
--- a/Makefile.in Wed Mar 12 17:13:01 2008 +0000
+++ b/Makefile.in Wed Mar 12 15:35:06 2008 -0700
@@ -14696,8 +14696,8 @@ all-stageprofile-gcc: configure-stagepro
$(MAKE) $(BASE_FLAGS_TO_PASS) \
CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"
CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" \
LIBCFLAGS="$(STAGE2_LIBCFLAGS) -fprofile-generate" \
- CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -fprofile-generate" \
- CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)
-fprofile-generate" $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS)
$(EXTRA_GCC_FLAGS) \
+ CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
+ CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)"
$(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
$(TARGET-stageprofile-gcc)
maybe-clean-stageprofile-gcc: clean-stageprofile-gcc
@@ -42116,8 +42116,8 @@ all-stageprofile-target-libgcc: configur
$(MAKE) $(BASE_FLAGS_TO_PASS) \
CFLAGS="$(STAGE2_CFLAGS) -fprofile-generate"
CXXFLAGS="$(STAGE2_CFLAGS) -fprofile-generate" \
LIBCFLAGS="$(STAGE2_LIBCFLAGS) -fprofile-generate" \
- CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS) -fprofile-generate" \
- CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)
-fprofile-generate" $(EXTRA_TARGET_FLAGS) \
+ CFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)" \
+ CXXFLAGS_FOR_TARGET="$(STAGE2_LIBCFLAGS)"
$(EXTRA_TARGET_FLAGS) \
$(TARGET-stageprofile-target-libgcc)