[PATCH] Fix PR41569
Richard Guenther
rguenther@suse.de
Fri Jan 8 21:29:00 GMT 2010
This is my workaround for PR41569, the inability to install a
bootstrapped gcc with a built linker-plugin. The issue is that
somehow at install time something gets rebuilt. I spent some
hours trying to hunt this down but failed. The following works
around this by not bootstrapping lto-plugin.
Bootstrapped and installed on various linux architectures, ok for trunk?
Thanks,
Richard.
2010-01-08 Richard Guenther <rguenther@suse.de>
PR lto/41569
* Makefile.def (lto-plugin): Do not bootstrap.
* Makefile.in: Regenerate.
Index: Makefile.def
===================================================================
--- Makefile.def (revision 154250)
+++ Makefile.def (working copy)
@@ -145,7 +145,7 @@ host_modules= { module= libtermcap; no_c
missing=maintainer-clean; };
host_modules= { module= utils; no_check=true; };
host_modules= { module= gnattools; };
-host_modules= { module= lto-plugin; bootstrap=true; };
+host_modules= { module= lto-plugin; };
target_modules = { module= libstdc++-v3;
bootstrap=true;
Index: Makefile.in
===================================================================
--- Makefile.in (revision 154250)
+++ Makefile.in (working copy)
@@ -1087,9 +1087,7 @@ all-host: maybe-all-tk
all-host: maybe-all-libtermcap
all-host: maybe-all-utils
all-host: maybe-all-gnattools
-@if lto-plugin-no-bootstrap
all-host: maybe-all-lto-plugin
-@endif lto-plugin-no-bootstrap
.PHONY: all-target
@@ -43946,6 +43944,7 @@ configure-lto-plugin: stage_current
@if lto-plugin
maybe-configure-lto-plugin: configure-lto-plugin
configure-lto-plugin:
+ @: $(MAKE); $(unstage)
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
@@ -43968,204 +43967,6 @@ configure-lto-plugin:
-.PHONY: configure-stage1-lto-plugin maybe-configure-stage1-lto-plugin
-maybe-configure-stage1-lto-plugin:
-@if lto-plugin-bootstrap
-maybe-configure-stage1-lto-plugin: configure-stage1-lto-plugin
-configure-stage1-lto-plugin:
- @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
- @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- TFLAGS="$(STAGE1_TFLAGS)"; \
- test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
- $(HOST_EXPORTS) \
- CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
- CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
- LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
- echo Configuring stage 1 in $(HOST_SUBDIR)/lto-plugin ; \
- $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
- cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
- case $(srcdir) in \
- /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
- *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
- sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
- esac; \
- srcdiroption="--srcdir=$${topdir}/lto-plugin"; \
- libsrcdir="$$s/lto-plugin"; \
- $(SHELL) $${libsrcdir}/configure \
- $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
- --target=${target_alias} $${srcdiroption} \
- $(STAGE1_CONFIGURE_FLAGS)
-@endif lto-plugin-bootstrap
-
-.PHONY: configure-stage2-lto-plugin maybe-configure-stage2-lto-plugin
-maybe-configure-stage2-lto-plugin:
-@if lto-plugin-bootstrap
-maybe-configure-stage2-lto-plugin: configure-stage2-lto-plugin
-configure-stage2-lto-plugin:
- @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
- @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- TFLAGS="$(STAGE2_TFLAGS)"; \
- test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
- $(HOST_EXPORTS) \
- $(POSTSTAGE1_HOST_EXPORTS) \
- CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
- CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
- LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
- echo Configuring stage 2 in $(HOST_SUBDIR)/lto-plugin ; \
- $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
- cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
- case $(srcdir) in \
- /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
- *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
- sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
- esac; \
- srcdiroption="--srcdir=$${topdir}/lto-plugin"; \
- libsrcdir="$$s/lto-plugin"; \
- $(SHELL) $${libsrcdir}/configure \
- $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
- --target=${target_alias} $${srcdiroption} \
- --with-build-libsubdir=$(HOST_SUBDIR) \
- $(STAGE2_CONFIGURE_FLAGS)
-@endif lto-plugin-bootstrap
-
-.PHONY: configure-stage3-lto-plugin maybe-configure-stage3-lto-plugin
-maybe-configure-stage3-lto-plugin:
-@if lto-plugin-bootstrap
-maybe-configure-stage3-lto-plugin: configure-stage3-lto-plugin
-configure-stage3-lto-plugin:
- @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
- @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- TFLAGS="$(STAGE3_TFLAGS)"; \
- test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
- $(HOST_EXPORTS) \
- $(POSTSTAGE1_HOST_EXPORTS) \
- CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
- CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
- LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
- echo Configuring stage 3 in $(HOST_SUBDIR)/lto-plugin ; \
- $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
- cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
- case $(srcdir) in \
- /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
- *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
- sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
- esac; \
- srcdiroption="--srcdir=$${topdir}/lto-plugin"; \
- libsrcdir="$$s/lto-plugin"; \
- $(SHELL) $${libsrcdir}/configure \
- $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
- --target=${target_alias} $${srcdiroption} \
- --with-build-libsubdir=$(HOST_SUBDIR) \
- $(STAGE3_CONFIGURE_FLAGS)
-@endif lto-plugin-bootstrap
-
-.PHONY: configure-stage4-lto-plugin maybe-configure-stage4-lto-plugin
-maybe-configure-stage4-lto-plugin:
-@if lto-plugin-bootstrap
-maybe-configure-stage4-lto-plugin: configure-stage4-lto-plugin
-configure-stage4-lto-plugin:
- @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
- @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- TFLAGS="$(STAGE4_TFLAGS)"; \
- test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
- $(HOST_EXPORTS) \
- $(POSTSTAGE1_HOST_EXPORTS) \
- CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
- CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
- LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
- echo Configuring stage 4 in $(HOST_SUBDIR)/lto-plugin ; \
- $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
- cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
- case $(srcdir) in \
- /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
- *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
- sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
- esac; \
- srcdiroption="--srcdir=$${topdir}/lto-plugin"; \
- libsrcdir="$$s/lto-plugin"; \
- $(SHELL) $${libsrcdir}/configure \
- $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
- --target=${target_alias} $${srcdiroption} \
- --with-build-libsubdir=$(HOST_SUBDIR) \
- $(STAGE4_CONFIGURE_FLAGS)
-@endif lto-plugin-bootstrap
-
-.PHONY: configure-stageprofile-lto-plugin maybe-configure-stageprofile-lto-plugin
-maybe-configure-stageprofile-lto-plugin:
-@if lto-plugin-bootstrap
-maybe-configure-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
-configure-stageprofile-lto-plugin:
- @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
- @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- TFLAGS="$(STAGEprofile_TFLAGS)"; \
- test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
- $(HOST_EXPORTS) \
- $(POSTSTAGE1_HOST_EXPORTS) \
- CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
- CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
- LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
- echo Configuring stage profile in $(HOST_SUBDIR)/lto-plugin ; \
- $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
- cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
- case $(srcdir) in \
- /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
- *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
- sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
- esac; \
- srcdiroption="--srcdir=$${topdir}/lto-plugin"; \
- libsrcdir="$$s/lto-plugin"; \
- $(SHELL) $${libsrcdir}/configure \
- $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
- --target=${target_alias} $${srcdiroption} \
- --with-build-libsubdir=$(HOST_SUBDIR) \
- $(STAGEprofile_CONFIGURE_FLAGS)
-@endif lto-plugin-bootstrap
-
-.PHONY: configure-stagefeedback-lto-plugin maybe-configure-stagefeedback-lto-plugin
-maybe-configure-stagefeedback-lto-plugin:
-@if lto-plugin-bootstrap
-maybe-configure-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
-configure-stagefeedback-lto-plugin:
- @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
- @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- TFLAGS="$(STAGEfeedback_TFLAGS)"; \
- test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
- $(HOST_EXPORTS) \
- $(POSTSTAGE1_HOST_EXPORTS) \
- CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
- CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
- LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
- echo Configuring stage feedback in $(HOST_SUBDIR)/lto-plugin ; \
- $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin ; \
- cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
- case $(srcdir) in \
- /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
- *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
- sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
- esac; \
- srcdiroption="--srcdir=$${topdir}/lto-plugin"; \
- libsrcdir="$$s/lto-plugin"; \
- $(SHELL) $${libsrcdir}/configure \
- $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
- --target=${target_alias} $${srcdiroption} \
- --with-build-libsubdir=$(HOST_SUBDIR) \
- $(STAGEfeedback_CONFIGURE_FLAGS)
-@endif lto-plugin-bootstrap
-
-
-
.PHONY: all-lto-plugin maybe-all-lto-plugin
@@ -44177,6 +43978,7 @@ all-lto-plugin: stage_current
TARGET-lto-plugin=all
maybe-all-lto-plugin: all-lto-plugin
all-lto-plugin: configure-lto-plugin
+ @: $(MAKE); $(unstage)
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
@@ -44187,264 +43989,6 @@ all-lto-plugin: configure-lto-plugin
-.PHONY: all-stage1-lto-plugin maybe-all-stage1-lto-plugin
-.PHONY: clean-stage1-lto-plugin maybe-clean-stage1-lto-plugin
-maybe-all-stage1-lto-plugin:
-maybe-clean-stage1-lto-plugin:
-@if lto-plugin-bootstrap
-maybe-all-stage1-lto-plugin: all-stage1-lto-plugin
-all-stage1: all-stage1-lto-plugin
-TARGET-stage1-lto-plugin = $(TARGET-lto-plugin)
-all-stage1-lto-plugin: configure-stage1-lto-plugin
- @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- TFLAGS="$(STAGE1_TFLAGS)"; \
- $(HOST_EXPORTS) \
- cd $(HOST_SUBDIR)/lto-plugin && \
- $(MAKE) $(BASE_FLAGS_TO_PASS) \
- CFLAGS="$(STAGE1_CFLAGS)" \
- CXXFLAGS="$(STAGE1_CXXFLAGS)" \
- LIBCFLAGS="$(LIBCFLAGS)" \
- CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
- CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
- LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
- $(EXTRA_HOST_FLAGS) \
- TFLAGS="$(STAGE1_TFLAGS)" \
- $(TARGET-stage1-lto-plugin)
-
-maybe-clean-stage1-lto-plugin: clean-stage1-lto-plugin
-clean-stage1: clean-stage1-lto-plugin
-clean-stage1-lto-plugin:
- @if [ $(current_stage) = stage1 ]; then \
- [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
- else \
- [ -f $(HOST_SUBDIR)/stage1-lto-plugin/Makefile ] || exit 0; \
- $(MAKE) stage1-start; \
- fi; \
- cd $(HOST_SUBDIR)/lto-plugin && \
- $(MAKE) $(EXTRA_HOST_FLAGS) \
- clean
-@endif lto-plugin-bootstrap
-
-
-.PHONY: all-stage2-lto-plugin maybe-all-stage2-lto-plugin
-.PHONY: clean-stage2-lto-plugin maybe-clean-stage2-lto-plugin
-maybe-all-stage2-lto-plugin:
-maybe-clean-stage2-lto-plugin:
-@if lto-plugin-bootstrap
-maybe-all-stage2-lto-plugin: all-stage2-lto-plugin
-all-stage2: all-stage2-lto-plugin
-TARGET-stage2-lto-plugin = $(TARGET-lto-plugin)
-all-stage2-lto-plugin: configure-stage2-lto-plugin
- @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- TFLAGS="$(STAGE2_TFLAGS)"; \
- $(HOST_EXPORTS) \
- $(POSTSTAGE1_HOST_EXPORTS) \
- cd $(HOST_SUBDIR)/lto-plugin && \
- $(MAKE) $(BASE_FLAGS_TO_PASS) \
- CFLAGS="$(STAGE2_CFLAGS)" \
- CXXFLAGS="$(STAGE2_CXXFLAGS)" \
- LIBCFLAGS="$(STAGE2_CFLAGS)" \
- CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
- CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
- LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
- $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
- TFLAGS="$(STAGE2_TFLAGS)" \
- $(TARGET-stage2-lto-plugin)
-
-maybe-clean-stage2-lto-plugin: clean-stage2-lto-plugin
-clean-stage2: clean-stage2-lto-plugin
-clean-stage2-lto-plugin:
- @if [ $(current_stage) = stage2 ]; then \
- [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
- else \
- [ -f $(HOST_SUBDIR)/stage2-lto-plugin/Makefile ] || exit 0; \
- $(MAKE) stage2-start; \
- fi; \
- cd $(HOST_SUBDIR)/lto-plugin && \
- $(MAKE) $(EXTRA_HOST_FLAGS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- clean
-@endif lto-plugin-bootstrap
-
-
-.PHONY: all-stage3-lto-plugin maybe-all-stage3-lto-plugin
-.PHONY: clean-stage3-lto-plugin maybe-clean-stage3-lto-plugin
-maybe-all-stage3-lto-plugin:
-maybe-clean-stage3-lto-plugin:
-@if lto-plugin-bootstrap
-maybe-all-stage3-lto-plugin: all-stage3-lto-plugin
-all-stage3: all-stage3-lto-plugin
-TARGET-stage3-lto-plugin = $(TARGET-lto-plugin)
-all-stage3-lto-plugin: configure-stage3-lto-plugin
- @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- TFLAGS="$(STAGE3_TFLAGS)"; \
- $(HOST_EXPORTS) \
- $(POSTSTAGE1_HOST_EXPORTS) \
- cd $(HOST_SUBDIR)/lto-plugin && \
- $(MAKE) $(BASE_FLAGS_TO_PASS) \
- CFLAGS="$(STAGE3_CFLAGS)" \
- CXXFLAGS="$(STAGE3_CXXFLAGS)" \
- LIBCFLAGS="$(STAGE3_CFLAGS)" \
- CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
- CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
- LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
- $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
- TFLAGS="$(STAGE3_TFLAGS)" \
- $(TARGET-stage3-lto-plugin)
-
-maybe-clean-stage3-lto-plugin: clean-stage3-lto-plugin
-clean-stage3: clean-stage3-lto-plugin
-clean-stage3-lto-plugin:
- @if [ $(current_stage) = stage3 ]; then \
- [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
- else \
- [ -f $(HOST_SUBDIR)/stage3-lto-plugin/Makefile ] || exit 0; \
- $(MAKE) stage3-start; \
- fi; \
- cd $(HOST_SUBDIR)/lto-plugin && \
- $(MAKE) $(EXTRA_HOST_FLAGS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- clean
-@endif lto-plugin-bootstrap
-
-
-.PHONY: all-stage4-lto-plugin maybe-all-stage4-lto-plugin
-.PHONY: clean-stage4-lto-plugin maybe-clean-stage4-lto-plugin
-maybe-all-stage4-lto-plugin:
-maybe-clean-stage4-lto-plugin:
-@if lto-plugin-bootstrap
-maybe-all-stage4-lto-plugin: all-stage4-lto-plugin
-all-stage4: all-stage4-lto-plugin
-TARGET-stage4-lto-plugin = $(TARGET-lto-plugin)
-all-stage4-lto-plugin: configure-stage4-lto-plugin
- @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- TFLAGS="$(STAGE4_TFLAGS)"; \
- $(HOST_EXPORTS) \
- $(POSTSTAGE1_HOST_EXPORTS) \
- cd $(HOST_SUBDIR)/lto-plugin && \
- $(MAKE) $(BASE_FLAGS_TO_PASS) \
- CFLAGS="$(STAGE4_CFLAGS)" \
- CXXFLAGS="$(STAGE4_CXXFLAGS)" \
- LIBCFLAGS="$(STAGE4_CFLAGS)" \
- CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
- CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
- LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
- $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
- TFLAGS="$(STAGE4_TFLAGS)" \
- $(TARGET-stage4-lto-plugin)
-
-maybe-clean-stage4-lto-plugin: clean-stage4-lto-plugin
-clean-stage4: clean-stage4-lto-plugin
-clean-stage4-lto-plugin:
- @if [ $(current_stage) = stage4 ]; then \
- [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
- else \
- [ -f $(HOST_SUBDIR)/stage4-lto-plugin/Makefile ] || exit 0; \
- $(MAKE) stage4-start; \
- fi; \
- cd $(HOST_SUBDIR)/lto-plugin && \
- $(MAKE) $(EXTRA_HOST_FLAGS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- clean
-@endif lto-plugin-bootstrap
-
-
-.PHONY: all-stageprofile-lto-plugin maybe-all-stageprofile-lto-plugin
-.PHONY: clean-stageprofile-lto-plugin maybe-clean-stageprofile-lto-plugin
-maybe-all-stageprofile-lto-plugin:
-maybe-clean-stageprofile-lto-plugin:
-@if lto-plugin-bootstrap
-maybe-all-stageprofile-lto-plugin: all-stageprofile-lto-plugin
-all-stageprofile: all-stageprofile-lto-plugin
-TARGET-stageprofile-lto-plugin = $(TARGET-lto-plugin)
-all-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
- @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- TFLAGS="$(STAGEprofile_TFLAGS)"; \
- $(HOST_EXPORTS) \
- $(POSTSTAGE1_HOST_EXPORTS) \
- cd $(HOST_SUBDIR)/lto-plugin && \
- $(MAKE) $(BASE_FLAGS_TO_PASS) \
- CFLAGS="$(STAGEprofile_CFLAGS)" \
- CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
- LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
- CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
- CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
- LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
- $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
- TFLAGS="$(STAGEprofile_TFLAGS)" \
- $(TARGET-stageprofile-lto-plugin)
-
-maybe-clean-stageprofile-lto-plugin: clean-stageprofile-lto-plugin
-clean-stageprofile: clean-stageprofile-lto-plugin
-clean-stageprofile-lto-plugin:
- @if [ $(current_stage) = stageprofile ]; then \
- [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
- else \
- [ -f $(HOST_SUBDIR)/stageprofile-lto-plugin/Makefile ] || exit 0; \
- $(MAKE) stageprofile-start; \
- fi; \
- cd $(HOST_SUBDIR)/lto-plugin && \
- $(MAKE) $(EXTRA_HOST_FLAGS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- clean
-@endif lto-plugin-bootstrap
-
-
-.PHONY: all-stagefeedback-lto-plugin maybe-all-stagefeedback-lto-plugin
-.PHONY: clean-stagefeedback-lto-plugin maybe-clean-stagefeedback-lto-plugin
-maybe-all-stagefeedback-lto-plugin:
-maybe-clean-stagefeedback-lto-plugin:
-@if lto-plugin-bootstrap
-maybe-all-stagefeedback-lto-plugin: all-stagefeedback-lto-plugin
-all-stagefeedback: all-stagefeedback-lto-plugin
-TARGET-stagefeedback-lto-plugin = $(TARGET-lto-plugin)
-all-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
- @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- TFLAGS="$(STAGEfeedback_TFLAGS)"; \
- $(HOST_EXPORTS) \
- $(POSTSTAGE1_HOST_EXPORTS) \
- cd $(HOST_SUBDIR)/lto-plugin && \
- $(MAKE) $(BASE_FLAGS_TO_PASS) \
- CFLAGS="$(STAGEfeedback_CFLAGS)" \
- CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
- LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
- CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
- CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
- LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
- $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
- TFLAGS="$(STAGEfeedback_TFLAGS)" \
- $(TARGET-stagefeedback-lto-plugin)
-
-maybe-clean-stagefeedback-lto-plugin: clean-stagefeedback-lto-plugin
-clean-stagefeedback: clean-stagefeedback-lto-plugin
-clean-stagefeedback-lto-plugin:
- @if [ $(current_stage) = stagefeedback ]; then \
- [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
- else \
- [ -f $(HOST_SUBDIR)/stagefeedback-lto-plugin/Makefile ] || exit 0; \
- $(MAKE) stagefeedback-start; \
- fi; \
- cd $(HOST_SUBDIR)/lto-plugin && \
- $(MAKE) $(EXTRA_HOST_FLAGS) \
- $(POSTSTAGE1_FLAGS_TO_PASS) \
- clean
-@endif lto-plugin-bootstrap
-
-
-
-
.PHONY: check-lto-plugin maybe-check-lto-plugin
maybe-check-lto-plugin:
@@ -44485,6 +44029,7 @@ maybe-info-lto-plugin: info-lto-plugin
info-lto-plugin: \
configure-lto-plugin
+ @: $(MAKE); $(unstage)
@[ -f ./lto-plugin/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
@@ -44510,6 +44055,7 @@ maybe-dvi-lto-plugin: dvi-lto-plugin
dvi-lto-plugin: \
configure-lto-plugin
+ @: $(MAKE); $(unstage)
@[ -f ./lto-plugin/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
@@ -44535,6 +44081,7 @@ maybe-pdf-lto-plugin: pdf-lto-plugin
pdf-lto-plugin: \
configure-lto-plugin
+ @: $(MAKE); $(unstage)
@[ -f ./lto-plugin/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
@@ -44560,6 +44107,7 @@ maybe-html-lto-plugin: html-lto-plugin
html-lto-plugin: \
configure-lto-plugin
+ @: $(MAKE); $(unstage)
@[ -f ./lto-plugin/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
@@ -44585,6 +44133,7 @@ maybe-TAGS-lto-plugin: TAGS-lto-plugin
TAGS-lto-plugin: \
configure-lto-plugin
+ @: $(MAKE); $(unstage)
@[ -f ./lto-plugin/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
@@ -44611,6 +44160,7 @@ maybe-install-info-lto-plugin: install-i
install-info-lto-plugin: \
configure-lto-plugin \
info-lto-plugin
+ @: $(MAKE); $(unstage)
@[ -f ./lto-plugin/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
@@ -44637,6 +44187,7 @@ maybe-install-pdf-lto-plugin: install-pd
install-pdf-lto-plugin: \
configure-lto-plugin \
pdf-lto-plugin
+ @: $(MAKE); $(unstage)
@[ -f ./lto-plugin/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
@@ -44663,6 +44214,7 @@ maybe-install-html-lto-plugin: install-h
install-html-lto-plugin: \
configure-lto-plugin \
html-lto-plugin
+ @: $(MAKE); $(unstage)
@[ -f ./lto-plugin/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
@@ -44688,6 +44240,7 @@ maybe-installcheck-lto-plugin: installch
installcheck-lto-plugin: \
configure-lto-plugin
+ @: $(MAKE); $(unstage)
@[ -f ./lto-plugin/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
@@ -44712,6 +44265,7 @@ maybe-mostlyclean-lto-plugin:
maybe-mostlyclean-lto-plugin: mostlyclean-lto-plugin
mostlyclean-lto-plugin:
+ @: $(MAKE); $(unstage)
@[ -f ./lto-plugin/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
@@ -44736,6 +44290,7 @@ maybe-clean-lto-plugin:
maybe-clean-lto-plugin: clean-lto-plugin
clean-lto-plugin:
+ @: $(MAKE); $(unstage)
@[ -f ./lto-plugin/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
@@ -44760,6 +44315,7 @@ maybe-distclean-lto-plugin:
maybe-distclean-lto-plugin: distclean-lto-plugin
distclean-lto-plugin:
+ @: $(MAKE); $(unstage)
@[ -f ./lto-plugin/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
@@ -44784,6 +44340,7 @@ maybe-maintainer-clean-lto-plugin:
maybe-maintainer-clean-lto-plugin: maintainer-clean-lto-plugin
maintainer-clean-lto-plugin:
+ @: $(MAKE); $(unstage)
@[ -f ./lto-plugin/Makefile ] || exit 0; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
@@ -55305,11 +54862,6 @@ stage1-start::
mkdir stage1-zlib; \
mv stage1-zlib zlib
@endif zlib
-@if lto-plugin
- @cd $(HOST_SUBDIR); [ -d stage1-lto-plugin ] || \
- mkdir stage1-lto-plugin; \
- mv stage1-lto-plugin lto-plugin
-@endif lto-plugin
@[ -d stage1-$(TARGET_SUBDIR) ] || \
mkdir stage1-$(TARGET_SUBDIR); \
mv stage1-$(TARGET_SUBDIR) $(TARGET_SUBDIR)
@@ -55405,11 +54957,6 @@ stage1-end::
cd $(HOST_SUBDIR); mv zlib stage1-zlib ; \
fi
@endif zlib
-@if lto-plugin
- @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
- cd $(HOST_SUBDIR); mv lto-plugin stage1-lto-plugin ; \
- fi
-@endif lto-plugin
@if test -d $(TARGET_SUBDIR) ; then \
mv $(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; \
fi
@@ -55566,12 +55113,6 @@ stage2-start::
mv stage2-zlib zlib ; \
mv stage1-zlib prev-zlib || test -f stage1-lean
@endif zlib
-@if lto-plugin
- @cd $(HOST_SUBDIR); [ -d stage2-lto-plugin ] || \
- mkdir stage2-lto-plugin; \
- mv stage2-lto-plugin lto-plugin ; \
- mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
-@endif lto-plugin
@[ -d stage2-$(TARGET_SUBDIR) ] || \
mkdir stage2-$(TARGET_SUBDIR); \
mv stage2-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
@@ -55686,12 +55227,6 @@ stage2-end::
mv prev-zlib stage1-zlib ; : ; \
fi
@endif zlib
-@if lto-plugin
- @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
- cd $(HOST_SUBDIR); mv lto-plugin stage2-lto-plugin ; \
- mv prev-lto-plugin stage1-lto-plugin ; : ; \
- fi
-@endif lto-plugin
@if test -d $(TARGET_SUBDIR) ; then \
mv $(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR) ; \
mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; : ; \
@@ -55872,12 +55407,6 @@ stage3-start::
mv stage3-zlib zlib ; \
mv stage2-zlib prev-zlib || test -f stage2-lean
@endif zlib
-@if lto-plugin
- @cd $(HOST_SUBDIR); [ -d stage3-lto-plugin ] || \
- mkdir stage3-lto-plugin; \
- mv stage3-lto-plugin lto-plugin ; \
- mv stage2-lto-plugin prev-lto-plugin || test -f stage2-lean
-@endif lto-plugin
@[ -d stage3-$(TARGET_SUBDIR) ] || \
mkdir stage3-$(TARGET_SUBDIR); \
mv stage3-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
@@ -55992,12 +55521,6 @@ stage3-end::
mv prev-zlib stage2-zlib ; : ; \
fi
@endif zlib
-@if lto-plugin
- @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
- cd $(HOST_SUBDIR); mv lto-plugin stage3-lto-plugin ; \
- mv prev-lto-plugin stage2-lto-plugin ; : ; \
- fi
-@endif lto-plugin
@if test -d $(TARGET_SUBDIR) ; then \
mv $(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR) ; \
mv prev-$(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR) ; : ; \
@@ -56234,12 +55757,6 @@ stage4-start::
mv stage4-zlib zlib ; \
mv stage3-zlib prev-zlib || test -f stage3-lean
@endif zlib
-@if lto-plugin
- @cd $(HOST_SUBDIR); [ -d stage4-lto-plugin ] || \
- mkdir stage4-lto-plugin; \
- mv stage4-lto-plugin lto-plugin ; \
- mv stage3-lto-plugin prev-lto-plugin || test -f stage3-lean
-@endif lto-plugin
@[ -d stage4-$(TARGET_SUBDIR) ] || \
mkdir stage4-$(TARGET_SUBDIR); \
mv stage4-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
@@ -56354,12 +55871,6 @@ stage4-end::
mv prev-zlib stage3-zlib ; : ; \
fi
@endif zlib
-@if lto-plugin
- @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
- cd $(HOST_SUBDIR); mv lto-plugin stage4-lto-plugin ; \
- mv prev-lto-plugin stage3-lto-plugin ; : ; \
- fi
-@endif lto-plugin
@if test -d $(TARGET_SUBDIR) ; then \
mv $(TARGET_SUBDIR) stage4-$(TARGET_SUBDIR) ; \
mv prev-$(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR) ; : ; \
@@ -56584,12 +56095,6 @@ stageprofile-start::
mv stageprofile-zlib zlib ; \
mv stage1-zlib prev-zlib || test -f stage1-lean
@endif zlib
-@if lto-plugin
- @cd $(HOST_SUBDIR); [ -d stageprofile-lto-plugin ] || \
- mkdir stageprofile-lto-plugin; \
- mv stageprofile-lto-plugin lto-plugin ; \
- mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
-@endif lto-plugin
@[ -d stageprofile-$(TARGET_SUBDIR) ] || \
mkdir stageprofile-$(TARGET_SUBDIR); \
mv stageprofile-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
@@ -56704,12 +56209,6 @@ stageprofile-end::
mv prev-zlib stage1-zlib ; : ; \
fi
@endif zlib
-@if lto-plugin
- @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
- cd $(HOST_SUBDIR); mv lto-plugin stageprofile-lto-plugin ; \
- mv prev-lto-plugin stage1-lto-plugin ; : ; \
- fi
-@endif lto-plugin
@if test -d $(TARGET_SUBDIR) ; then \
mv $(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR) ; \
mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; : ; \
@@ -56867,12 +56366,6 @@ stagefeedback-start::
mv stagefeedback-zlib zlib ; \
mv stageprofile-zlib prev-zlib || test -f stageprofile-lean
@endif zlib
-@if lto-plugin
- @cd $(HOST_SUBDIR); [ -d stagefeedback-lto-plugin ] || \
- mkdir stagefeedback-lto-plugin; \
- mv stagefeedback-lto-plugin lto-plugin ; \
- mv stageprofile-lto-plugin prev-lto-plugin || test -f stageprofile-lean
-@endif lto-plugin
@[ -d stagefeedback-$(TARGET_SUBDIR) ] || \
mkdir stagefeedback-$(TARGET_SUBDIR); \
mv stagefeedback-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
@@ -56987,12 +56480,6 @@ stagefeedback-end::
mv prev-zlib stageprofile-zlib ; : ; \
fi
@endif zlib
-@if lto-plugin
- @if test -d $(HOST_SUBDIR)/lto-plugin ; then \
- cd $(HOST_SUBDIR); mv lto-plugin stagefeedback-lto-plugin ; \
- mv prev-lto-plugin stageprofile-lto-plugin ; : ; \
- fi
-@endif lto-plugin
@if test -d $(TARGET_SUBDIR) ; then \
mv $(TARGET_SUBDIR) stagefeedback-$(TARGET_SUBDIR) ; \
mv prev-$(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR) ; : ; \
@@ -57405,13 +56892,6 @@ all-stagefeedback-libcpp: maybe-all-stag
all-fixincludes: maybe-all-libiberty
all-gnattools: maybe-all-target-libada
all-lto-plugin: maybe-all-libiberty
-
-all-stage1-lto-plugin: maybe-all-stage1-libiberty
-all-stage2-lto-plugin: maybe-all-stage2-libiberty
-all-stage3-lto-plugin: maybe-all-stage3-libiberty
-all-stage4-lto-plugin: maybe-all-stage4-libiberty
-all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty
-all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty
configure-mpfr: maybe-all-gmp
configure-stage1-mpfr: maybe-all-stage1-gmp
More information about the Gcc-patches
mailing list