+.PHONY: maybe-install-pdf-target-libitm install-pdf-target-libitm
+maybe-install-pdf-target-libitm:
+@if target-libitm
+maybe-install-pdf-target-libitm: install-pdf-target-libitm
+
+install-pdf-target-libitm: \
+ configure-target-libitm \
+ pdf-target-libitm
+ @: $(MAKE); $(unstage)
+ @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(NORMAL_TARGET_EXPORTS) \
+ echo "Doing install-pdf in $(TARGET_SUBDIR)/libitm" ; \
+ for flag in $(EXTRA_TARGET_FLAGS); do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ (cd $(TARGET_SUBDIR)/libitm && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ install-pdf) \
+ || exit 1
+
+@endif target-libitm
+
+.PHONY: maybe-install-html-target-libitm install-html-target-libitm
+maybe-install-html-target-libitm:
+@if target-libitm
+maybe-install-html-target-libitm: install-html-target-libitm
+
+install-html-target-libitm: \
+ configure-target-libitm \
+ html-target-libitm
+ @: $(MAKE); $(unstage)
+ @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(NORMAL_TARGET_EXPORTS) \
+ echo "Doing install-html in $(TARGET_SUBDIR)/libitm" ; \
+ for flag in $(EXTRA_TARGET_FLAGS); do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ (cd $(TARGET_SUBDIR)/libitm && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ install-html) \
+ || exit 1
+
+@endif target-libitm
+
+.PHONY: maybe-installcheck-target-libitm installcheck-target-libitm
+maybe-installcheck-target-libitm:
+@if target-libitm
+maybe-installcheck-target-libitm: installcheck-target-libitm
+
+installcheck-target-libitm: \
+ configure-target-libitm
+ @: $(MAKE); $(unstage)
+ @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(NORMAL_TARGET_EXPORTS) \
+ echo "Doing installcheck in $(TARGET_SUBDIR)/libitm" ; \
+ for flag in $(EXTRA_TARGET_FLAGS); do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ (cd $(TARGET_SUBDIR)/libitm && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ installcheck) \
+ || exit 1
+
+@endif target-libitm
+
+.PHONY: maybe-mostlyclean-target-libitm mostlyclean-target-libitm
+maybe-mostlyclean-target-libitm:
+@if target-libitm
+maybe-mostlyclean-target-libitm: mostlyclean-target-libitm
+
+mostlyclean-target-libitm:
+ @: $(MAKE); $(unstage)
+ @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(NORMAL_TARGET_EXPORTS) \
+ echo "Doing mostlyclean in $(TARGET_SUBDIR)/libitm" ; \
+ for flag in $(EXTRA_TARGET_FLAGS); do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ (cd $(TARGET_SUBDIR)/libitm && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ mostlyclean) \
+ || exit 1
+
+@endif target-libitm
+
+.PHONY: maybe-clean-target-libitm clean-target-libitm
+maybe-clean-target-libitm:
+@if target-libitm
+maybe-clean-target-libitm: clean-target-libitm
+
+clean-target-libitm:
+ @: $(MAKE); $(unstage)
+ @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(NORMAL_TARGET_EXPORTS) \
+ echo "Doing clean in $(TARGET_SUBDIR)/libitm" ; \
+ for flag in $(EXTRA_TARGET_FLAGS); do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ (cd $(TARGET_SUBDIR)/libitm && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ clean) \
+ || exit 1
+
+@endif target-libitm
+
+.PHONY: maybe-distclean-target-libitm distclean-target-libitm
+maybe-distclean-target-libitm:
+@if target-libitm
+maybe-distclean-target-libitm: distclean-target-libitm
+
+distclean-target-libitm:
+ @: $(MAKE); $(unstage)
+ @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(NORMAL_TARGET_EXPORTS) \
+ echo "Doing distclean in $(TARGET_SUBDIR)/libitm" ; \
+ for flag in $(EXTRA_TARGET_FLAGS); do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ (cd $(TARGET_SUBDIR)/libitm && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ distclean) \
+ || exit 1
+
+@endif target-libitm
+
+.PHONY: maybe-maintainer-clean-target-libitm maintainer-clean-target-libitm
+maybe-maintainer-clean-target-libitm:
+@if target-libitm
+maybe-maintainer-clean-target-libitm: maintainer-clean-target-libitm
+
+maintainer-clean-target-libitm:
+ @: $(MAKE); $(unstage)
+ @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0 ; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(NORMAL_TARGET_EXPORTS) \
+ echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libitm" ; \
+ for flag in $(EXTRA_TARGET_FLAGS); do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ (cd $(TARGET_SUBDIR)/libitm && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ maintainer-clean) \
+ || exit 1
+
+@endif target-libitm
+
+
+
+
+
+.PHONY: configure-target-libatomic maybe-configure-target-libatomic
+maybe-configure-target-libatomic:
+@if gcc-bootstrap
+configure-target-libatomic: stage_current
+@endif gcc-bootstrap
+@if target-libatomic
+maybe-configure-target-libatomic: configure-target-libatomic
+configure-target-libatomic:
+ @: $(MAKE); $(unstage)
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ echo "Checking multilib configuration for libatomic..."; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic ; \
+ $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libatomic/multilib.tmp 2> /dev/null ; \
+ if test -r $(TARGET_SUBDIR)/libatomic/multilib.out; then \
+ if cmp -s $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; then \
+ rm -f $(TARGET_SUBDIR)/libatomic/multilib.tmp; \
+ else \
+ rm -f $(TARGET_SUBDIR)/libatomic/Makefile; \
+ mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
+ fi; \
+ else \
+ mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
+ fi; \
+ test ! -f $(TARGET_SUBDIR)/libatomic/Makefile || exit 0; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic ; \
+ $(NORMAL_TARGET_EXPORTS) \
+ echo Configuring in $(TARGET_SUBDIR)/libatomic; \
+ cd "$(TARGET_SUBDIR)/libatomic" || exit 1; \
+ case $(srcdir) in \
+ /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
+ *) topdir=`echo $(TARGET_SUBDIR)/libatomic/ | \
+ sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
+ esac; \
+ srcdiroption="--srcdir=$${topdir}/libatomic"; \
+ libsrcdir="$$s/libatomic"; \
+ rm -f no-such-file || : ; \
+ CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
+ $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
+ --target=${target_alias} $${srcdiroption} \
+ || exit 1
+@endif target-libatomic
+
+
+
+
+
+.PHONY: all-target-libatomic maybe-all-target-libatomic
+maybe-all-target-libatomic:
+@if gcc-bootstrap
+all-target-libatomic: stage_current
+@endif gcc-bootstrap
+@if target-libatomic
+TARGET-target-libatomic=all
+maybe-all-target-libatomic: all-target-libatomic
+all-target-libatomic: configure-target-libatomic
+ @: $(MAKE); $(unstage)
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(NORMAL_TARGET_EXPORTS) \
+ (cd $(TARGET_SUBDIR)/libatomic && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
+ $(TARGET-target-libatomic))
+@endif target-libatomic
+
+
+
+
+
+.PHONY: check-target-libatomic maybe-check-target-libatomic
+maybe-check-target-libatomic:
+@if target-libatomic
+maybe-check-target-libatomic: check-target-libatomic
+
+check-target-libatomic:
+ @: $(MAKE); $(unstage)
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(NORMAL_TARGET_EXPORTS) \
+ (cd $(TARGET_SUBDIR)/libatomic && \
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
+
+@endif target-libatomic
+
+.PHONY: install-target-libatomic maybe-install-target-libatomic
+maybe-install-target-libatomic:
+@if target-libatomic
+maybe-install-target-libatomic: install-target-libatomic
+
+install-target-libatomic: installdirs
+ @: $(MAKE); $(unstage)
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(NORMAL_TARGET_EXPORTS) \
+ (cd $(TARGET_SUBDIR)/libatomic && \
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
+
+@endif target-libatomic
+
+.PHONY: install-strip-target-libatomic maybe-install-strip-target-libatomic
+maybe-install-strip-target-libatomic:
+@if target-libatomic
+maybe-install-strip-target-libatomic: install-strip-target-libatomic
+
+install-strip-target-libatomic: installdirs
+ @: $(MAKE); $(unstage)
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(NORMAL_TARGET_EXPORTS) \
+ (cd $(TARGET_SUBDIR)/libatomic && \
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
+
+@endif target-libatomic
+
+# Other targets (info, dvi, pdf, etc.)
+
+.PHONY: maybe-info-target-libatomic info-target-libatomic
+maybe-info-target-libatomic:
+@if target-libatomic
+maybe-info-target-libatomic: info-target-libatomic
+
+info-target-libatomic: \
+ configure-target-libatomic
+ @: $(MAKE); $(unstage)
+ @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(NORMAL_TARGET_EXPORTS) \
+ echo "Doing info in $(TARGET_SUBDIR)/libatomic" ; \
+ for flag in $(EXTRA_TARGET_FLAGS); do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ (cd $(TARGET_SUBDIR)/libatomic && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ info) \
+ || exit 1
+
+@endif target-libatomic
+
+.PHONY: maybe-dvi-target-libatomic dvi-target-libatomic
+maybe-dvi-target-libatomic:
+@if target-libatomic
+maybe-dvi-target-libatomic: dvi-target-libatomic
+
+dvi-target-libatomic: \
+ configure-target-libatomic
+ @: $(MAKE); $(unstage)
+ @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(NORMAL_TARGET_EXPORTS) \
+ echo "Doing dvi in $(TARGET_SUBDIR)/libatomic" ; \
+ for flag in $(EXTRA_TARGET_FLAGS); do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ (cd $(TARGET_SUBDIR)/libatomic && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ dvi) \
+ || exit 1
+
+@endif target-libatomic
+
+.PHONY: maybe-pdf-target-libatomic pdf-target-libatomic
+maybe-pdf-target-libatomic:
+@if target-libatomic
+maybe-pdf-target-libatomic: pdf-target-libatomic
+
+pdf-target-libatomic: \
+ configure-target-libatomic
+ @: $(MAKE); $(unstage)
+ @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(NORMAL_TARGET_EXPORTS) \
+ echo "Doing pdf in $(TARGET_SUBDIR)/libatomic" ; \
+ for flag in $(EXTRA_TARGET_FLAGS); do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ (cd $(TARGET_SUBDIR)/libatomic && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ pdf) \
+ || exit 1
+
+@endif target-libatomic
+
+.PHONY: maybe-html-target-libatomic html-target-libatomic
+maybe-html-target-libatomic:
+@if target-libatomic
+maybe-html-target-libatomic: html-target-libatomic
+
+html-target-libatomic: \
+ configure-target-libatomic
+ @: $(MAKE); $(unstage)
+ @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(NORMAL_TARGET_EXPORTS) \
+ echo "Doing html in $(TARGET_SUBDIR)/libatomic" ; \
+ for flag in $(EXTRA_TARGET_FLAGS); do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ (cd $(TARGET_SUBDIR)/libatomic && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ html) \
+ || exit 1
+
+@endif target-libatomic
+
+.PHONY: maybe-TAGS-target-libatomic TAGS-target-libatomic
+maybe-TAGS-target-libatomic:
+@if target-libatomic
+maybe-TAGS-target-libatomic: TAGS-target-libatomic
+
+TAGS-target-libatomic: \
+ configure-target-libatomic
+ @: $(MAKE); $(unstage)
+ @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(NORMAL_TARGET_EXPORTS) \
+ echo "Doing TAGS in $(TARGET_SUBDIR)/libatomic" ; \
+ for flag in $(EXTRA_TARGET_FLAGS); do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ (cd $(TARGET_SUBDIR)/libatomic && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ TAGS) \
+ || exit 1
+
+@endif target-libatomic
+
+.PHONY: maybe-install-info-target-libatomic install-info-target-libatomic
+maybe-install-info-target-libatomic:
+@if target-libatomic
+maybe-install-info-target-libatomic: install-info-target-libatomic
+
+install-info-target-libatomic: \
+ configure-target-libatomic \
+ info-target-libatomic
+ @: $(MAKE); $(unstage)
+ @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(NORMAL_TARGET_EXPORTS) \
+ echo "Doing install-info in $(TARGET_SUBDIR)/libatomic" ; \
+ for flag in $(EXTRA_TARGET_FLAGS); do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ (cd $(TARGET_SUBDIR)/libatomic && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ install-info) \
+ || exit 1
+
+@endif target-libatomic
+
+.PHONY: maybe-install-pdf-target-libatomic install-pdf-target-libatomic
+maybe-install-pdf-target-libatomic:
+@if target-libatomic
+maybe-install-pdf-target-libatomic: install-pdf-target-libatomic
+
+install-pdf-target-libatomic: \
+ configure-target-libatomic \
+ pdf-target-libatomic
+ @: $(MAKE); $(unstage)
+ @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(NORMAL_TARGET_EXPORTS) \
+ echo "Doing install-pdf in $(TARGET_SUBDIR)/libatomic" ; \
+ for flag in $(EXTRA_TARGET_FLAGS); do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ (cd $(TARGET_SUBDIR)/libatomic && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ install-pdf) \
+ || exit 1
+
+@endif target-libatomic
+
+.PHONY: maybe-install-html-target-libatomic install-html-target-libatomic
+maybe-install-html-target-libatomic:
+@if target-libatomic
+maybe-install-html-target-libatomic: install-html-target-libatomic
+
+install-html-target-libatomic: \
+ configure-target-libatomic \
+ html-target-libatomic
+ @: $(MAKE); $(unstage)
+ @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(NORMAL_TARGET_EXPORTS) \
+ echo "Doing install-html in $(TARGET_SUBDIR)/libatomic" ; \
+ for flag in $(EXTRA_TARGET_FLAGS); do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ (cd $(TARGET_SUBDIR)/libatomic && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ install-html) \
+ || exit 1
+
+@endif target-libatomic
+
+.PHONY: maybe-installcheck-target-libatomic installcheck-target-libatomic
+maybe-installcheck-target-libatomic:
+@if target-libatomic
+maybe-installcheck-target-libatomic: installcheck-target-libatomic
+
+installcheck-target-libatomic: \
+ configure-target-libatomic
+ @: $(MAKE); $(unstage)
+ @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(NORMAL_TARGET_EXPORTS) \
+ echo "Doing installcheck in $(TARGET_SUBDIR)/libatomic" ; \
+ for flag in $(EXTRA_TARGET_FLAGS); do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ (cd $(TARGET_SUBDIR)/libatomic && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ installcheck) \
+ || exit 1
+
+@endif target-libatomic
+
+.PHONY: maybe-mostlyclean-target-libatomic mostlyclean-target-libatomic
+maybe-mostlyclean-target-libatomic:
+@if target-libatomic
+maybe-mostlyclean-target-libatomic: mostlyclean-target-libatomic
+
+mostlyclean-target-libatomic:
+ @: $(MAKE); $(unstage)
+ @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(NORMAL_TARGET_EXPORTS) \
+ echo "Doing mostlyclean in $(TARGET_SUBDIR)/libatomic" ; \
+ for flag in $(EXTRA_TARGET_FLAGS); do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ (cd $(TARGET_SUBDIR)/libatomic && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ mostlyclean) \
+ || exit 1
+
+@endif target-libatomic
+
+.PHONY: maybe-clean-target-libatomic clean-target-libatomic
+maybe-clean-target-libatomic:
+@if target-libatomic
+maybe-clean-target-libatomic: clean-target-libatomic
+
+clean-target-libatomic:
+ @: $(MAKE); $(unstage)
+ @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(NORMAL_TARGET_EXPORTS) \
+ echo "Doing clean in $(TARGET_SUBDIR)/libatomic" ; \
+ for flag in $(EXTRA_TARGET_FLAGS); do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ (cd $(TARGET_SUBDIR)/libatomic && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ clean) \
+ || exit 1
+
+@endif target-libatomic
+
+.PHONY: maybe-distclean-target-libatomic distclean-target-libatomic
+maybe-distclean-target-libatomic:
+@if target-libatomic
+maybe-distclean-target-libatomic: distclean-target-libatomic
+
+distclean-target-libatomic:
+ @: $(MAKE); $(unstage)
+ @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(NORMAL_TARGET_EXPORTS) \
+ echo "Doing distclean in $(TARGET_SUBDIR)/libatomic" ; \
+ for flag in $(EXTRA_TARGET_FLAGS); do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ (cd $(TARGET_SUBDIR)/libatomic && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ distclean) \
+ || exit 1
+
+@endif target-libatomic
+
+.PHONY: maybe-maintainer-clean-target-libatomic maintainer-clean-target-libatomic
+maybe-maintainer-clean-target-libatomic:
+@if target-libatomic
+maybe-maintainer-clean-target-libatomic: maintainer-clean-target-libatomic
+
+maintainer-clean-target-libatomic:
+ @: $(MAKE); $(unstage)
+ @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0 ; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(NORMAL_TARGET_EXPORTS) \
+ echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libatomic" ; \
+ for flag in $(EXTRA_TARGET_FLAGS); do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ (cd $(TARGET_SUBDIR)/libatomic && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+ "RANLIB=$${RANLIB}" \
+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+ maintainer-clean) \
+ || exit 1
+
+@endif target-libatomic
+
+
+
+@if target-libgomp
+.PHONY: check-target-libgomp-c++
+check-target-libgomp-c++:
+ $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libgomp
+
+@endif target-libgomp
+
+@if target-libitm
+.PHONY: check-target-libitm-c++
+check-target-libitm-c++:
+ $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libitm
+
+@endif target-libitm
+
+# ----------
+# GCC module
+# ----------
+
+@if gcc-no-bootstrap
+.PHONY: cross
+cross: all-build all-gas all-ld
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ echo "Building the C and C++ compiler"; \
+ cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
+ echo "Building runtime libraries"; \
+ $(MAKE) $(RECURSE_FLAGS_TO_PASS) LANGUAGES="c c++" all
+@endif gcc-no-bootstrap
+
+@if gcc
+
+.PHONY: check-gcc-c check-c
+check-gcc-c:
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-gcc);
+check-c: check-gcc-c
+
+.PHONY: check-gcc-c++ check-c++
+check-gcc-c++:
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++);
+check-c++: check-gcc-c++ check-target-libstdc++-v3 check-target-libitm-c++ check-target-libgomp-c++
+
+.PHONY: check-gcc-fortran check-fortran
+check-gcc-fortran:
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-fortran);
+check-fortran: check-gcc-fortran check-target-libquadmath check-target-libgfortran
+
+.PHONY: check-gcc-java check-java
+check-gcc-java:
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-java);
+check-java: check-gcc-java check-target-libjava
+
+.PHONY: check-gcc-ada check-ada
+check-gcc-ada:
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-ada);
+check-ada: check-gcc-ada check-target-libada
+
+.PHONY: check-gcc-objc check-objc
+check-gcc-objc:
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-objc);
+check-objc: check-gcc-objc check-target-libobjc
+
+.PHONY: check-gcc-obj-c++ check-obj-c++
+check-gcc-obj-c++:
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-obj-c++);
+check-obj-c++: check-gcc-obj-c++
+
+.PHONY: check-gcc-go check-go
+check-gcc-go:
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-go);
+check-go: check-gcc-go check-target-libgo
+
+
+# The gcc part of install-no-fixedincludes, which relies on an intimate
+# knowledge of how a number of gcc internal targets (inter)operate. Delegate.
+.PHONY: gcc-install-no-fixedincludes
+gcc-install-no-fixedincludes:
+ @if [ -f ./gcc/Makefile ]; then \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ (cd ./gcc \
+ && $(MAKE) $(GCC_FLAGS_TO_PASS) install-no-fixedincludes); \
+ else true; fi
+@endif gcc
+
+# ---------------------
+# GCC bootstrap support
+# ---------------------
+
+# We track the current stage (the one in 'gcc') in the stage_current file.
+# stage_last instead tracks the stage that was built last. These targets
+# are dummy when toplevel bootstrap is not active.
+
+# While making host and target tools, symlinks to the final stage must be
+# there, so $(unstage) should be run at various points. To avoid excessive
+# recursive invocations of make, we "inline" them using a variable. These
+# must be referenced as ": $(MAKE) ; $(unstage)" rather than "$(unstage)"
+# to avoid warnings from the GNU Make job server.
+
+unstage = :
+stage = :
+current_stage = ""
+
+@if gcc-bootstrap
+unstage = if [ -f stage_last ]; then [ -f stage_current ] || $(MAKE) `cat stage_last`-start || exit 1; else :; fi
+stage = if [ -f stage_current ]; then $(MAKE) `cat stage_current`-end || exit 1; else :; fi
+current_stage = "`cat stage_current 2> /dev/null`"
+@endif gcc-bootstrap
+
+.PHONY: unstage stage
+unstage:
+ @: $(MAKE); $(unstage)
+stage:
+ @: $(MAKE); $(stage)
+
+# Disable commands for lean bootstrap.
+LEAN = false
+
+# We name the build directories for the various stages "stage1-gcc",
+# "stage2-gcc","stage3-gcc", etc.
+
+# Since the 'compare' process will fail (on debugging information) if any
+# directory names are different, we need to link the gcc directory for
+# the previous stage to a constant name ('prev-gcc'), and to make the name of
+# the build directories constant as well. For the latter, we use naked names
+# like 'gcc', because the scripts in that directory assume it. We use
+# mv on platforms where symlinks to directories do not work or are not
+# reliable.
+
+# 'touch' doesn't work right on some platforms.
+STAMP = echo timestamp >
+
+# We only want to compare .o files, so set this!
+objext = .o
+
+
+.PHONY: stage1-start stage1-end
+
+stage1-start::
+ @: $(MAKE); $(stage); \
+ echo stage1 > stage_current ; \
+ echo stage1 > stage_last; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
+@if bfd
+ @cd $(HOST_SUBDIR); [ -d stage1-bfd ] || \
+ mkdir stage1-bfd; \
+ mv stage1-bfd bfd
+@endif bfd
+@if opcodes
+ @cd $(HOST_SUBDIR); [ -d stage1-opcodes ] || \
+ mkdir stage1-opcodes; \
+ mv stage1-opcodes opcodes
+@endif opcodes
+@if binutils
+ @cd $(HOST_SUBDIR); [ -d stage1-binutils ] || \
+ mkdir stage1-binutils; \
+ mv stage1-binutils binutils
+@endif binutils
+@if fixincludes
+ @cd $(HOST_SUBDIR); [ -d stage1-fixincludes ] || \
+ mkdir stage1-fixincludes; \
+ mv stage1-fixincludes fixincludes
+@endif fixincludes
+@if gas
+ @cd $(HOST_SUBDIR); [ -d stage1-gas ] || \
+ mkdir stage1-gas; \
+ mv stage1-gas gas
+@endif gas
+@if gcc
+ @cd $(HOST_SUBDIR); [ -d stage1-gcc ] || \
+ mkdir stage1-gcc; \
+ mv stage1-gcc gcc
+@endif gcc
+@if gmp
+ @cd $(HOST_SUBDIR); [ -d stage1-gmp ] || \
+ mkdir stage1-gmp; \
+ mv stage1-gmp gmp
+@endif gmp
+@if mpfr
+ @cd $(HOST_SUBDIR); [ -d stage1-mpfr ] || \
+ mkdir stage1-mpfr; \
+ mv stage1-mpfr mpfr
+@endif mpfr
+@if mpc
+ @cd $(HOST_SUBDIR); [ -d stage1-mpc ] || \
+ mkdir stage1-mpc; \
+ mv stage1-mpc mpc
+@endif mpc
+@if isl
+ @cd $(HOST_SUBDIR); [ -d stage1-isl ] || \
+ mkdir stage1-isl; \
+ mv stage1-isl isl
+@endif isl
+@if cloog
+ @cd $(HOST_SUBDIR); [ -d stage1-cloog ] || \
+ mkdir stage1-cloog; \
+ mv stage1-cloog cloog
+@endif cloog
+@if libelf
+ @cd $(HOST_SUBDIR); [ -d stage1-libelf ] || \
+ mkdir stage1-libelf; \
+ mv stage1-libelf libelf
+@endif libelf
+@if gold
+ @cd $(HOST_SUBDIR); [ -d stage1-gold ] || \
+ mkdir stage1-gold; \
+ mv stage1-gold gold
+@endif gold
+@if intl
+ @cd $(HOST_SUBDIR); [ -d stage1-intl ] || \
+ mkdir stage1-intl; \
+ mv stage1-intl intl
+@endif intl
+@if ld
+ @cd $(HOST_SUBDIR); [ -d stage1-ld ] || \
+ mkdir stage1-ld; \
+ mv stage1-ld ld
+@endif ld
+@if libbacktrace
+ @cd $(HOST_SUBDIR); [ -d stage1-libbacktrace ] || \
+ mkdir stage1-libbacktrace; \
+ mv stage1-libbacktrace libbacktrace
+@endif libbacktrace
+@if libcpp
+ @cd $(HOST_SUBDIR); [ -d stage1-libcpp ] || \
+ mkdir stage1-libcpp; \
+ mv stage1-libcpp libcpp
+@endif libcpp
+@if libdecnumber
+ @cd $(HOST_SUBDIR); [ -d stage1-libdecnumber ] || \
+ mkdir stage1-libdecnumber; \
+ mv stage1-libdecnumber libdecnumber
+@endif libdecnumber
+@if libiberty
+ @cd $(HOST_SUBDIR); [ -d stage1-libiberty ] || \
+ mkdir stage1-libiberty; \
+ mv stage1-libiberty libiberty
+@endif libiberty
+@if zlib
+ @cd $(HOST_SUBDIR); [ -d stage1-zlib ] || \
+ 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)
+
+stage1-end::
+@if bfd
+ @if test -d $(HOST_SUBDIR)/bfd ; then \
+ cd $(HOST_SUBDIR); mv bfd stage1-bfd ; \
+ fi
+@endif bfd
+@if opcodes
+ @if test -d $(HOST_SUBDIR)/opcodes ; then \
+ cd $(HOST_SUBDIR); mv opcodes stage1-opcodes ; \
+ fi
+@endif opcodes
+@if binutils
+ @if test -d $(HOST_SUBDIR)/binutils ; then \
+ cd $(HOST_SUBDIR); mv binutils stage1-binutils ; \
+ fi
+@endif binutils
+@if fixincludes
+ @if test -d $(HOST_SUBDIR)/fixincludes ; then \
+ cd $(HOST_SUBDIR); mv fixincludes stage1-fixincludes ; \
+ fi
+@endif fixincludes
+@if gas
+ @if test -d $(HOST_SUBDIR)/gas ; then \
+ cd $(HOST_SUBDIR); mv gas stage1-gas ; \
+ fi
+@endif gas
+@if gcc
+ @if test -d $(HOST_SUBDIR)/gcc ; then \
+ cd $(HOST_SUBDIR); mv gcc stage1-gcc ; \
+ fi
+@endif gcc
+@if gmp
+ @if test -d $(HOST_SUBDIR)/gmp ; then \
+ cd $(HOST_SUBDIR); mv gmp stage1-gmp ; \
+ fi
+@endif gmp
+@if mpfr
+ @if test -d $(HOST_SUBDIR)/mpfr ; then \
+ cd $(HOST_SUBDIR); mv mpfr stage1-mpfr ; \
+ fi
+@endif mpfr
+@if mpc
+ @if test -d $(HOST_SUBDIR)/mpc ; then \
+ cd $(HOST_SUBDIR); mv mpc stage1-mpc ; \
+ fi
+@endif mpc
+@if isl
+ @if test -d $(HOST_SUBDIR)/isl ; then \
+ cd $(HOST_SUBDIR); mv isl stage1-isl ; \
+ fi
+@endif isl
+@if cloog
+ @if test -d $(HOST_SUBDIR)/cloog ; then \
+ cd $(HOST_SUBDIR); mv cloog stage1-cloog ; \
+ fi
+@endif cloog
+@if libelf
+ @if test -d $(HOST_SUBDIR)/libelf ; then \
+ cd $(HOST_SUBDIR); mv libelf stage1-libelf ; \
+ fi
+@endif libelf
+@if gold
+ @if test -d $(HOST_SUBDIR)/gold ; then \
+ cd $(HOST_SUBDIR); mv gold stage1-gold ; \
+ fi
+@endif gold
+@if intl
+ @if test -d $(HOST_SUBDIR)/intl ; then \
+ cd $(HOST_SUBDIR); mv intl stage1-intl ; \
+ fi
+@endif intl
+@if ld
+ @if test -d $(HOST_SUBDIR)/ld ; then \
+ cd $(HOST_SUBDIR); mv ld stage1-ld ; \
+ fi
+@endif ld
+@if libbacktrace
+ @if test -d $(HOST_SUBDIR)/libbacktrace ; then \
+ cd $(HOST_SUBDIR); mv libbacktrace stage1-libbacktrace ; \
+ fi
+@endif libbacktrace
+@if libcpp
+ @if test -d $(HOST_SUBDIR)/libcpp ; then \
+ cd $(HOST_SUBDIR); mv libcpp stage1-libcpp ; \
+ fi
+@endif libcpp
+@if libdecnumber
+ @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
+ cd $(HOST_SUBDIR); mv libdecnumber stage1-libdecnumber ; \
+ fi
+@endif libdecnumber
+@if libiberty
+ @if test -d $(HOST_SUBDIR)/libiberty ; then \
+ cd $(HOST_SUBDIR); mv libiberty stage1-libiberty ; \
+ fi
+@endif libiberty
+@if zlib
+ @if test -d $(HOST_SUBDIR)/zlib ; then \
+ 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
+ rm -f stage_current
+
+# Bubble a bug fix through all the stages up to stage 1. They are
+# remade, but not reconfigured. The next stage (if any) will not be
+# reconfigured either.
+.PHONY: stage1-bubble
+stage1-bubble::
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ if test -f stage1-lean ; then \
+ echo Skipping rebuild of stage1 ; \
+ else \
+ $(MAKE) stage1-start; \
+ $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage1; \
+ fi
+
+.PHONY: all-stage1 clean-stage1
+do-clean: clean-stage1
+
+# FIXME: Will not need to be conditional when toplevel bootstrap is the
+# only possibility, but now it conflicts with no-bootstrap rules
+@if gcc-bootstrap
+
+
+
+
+# Rules to wipe a stage and all the following ones, also used for cleanstrap
+
+.PHONY: distclean-stage1
+distclean-stage1::
+ @: $(MAKE); $(stage)
+ @test "`cat stage_last`" != stage1 || rm -f stage_last
+ rm -rf stage1-*
+
+
+@endif gcc-bootstrap
+
+
+.PHONY: stage2-start stage2-end
+
+stage2-start::
+ @: $(MAKE); $(stage); \
+ echo stage2 > stage_current ; \
+ echo stage2 > stage_last; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
+@if bfd
+ @cd $(HOST_SUBDIR); [ -d stage2-bfd ] || \
+ mkdir stage2-bfd; \
+ mv stage2-bfd bfd ; \
+ mv stage1-bfd prev-bfd || test -f stage1-lean
+@endif bfd
+@if opcodes
+ @cd $(HOST_SUBDIR); [ -d stage2-opcodes ] || \
+ mkdir stage2-opcodes; \
+ mv stage2-opcodes opcodes ; \
+ mv stage1-opcodes prev-opcodes || test -f stage1-lean
+@endif opcodes
+@if binutils
+ @cd $(HOST_SUBDIR); [ -d stage2-binutils ] || \
+ mkdir stage2-binutils; \
+ mv stage2-binutils binutils ; \
+ mv stage1-binutils prev-binutils || test -f stage1-lean
+@endif binutils
+@if fixincludes
+ @cd $(HOST_SUBDIR); [ -d stage2-fixincludes ] || \
+ mkdir stage2-fixincludes; \
+ mv stage2-fixincludes fixincludes ; \
+ mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
+@endif fixincludes
+@if gas
+ @cd $(HOST_SUBDIR); [ -d stage2-gas ] || \
+ mkdir stage2-gas; \
+ mv stage2-gas gas ; \
+ mv stage1-gas prev-gas || test -f stage1-lean
+@endif gas
+@if gcc
+ @cd $(HOST_SUBDIR); [ -d stage2-gcc ] || \
+ mkdir stage2-gcc; \
+ mv stage2-gcc gcc ; \
+ mv stage1-gcc prev-gcc || test -f stage1-lean
+@endif gcc
+@if gmp
+ @cd $(HOST_SUBDIR); [ -d stage2-gmp ] || \
+ mkdir stage2-gmp; \
+ mv stage2-gmp gmp ; \
+ mv stage1-gmp prev-gmp || test -f stage1-lean
+@endif gmp
+@if mpfr
+ @cd $(HOST_SUBDIR); [ -d stage2-mpfr ] || \
+ mkdir stage2-mpfr; \
+ mv stage2-mpfr mpfr ; \
+ mv stage1-mpfr prev-mpfr || test -f stage1-lean
+@endif mpfr
+@if mpc
+ @cd $(HOST_SUBDIR); [ -d stage2-mpc ] || \
+ mkdir stage2-mpc; \
+ mv stage2-mpc mpc ; \
+ mv stage1-mpc prev-mpc || test -f stage1-lean
+@endif mpc
+@if isl
+ @cd $(HOST_SUBDIR); [ -d stage2-isl ] || \
+ mkdir stage2-isl; \
+ mv stage2-isl isl ; \
+ mv stage1-isl prev-isl || test -f stage1-lean
+@endif isl
+@if cloog
+ @cd $(HOST_SUBDIR); [ -d stage2-cloog ] || \
+ mkdir stage2-cloog; \
+ mv stage2-cloog cloog ; \
+ mv stage1-cloog prev-cloog || test -f stage1-lean
+@endif cloog
+@if libelf
+ @cd $(HOST_SUBDIR); [ -d stage2-libelf ] || \
+ mkdir stage2-libelf; \
+ mv stage2-libelf libelf ; \
+ mv stage1-libelf prev-libelf || test -f stage1-lean
+@endif libelf
+@if gold
+ @cd $(HOST_SUBDIR); [ -d stage2-gold ] || \
+ mkdir stage2-gold; \
+ mv stage2-gold gold ; \
+ mv stage1-gold prev-gold || test -f stage1-lean
+@endif gold
+@if intl
+ @cd $(HOST_SUBDIR); [ -d stage2-intl ] || \
+ mkdir stage2-intl; \
+ mv stage2-intl intl ; \
+ mv stage1-intl prev-intl || test -f stage1-lean
+@endif intl
+@if ld
+ @cd $(HOST_SUBDIR); [ -d stage2-ld ] || \
+ mkdir stage2-ld; \
+ mv stage2-ld ld ; \
+ mv stage1-ld prev-ld || test -f stage1-lean
+@endif ld
+@if libbacktrace
+ @cd $(HOST_SUBDIR); [ -d stage2-libbacktrace ] || \
+ mkdir stage2-libbacktrace; \
+ mv stage2-libbacktrace libbacktrace ; \
+ mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
+@endif libbacktrace
+@if libcpp
+ @cd $(HOST_SUBDIR); [ -d stage2-libcpp ] || \
+ mkdir stage2-libcpp; \
+ mv stage2-libcpp libcpp ; \
+ mv stage1-libcpp prev-libcpp || test -f stage1-lean
+@endif libcpp
+@if libdecnumber
+ @cd $(HOST_SUBDIR); [ -d stage2-libdecnumber ] || \
+ mkdir stage2-libdecnumber; \
+ mv stage2-libdecnumber libdecnumber ; \
+ mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
+@endif libdecnumber
+@if libiberty
+ @cd $(HOST_SUBDIR); [ -d stage2-libiberty ] || \
+ mkdir stage2-libiberty; \
+ mv stage2-libiberty libiberty ; \
+ mv stage1-libiberty prev-libiberty || test -f stage1-lean
+@endif libiberty
+@if zlib
+ @cd $(HOST_SUBDIR); [ -d stage2-zlib ] || \
+ mkdir stage2-zlib; \
+ 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) ; \
+ mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
+
+stage2-end::
+@if bfd
+ @if test -d $(HOST_SUBDIR)/bfd ; then \
+ cd $(HOST_SUBDIR); mv bfd stage2-bfd ; \
+ mv prev-bfd stage1-bfd ; : ; \
+ fi
+@endif bfd
+@if opcodes
+ @if test -d $(HOST_SUBDIR)/opcodes ; then \
+ cd $(HOST_SUBDIR); mv opcodes stage2-opcodes ; \
+ mv prev-opcodes stage1-opcodes ; : ; \
+ fi
+@endif opcodes
+@if binutils
+ @if test -d $(HOST_SUBDIR)/binutils ; then \
+ cd $(HOST_SUBDIR); mv binutils stage2-binutils ; \
+ mv prev-binutils stage1-binutils ; : ; \
+ fi
+@endif binutils
+@if fixincludes
+ @if test -d $(HOST_SUBDIR)/fixincludes ; then \
+ cd $(HOST_SUBDIR); mv fixincludes stage2-fixincludes ; \
+ mv prev-fixincludes stage1-fixincludes ; : ; \
+ fi
+@endif fixincludes
+@if gas
+ @if test -d $(HOST_SUBDIR)/gas ; then \
+ cd $(HOST_SUBDIR); mv gas stage2-gas ; \
+ mv prev-gas stage1-gas ; : ; \
+ fi
+@endif gas
+@if gcc
+ @if test -d $(HOST_SUBDIR)/gcc ; then \
+ cd $(HOST_SUBDIR); mv gcc stage2-gcc ; \
+ mv prev-gcc stage1-gcc ; : ; \
+ fi
+@endif gcc
+@if gmp
+ @if test -d $(HOST_SUBDIR)/gmp ; then \
+ cd $(HOST_SUBDIR); mv gmp stage2-gmp ; \
+ mv prev-gmp stage1-gmp ; : ; \
+ fi
+@endif gmp
+@if mpfr
+ @if test -d $(HOST_SUBDIR)/mpfr ; then \
+ cd $(HOST_SUBDIR); mv mpfr stage2-mpfr ; \
+ mv prev-mpfr stage1-mpfr ; : ; \
+ fi
+@endif mpfr
+@if mpc
+ @if test -d $(HOST_SUBDIR)/mpc ; then \
+ cd $(HOST_SUBDIR); mv mpc stage2-mpc ; \
+ mv prev-mpc stage1-mpc ; : ; \
+ fi
+@endif mpc
+@if isl
+ @if test -d $(HOST_SUBDIR)/isl ; then \
+ cd $(HOST_SUBDIR); mv isl stage2-isl ; \
+ mv prev-isl stage1-isl ; : ; \
+ fi
+@endif isl
+@if cloog
+ @if test -d $(HOST_SUBDIR)/cloog ; then \
+ cd $(HOST_SUBDIR); mv cloog stage2-cloog ; \
+ mv prev-cloog stage1-cloog ; : ; \
+ fi
+@endif cloog
+@if libelf
+ @if test -d $(HOST_SUBDIR)/libelf ; then \
+ cd $(HOST_SUBDIR); mv libelf stage2-libelf ; \
+ mv prev-libelf stage1-libelf ; : ; \
+ fi
+@endif libelf
+@if gold
+ @if test -d $(HOST_SUBDIR)/gold ; then \
+ cd $(HOST_SUBDIR); mv gold stage2-gold ; \
+ mv prev-gold stage1-gold ; : ; \
+ fi
+@endif gold
+@if intl
+ @if test -d $(HOST_SUBDIR)/intl ; then \
+ cd $(HOST_SUBDIR); mv intl stage2-intl ; \
+ mv prev-intl stage1-intl ; : ; \
+ fi
+@endif intl
+@if ld
+ @if test -d $(HOST_SUBDIR)/ld ; then \
+ cd $(HOST_SUBDIR); mv ld stage2-ld ; \
+ mv prev-ld stage1-ld ; : ; \
+ fi
+@endif ld
+@if libbacktrace
+ @if test -d $(HOST_SUBDIR)/libbacktrace ; then \
+ cd $(HOST_SUBDIR); mv libbacktrace stage2-libbacktrace ; \
+ mv prev-libbacktrace stage1-libbacktrace ; : ; \
+ fi
+@endif libbacktrace
+@if libcpp
+ @if test -d $(HOST_SUBDIR)/libcpp ; then \
+ cd $(HOST_SUBDIR); mv libcpp stage2-libcpp ; \
+ mv prev-libcpp stage1-libcpp ; : ; \
+ fi
+@endif libcpp
+@if libdecnumber
+ @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
+ cd $(HOST_SUBDIR); mv libdecnumber stage2-libdecnumber ; \
+ mv prev-libdecnumber stage1-libdecnumber ; : ; \
+ fi
+@endif libdecnumber
+@if libiberty
+ @if test -d $(HOST_SUBDIR)/libiberty ; then \
+ cd $(HOST_SUBDIR); mv libiberty stage2-libiberty ; \
+ mv prev-libiberty stage1-libiberty ; : ; \
+ fi
+@endif libiberty
+@if zlib
+ @if test -d $(HOST_SUBDIR)/zlib ; then \
+ cd $(HOST_SUBDIR); mv zlib stage2-zlib ; \
+ 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) ; : ; \
+ fi
+ rm -f stage_current
+
+# Bubble a bug fix through all the stages up to stage 2. They are
+# remade, but not reconfigured. The next stage (if any) will not be
+# reconfigured either.
+.PHONY: stage2-bubble
+stage2-bubble:: stage1-bubble
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ if test -f stage2-lean || test -f stage1-lean ; then \
+ echo Skipping rebuild of stage2 ; \
+ else \
+ $(MAKE) stage2-start; \
+ $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage2; \
+ fi
+
+.PHONY: all-stage2 clean-stage2
+do-clean: clean-stage2
+
+# FIXME: Will not need to be conditional when toplevel bootstrap is the
+# only possibility, but now it conflicts with no-bootstrap rules
+@if gcc-bootstrap
+
+
+
+.PHONY: bootstrap2 bootstrap2-lean
+bootstrap2:
+ echo stage2 > stage_final
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage2-bubble
+ @: $(MAKE); $(unstage)
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGE2_TFLAGS)"; \
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
+
+bootstrap2-lean:
+ echo stage2 > stage_final
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage2-bubble
+ @: $(MAKE); $(unstage)
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGE2_TFLAGS)"; \
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
+
+
+# Rules to wipe a stage and all the following ones, also used for cleanstrap
+distclean-stage1:: distclean-stage2
+.PHONY: distclean-stage2
+distclean-stage2::
+ @: $(MAKE); $(stage)
+ @test "`cat stage_last`" != stage2 || rm -f stage_last
+ rm -rf stage2-*
+
+
+@endif gcc-bootstrap
+
+
+.PHONY: stage3-start stage3-end
+
+stage3-start::
+ @: $(MAKE); $(stage); \
+ echo stage3 > stage_current ; \
+ echo stage3 > stage_last; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
+@if bfd
+ @cd $(HOST_SUBDIR); [ -d stage3-bfd ] || \
+ mkdir stage3-bfd; \
+ mv stage3-bfd bfd ; \
+ mv stage2-bfd prev-bfd || test -f stage2-lean
+@endif bfd
+@if opcodes
+ @cd $(HOST_SUBDIR); [ -d stage3-opcodes ] || \
+ mkdir stage3-opcodes; \
+ mv stage3-opcodes opcodes ; \
+ mv stage2-opcodes prev-opcodes || test -f stage2-lean
+@endif opcodes
+@if binutils
+ @cd $(HOST_SUBDIR); [ -d stage3-binutils ] || \
+ mkdir stage3-binutils; \
+ mv stage3-binutils binutils ; \
+ mv stage2-binutils prev-binutils || test -f stage2-lean
+@endif binutils
+@if fixincludes
+ @cd $(HOST_SUBDIR); [ -d stage3-fixincludes ] || \
+ mkdir stage3-fixincludes; \
+ mv stage3-fixincludes fixincludes ; \
+ mv stage2-fixincludes prev-fixincludes || test -f stage2-lean
+@endif fixincludes
+@if gas
+ @cd $(HOST_SUBDIR); [ -d stage3-gas ] || \
+ mkdir stage3-gas; \
+ mv stage3-gas gas ; \
+ mv stage2-gas prev-gas || test -f stage2-lean
+@endif gas
+@if gcc
+ @cd $(HOST_SUBDIR); [ -d stage3-gcc ] || \
+ mkdir stage3-gcc; \
+ mv stage3-gcc gcc ; \
+ mv stage2-gcc prev-gcc || test -f stage2-lean
+@endif gcc
+@if gmp
+ @cd $(HOST_SUBDIR); [ -d stage3-gmp ] || \
+ mkdir stage3-gmp; \
+ mv stage3-gmp gmp ; \
+ mv stage2-gmp prev-gmp || test -f stage2-lean
+@endif gmp
+@if mpfr
+ @cd $(HOST_SUBDIR); [ -d stage3-mpfr ] || \
+ mkdir stage3-mpfr; \
+ mv stage3-mpfr mpfr ; \
+ mv stage2-mpfr prev-mpfr || test -f stage2-lean
+@endif mpfr
+@if mpc
+ @cd $(HOST_SUBDIR); [ -d stage3-mpc ] || \
+ mkdir stage3-mpc; \
+ mv stage3-mpc mpc ; \
+ mv stage2-mpc prev-mpc || test -f stage2-lean
+@endif mpc
+@if isl
+ @cd $(HOST_SUBDIR); [ -d stage3-isl ] || \
+ mkdir stage3-isl; \
+ mv stage3-isl isl ; \
+ mv stage2-isl prev-isl || test -f stage2-lean
+@endif isl
+@if cloog
+ @cd $(HOST_SUBDIR); [ -d stage3-cloog ] || \
+ mkdir stage3-cloog; \
+ mv stage3-cloog cloog ; \
+ mv stage2-cloog prev-cloog || test -f stage2-lean
+@endif cloog
+@if libelf
+ @cd $(HOST_SUBDIR); [ -d stage3-libelf ] || \
+ mkdir stage3-libelf; \
+ mv stage3-libelf libelf ; \
+ mv stage2-libelf prev-libelf || test -f stage2-lean
+@endif libelf
+@if gold
+ @cd $(HOST_SUBDIR); [ -d stage3-gold ] || \
+ mkdir stage3-gold; \
+ mv stage3-gold gold ; \
+ mv stage2-gold prev-gold || test -f stage2-lean
+@endif gold
+@if intl
+ @cd $(HOST_SUBDIR); [ -d stage3-intl ] || \
+ mkdir stage3-intl; \
+ mv stage3-intl intl ; \
+ mv stage2-intl prev-intl || test -f stage2-lean
+@endif intl
+@if ld
+ @cd $(HOST_SUBDIR); [ -d stage3-ld ] || \
+ mkdir stage3-ld; \
+ mv stage3-ld ld ; \
+ mv stage2-ld prev-ld || test -f stage2-lean
+@endif ld
+@if libbacktrace
+ @cd $(HOST_SUBDIR); [ -d stage3-libbacktrace ] || \
+ mkdir stage3-libbacktrace; \
+ mv stage3-libbacktrace libbacktrace ; \
+ mv stage2-libbacktrace prev-libbacktrace || test -f stage2-lean
+@endif libbacktrace
+@if libcpp
+ @cd $(HOST_SUBDIR); [ -d stage3-libcpp ] || \
+ mkdir stage3-libcpp; \
+ mv stage3-libcpp libcpp ; \
+ mv stage2-libcpp prev-libcpp || test -f stage2-lean
+@endif libcpp
+@if libdecnumber
+ @cd $(HOST_SUBDIR); [ -d stage3-libdecnumber ] || \
+ mkdir stage3-libdecnumber; \
+ mv stage3-libdecnumber libdecnumber ; \
+ mv stage2-libdecnumber prev-libdecnumber || test -f stage2-lean
+@endif libdecnumber
+@if libiberty
+ @cd $(HOST_SUBDIR); [ -d stage3-libiberty ] || \
+ mkdir stage3-libiberty; \
+ mv stage3-libiberty libiberty ; \
+ mv stage2-libiberty prev-libiberty || test -f stage2-lean
+@endif libiberty
+@if zlib
+ @cd $(HOST_SUBDIR); [ -d stage3-zlib ] || \
+ mkdir stage3-zlib; \
+ 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) ; \
+ mv stage2-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage2-lean
+
+stage3-end::
+@if bfd
+ @if test -d $(HOST_SUBDIR)/bfd ; then \
+ cd $(HOST_SUBDIR); mv bfd stage3-bfd ; \
+ mv prev-bfd stage2-bfd ; : ; \
+ fi
+@endif bfd
+@if opcodes
+ @if test -d $(HOST_SUBDIR)/opcodes ; then \
+ cd $(HOST_SUBDIR); mv opcodes stage3-opcodes ; \
+ mv prev-opcodes stage2-opcodes ; : ; \
+ fi
+@endif opcodes
+@if binutils
+ @if test -d $(HOST_SUBDIR)/binutils ; then \
+ cd $(HOST_SUBDIR); mv binutils stage3-binutils ; \
+ mv prev-binutils stage2-binutils ; : ; \
+ fi
+@endif binutils
+@if fixincludes
+ @if test -d $(HOST_SUBDIR)/fixincludes ; then \
+ cd $(HOST_SUBDIR); mv fixincludes stage3-fixincludes ; \
+ mv prev-fixincludes stage2-fixincludes ; : ; \
+ fi
+@endif fixincludes
+@if gas
+ @if test -d $(HOST_SUBDIR)/gas ; then \
+ cd $(HOST_SUBDIR); mv gas stage3-gas ; \
+ mv prev-gas stage2-gas ; : ; \
+ fi
+@endif gas
+@if gcc
+ @if test -d $(HOST_SUBDIR)/gcc ; then \
+ cd $(HOST_SUBDIR); mv gcc stage3-gcc ; \
+ mv prev-gcc stage2-gcc ; : ; \
+ fi
+@endif gcc
+@if gmp
+ @if test -d $(HOST_SUBDIR)/gmp ; then \
+ cd $(HOST_SUBDIR); mv gmp stage3-gmp ; \
+ mv prev-gmp stage2-gmp ; : ; \
+ fi
+@endif gmp
+@if mpfr
+ @if test -d $(HOST_SUBDIR)/mpfr ; then \
+ cd $(HOST_SUBDIR); mv mpfr stage3-mpfr ; \
+ mv prev-mpfr stage2-mpfr ; : ; \
+ fi
+@endif mpfr
+@if mpc
+ @if test -d $(HOST_SUBDIR)/mpc ; then \
+ cd $(HOST_SUBDIR); mv mpc stage3-mpc ; \
+ mv prev-mpc stage2-mpc ; : ; \
+ fi
+@endif mpc
+@if isl
+ @if test -d $(HOST_SUBDIR)/isl ; then \
+ cd $(HOST_SUBDIR); mv isl stage3-isl ; \
+ mv prev-isl stage2-isl ; : ; \
+ fi
+@endif isl
+@if cloog
+ @if test -d $(HOST_SUBDIR)/cloog ; then \
+ cd $(HOST_SUBDIR); mv cloog stage3-cloog ; \
+ mv prev-cloog stage2-cloog ; : ; \
+ fi
+@endif cloog
+@if libelf
+ @if test -d $(HOST_SUBDIR)/libelf ; then \
+ cd $(HOST_SUBDIR); mv libelf stage3-libelf ; \
+ mv prev-libelf stage2-libelf ; : ; \
+ fi
+@endif libelf
+@if gold
+ @if test -d $(HOST_SUBDIR)/gold ; then \
+ cd $(HOST_SUBDIR); mv gold stage3-gold ; \
+ mv prev-gold stage2-gold ; : ; \
+ fi
+@endif gold
+@if intl
+ @if test -d $(HOST_SUBDIR)/intl ; then \
+ cd $(HOST_SUBDIR); mv intl stage3-intl ; \
+ mv prev-intl stage2-intl ; : ; \
+ fi
+@endif intl
+@if ld
+ @if test -d $(HOST_SUBDIR)/ld ; then \
+ cd $(HOST_SUBDIR); mv ld stage3-ld ; \
+ mv prev-ld stage2-ld ; : ; \
+ fi
+@endif ld
+@if libbacktrace
+ @if test -d $(HOST_SUBDIR)/libbacktrace ; then \
+ cd $(HOST_SUBDIR); mv libbacktrace stage3-libbacktrace ; \
+ mv prev-libbacktrace stage2-libbacktrace ; : ; \
+ fi
+@endif libbacktrace
+@if libcpp
+ @if test -d $(HOST_SUBDIR)/libcpp ; then \
+ cd $(HOST_SUBDIR); mv libcpp stage3-libcpp ; \
+ mv prev-libcpp stage2-libcpp ; : ; \
+ fi
+@endif libcpp
+@if libdecnumber
+ @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
+ cd $(HOST_SUBDIR); mv libdecnumber stage3-libdecnumber ; \
+ mv prev-libdecnumber stage2-libdecnumber ; : ; \
+ fi
+@endif libdecnumber
+@if libiberty
+ @if test -d $(HOST_SUBDIR)/libiberty ; then \
+ cd $(HOST_SUBDIR); mv libiberty stage3-libiberty ; \
+ mv prev-libiberty stage2-libiberty ; : ; \
+ fi
+@endif libiberty
+@if zlib
+ @if test -d $(HOST_SUBDIR)/zlib ; then \
+ cd $(HOST_SUBDIR); mv zlib stage3-zlib ; \
+ 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) ; : ; \
+ fi
+ rm -f stage_current
+
+# Bubble a bug fix through all the stages up to stage 3. They are
+# remade, but not reconfigured. The next stage (if any) will not be
+# reconfigured either.
+.PHONY: stage3-bubble
+stage3-bubble:: stage2-bubble
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ if test -f stage3-lean || test -f stage2-lean ; then \
+ echo Skipping rebuild of stage3 ; \
+ else \
+ $(MAKE) stage3-start; \
+ if $(LEAN); then \
+ rm -rf stage1-* ; \
+ $(STAMP) stage1-lean ; \
+ fi; \
+ $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage3; \
+ fi
+ $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare
+
+.PHONY: all-stage3 clean-stage3
+do-clean: clean-stage3
+
+# FIXME: Will not need to be conditional when toplevel bootstrap is the
+# only possibility, but now it conflicts with no-bootstrap rules
+@if gcc-bootstrap
+
+compare:
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ if test -f stage2-lean; then \
+ echo Cannot compare object files as stage 2 was deleted. ; \
+ exit 0 ; \
+ fi; \
+ : $(MAKE); $(stage); \
+ rm -f .bad_compare ; \
+ echo Comparing stages 2 and 3 ; \
+ sed=`echo stage3 | sed 's,^stage,,;s,.,.,g'`; \
+ files=`find stage3-* -name "*$(objext)" -print | \
+ sed -n s,^stage$$sed-,,p` ; \
+ for file in $${files} ; do \
+ f1=$$r/stage2-$$file; f2=$$r/stage3-$$file; \
+ if test ! -f $$f1; then continue; fi; \
+ $(do-compare) > /dev/null 2>&1; \
+ if test $$? -eq 1; then \
+ case $$file in \
+ @compare_exclusions@) \
+ echo warning: $$file differs ;; \
+ *) \
+ echo $$file differs >> .bad_compare ;; \
+ esac ; \
+ fi ; \
+ done ; \
+ if [ -f .bad_compare ]; then \
+ echo "Bootstrap comparison failure!"; \
+ cat .bad_compare; \
+ exit 1; \
+ else \
+ echo Comparison successful.; \
+ fi ; \
+ $(STAMP) compare
+ if $(LEAN); then \
+ rm -rf stage2-*; \
+ $(STAMP) stage2-lean; \
+ fi
+
+
+
+.PHONY: bootstrap bootstrap-lean
+bootstrap:
+ echo stage3 > stage_final
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
+ @: $(MAKE); $(unstage)
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGE3_TFLAGS)"; \
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
+
+bootstrap-lean:
+ echo stage3 > stage_final
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage3-bubble
+ @: $(MAKE); $(unstage)
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGE3_TFLAGS)"; \
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
+
+
+# Rules to wipe a stage and all the following ones, also used for cleanstrap
+distclean-stage2:: distclean-stage3
+.PHONY: distclean-stage3
+distclean-stage3::
+ @: $(MAKE); $(stage)
+ @test "`cat stage_last`" != stage3 || rm -f stage_last
+ rm -rf stage3-* compare
+
+
+.PHONY: cleanstrap
+cleanstrap: do-distclean local-clean
+ echo stage3 > stage_final
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
+ @: $(MAKE); $(unstage)
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGE3_TFLAGS)"; \
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
+
+@endif gcc-bootstrap
+
+
+.PHONY: stage4-start stage4-end
+
+stage4-start::
+ @: $(MAKE); $(stage); \
+ echo stage4 > stage_current ; \
+ echo stage4 > stage_last; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
+@if bfd
+ @cd $(HOST_SUBDIR); [ -d stage4-bfd ] || \
+ mkdir stage4-bfd; \
+ mv stage4-bfd bfd ; \
+ mv stage3-bfd prev-bfd || test -f stage3-lean
+@endif bfd
+@if opcodes
+ @cd $(HOST_SUBDIR); [ -d stage4-opcodes ] || \
+ mkdir stage4-opcodes; \
+ mv stage4-opcodes opcodes ; \
+ mv stage3-opcodes prev-opcodes || test -f stage3-lean
+@endif opcodes
+@if binutils
+ @cd $(HOST_SUBDIR); [ -d stage4-binutils ] || \
+ mkdir stage4-binutils; \
+ mv stage4-binutils binutils ; \
+ mv stage3-binutils prev-binutils || test -f stage3-lean
+@endif binutils
+@if fixincludes
+ @cd $(HOST_SUBDIR); [ -d stage4-fixincludes ] || \
+ mkdir stage4-fixincludes; \
+ mv stage4-fixincludes fixincludes ; \
+ mv stage3-fixincludes prev-fixincludes || test -f stage3-lean
+@endif fixincludes
+@if gas
+ @cd $(HOST_SUBDIR); [ -d stage4-gas ] || \
+ mkdir stage4-gas; \
+ mv stage4-gas gas ; \
+ mv stage3-gas prev-gas || test -f stage3-lean
+@endif gas
+@if gcc
+ @cd $(HOST_SUBDIR); [ -d stage4-gcc ] || \
+ mkdir stage4-gcc; \
+ mv stage4-gcc gcc ; \
+ mv stage3-gcc prev-gcc || test -f stage3-lean
+@endif gcc
+@if gmp
+ @cd $(HOST_SUBDIR); [ -d stage4-gmp ] || \
+ mkdir stage4-gmp; \
+ mv stage4-gmp gmp ; \
+ mv stage3-gmp prev-gmp || test -f stage3-lean
+@endif gmp
+@if mpfr
+ @cd $(HOST_SUBDIR); [ -d stage4-mpfr ] || \
+ mkdir stage4-mpfr; \
+ mv stage4-mpfr mpfr ; \
+ mv stage3-mpfr prev-mpfr || test -f stage3-lean
+@endif mpfr
+@if mpc
+ @cd $(HOST_SUBDIR); [ -d stage4-mpc ] || \
+ mkdir stage4-mpc; \
+ mv stage4-mpc mpc ; \
+ mv stage3-mpc prev-mpc || test -f stage3-lean
+@endif mpc
+@if isl
+ @cd $(HOST_SUBDIR); [ -d stage4-isl ] || \
+ mkdir stage4-isl; \
+ mv stage4-isl isl ; \
+ mv stage3-isl prev-isl || test -f stage3-lean
+@endif isl
+@if cloog
+ @cd $(HOST_SUBDIR); [ -d stage4-cloog ] || \
+ mkdir stage4-cloog; \
+ mv stage4-cloog cloog ; \
+ mv stage3-cloog prev-cloog || test -f stage3-lean
+@endif cloog
+@if libelf
+ @cd $(HOST_SUBDIR); [ -d stage4-libelf ] || \
+ mkdir stage4-libelf; \
+ mv stage4-libelf libelf ; \
+ mv stage3-libelf prev-libelf || test -f stage3-lean
+@endif libelf
+@if gold
+ @cd $(HOST_SUBDIR); [ -d stage4-gold ] || \
+ mkdir stage4-gold; \
+ mv stage4-gold gold ; \
+ mv stage3-gold prev-gold || test -f stage3-lean
+@endif gold
+@if intl
+ @cd $(HOST_SUBDIR); [ -d stage4-intl ] || \
+ mkdir stage4-intl; \
+ mv stage4-intl intl ; \
+ mv stage3-intl prev-intl || test -f stage3-lean
+@endif intl
+@if ld
+ @cd $(HOST_SUBDIR); [ -d stage4-ld ] || \
+ mkdir stage4-ld; \
+ mv stage4-ld ld ; \
+ mv stage3-ld prev-ld || test -f stage3-lean
+@endif ld
+@if libbacktrace
+ @cd $(HOST_SUBDIR); [ -d stage4-libbacktrace ] || \
+ mkdir stage4-libbacktrace; \
+ mv stage4-libbacktrace libbacktrace ; \
+ mv stage3-libbacktrace prev-libbacktrace || test -f stage3-lean
+@endif libbacktrace
+@if libcpp
+ @cd $(HOST_SUBDIR); [ -d stage4-libcpp ] || \
+ mkdir stage4-libcpp; \
+ mv stage4-libcpp libcpp ; \
+ mv stage3-libcpp prev-libcpp || test -f stage3-lean
+@endif libcpp
+@if libdecnumber
+ @cd $(HOST_SUBDIR); [ -d stage4-libdecnumber ] || \
+ mkdir stage4-libdecnumber; \
+ mv stage4-libdecnumber libdecnumber ; \
+ mv stage3-libdecnumber prev-libdecnumber || test -f stage3-lean
+@endif libdecnumber
+@if libiberty
+ @cd $(HOST_SUBDIR); [ -d stage4-libiberty ] || \
+ mkdir stage4-libiberty; \
+ mv stage4-libiberty libiberty ; \
+ mv stage3-libiberty prev-libiberty || test -f stage3-lean
+@endif libiberty
+@if zlib
+ @cd $(HOST_SUBDIR); [ -d stage4-zlib ] || \
+ mkdir stage4-zlib; \
+ 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) ; \
+ mv stage3-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage3-lean
+
+stage4-end::
+@if bfd
+ @if test -d $(HOST_SUBDIR)/bfd ; then \
+ cd $(HOST_SUBDIR); mv bfd stage4-bfd ; \
+ mv prev-bfd stage3-bfd ; : ; \
+ fi
+@endif bfd
+@if opcodes
+ @if test -d $(HOST_SUBDIR)/opcodes ; then \
+ cd $(HOST_SUBDIR); mv opcodes stage4-opcodes ; \
+ mv prev-opcodes stage3-opcodes ; : ; \
+ fi
+@endif opcodes
+@if binutils
+ @if test -d $(HOST_SUBDIR)/binutils ; then \
+ cd $(HOST_SUBDIR); mv binutils stage4-binutils ; \
+ mv prev-binutils stage3-binutils ; : ; \
+ fi
+@endif binutils
+@if fixincludes
+ @if test -d $(HOST_SUBDIR)/fixincludes ; then \
+ cd $(HOST_SUBDIR); mv fixincludes stage4-fixincludes ; \
+ mv prev-fixincludes stage3-fixincludes ; : ; \
+ fi
+@endif fixincludes
+@if gas
+ @if test -d $(HOST_SUBDIR)/gas ; then \
+ cd $(HOST_SUBDIR); mv gas stage4-gas ; \
+ mv prev-gas stage3-gas ; : ; \
+ fi
+@endif gas
+@if gcc
+ @if test -d $(HOST_SUBDIR)/gcc ; then \
+ cd $(HOST_SUBDIR); mv gcc stage4-gcc ; \
+ mv prev-gcc stage3-gcc ; : ; \
+ fi
+@endif gcc
+@if gmp
+ @if test -d $(HOST_SUBDIR)/gmp ; then \
+ cd $(HOST_SUBDIR); mv gmp stage4-gmp ; \
+ mv prev-gmp stage3-gmp ; : ; \
+ fi
+@endif gmp
+@if mpfr
+ @if test -d $(HOST_SUBDIR)/mpfr ; then \
+ cd $(HOST_SUBDIR); mv mpfr stage4-mpfr ; \
+ mv prev-mpfr stage3-mpfr ; : ; \
+ fi
+@endif mpfr
+@if mpc
+ @if test -d $(HOST_SUBDIR)/mpc ; then \
+ cd $(HOST_SUBDIR); mv mpc stage4-mpc ; \
+ mv prev-mpc stage3-mpc ; : ; \
+ fi
+@endif mpc
+@if isl
+ @if test -d $(HOST_SUBDIR)/isl ; then \
+ cd $(HOST_SUBDIR); mv isl stage4-isl ; \
+ mv prev-isl stage3-isl ; : ; \
+ fi
+@endif isl
+@if cloog
+ @if test -d $(HOST_SUBDIR)/cloog ; then \
+ cd $(HOST_SUBDIR); mv cloog stage4-cloog ; \
+ mv prev-cloog stage3-cloog ; : ; \
+ fi
+@endif cloog
+@if libelf
+ @if test -d $(HOST_SUBDIR)/libelf ; then \
+ cd $(HOST_SUBDIR); mv libelf stage4-libelf ; \
+ mv prev-libelf stage3-libelf ; : ; \
+ fi
+@endif libelf
+@if gold
+ @if test -d $(HOST_SUBDIR)/gold ; then \
+ cd $(HOST_SUBDIR); mv gold stage4-gold ; \
+ mv prev-gold stage3-gold ; : ; \
+ fi
+@endif gold
+@if intl
+ @if test -d $(HOST_SUBDIR)/intl ; then \
+ cd $(HOST_SUBDIR); mv intl stage4-intl ; \
+ mv prev-intl stage3-intl ; : ; \
+ fi
+@endif intl
+@if ld
+ @if test -d $(HOST_SUBDIR)/ld ; then \
+ cd $(HOST_SUBDIR); mv ld stage4-ld ; \
+ mv prev-ld stage3-ld ; : ; \
+ fi
+@endif ld
+@if libbacktrace
+ @if test -d $(HOST_SUBDIR)/libbacktrace ; then \
+ cd $(HOST_SUBDIR); mv libbacktrace stage4-libbacktrace ; \
+ mv prev-libbacktrace stage3-libbacktrace ; : ; \
+ fi
+@endif libbacktrace
+@if libcpp
+ @if test -d $(HOST_SUBDIR)/libcpp ; then \
+ cd $(HOST_SUBDIR); mv libcpp stage4-libcpp ; \
+ mv prev-libcpp stage3-libcpp ; : ; \
+ fi
+@endif libcpp
+@if libdecnumber
+ @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
+ cd $(HOST_SUBDIR); mv libdecnumber stage4-libdecnumber ; \
+ mv prev-libdecnumber stage3-libdecnumber ; : ; \
+ fi
+@endif libdecnumber
+@if libiberty
+ @if test -d $(HOST_SUBDIR)/libiberty ; then \
+ cd $(HOST_SUBDIR); mv libiberty stage4-libiberty ; \
+ mv prev-libiberty stage3-libiberty ; : ; \
+ fi
+@endif libiberty
+@if zlib
+ @if test -d $(HOST_SUBDIR)/zlib ; then \
+ cd $(HOST_SUBDIR); mv zlib stage4-zlib ; \
+ 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) ; : ; \
+ fi
+ rm -f stage_current
+
+# Bubble a bug fix through all the stages up to stage 4. They are
+# remade, but not reconfigured. The next stage (if any) will not be
+# reconfigured either.
+.PHONY: stage4-bubble
+stage4-bubble:: stage3-bubble
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ if test -f stage4-lean || test -f stage3-lean ; then \
+ echo Skipping rebuild of stage4 ; \
+ else \
+ $(MAKE) stage4-start; \
+ if $(LEAN); then \
+ rm -rf stage2-* ; \
+ $(STAMP) stage2-lean ; \
+ fi; \
+ $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage4; \
+ fi
+ $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare3
+
+.PHONY: all-stage4 clean-stage4
+do-clean: clean-stage4
+
+# FIXME: Will not need to be conditional when toplevel bootstrap is the
+# only possibility, but now it conflicts with no-bootstrap rules
+@if gcc-bootstrap
+
+compare3:
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ if test -f stage3-lean; then \
+ echo Cannot compare object files as stage 3 was deleted. ; \
+ exit 0 ; \
+ fi; \
+ : $(MAKE); $(stage); \
+ rm -f .bad_compare ; \
+ echo Comparing stages 3 and 4 ; \
+ sed=`echo stage4 | sed 's,^stage,,;s,.,.,g'`; \
+ files=`find stage4-* -name "*$(objext)" -print | \
+ sed -n s,^stage$$sed-,,p` ; \
+ for file in $${files} ; do \
+ f1=$$r/stage3-$$file; f2=$$r/stage4-$$file; \
+ if test ! -f $$f1; then continue; fi; \
+ $(do-compare3) > /dev/null 2>&1; \
+ if test $$? -eq 1; then \
+ case $$file in \
+ @compare_exclusions@) \
+ echo warning: $$file differs ;; \
+ *) \
+ echo $$file differs >> .bad_compare ;; \
+ esac ; \
+ fi ; \
+ done ; \
+ if [ -f .bad_compare ]; then \
+ echo "Bootstrap comparison failure!"; \
+ cat .bad_compare; \
+ exit 1; \
+ else \
+ echo Comparison successful.; \
+ fi ; \
+ $(STAMP) compare3
+ if $(LEAN); then \
+ rm -rf stage3-*; \
+ $(STAMP) stage3-lean; \
+ fi
+
+
+
+.PHONY: bootstrap4 bootstrap4-lean
+bootstrap4:
+ echo stage4 > stage_final
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage4-bubble
+ @: $(MAKE); $(unstage)
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGE4_TFLAGS)"; \
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
+
+bootstrap4-lean:
+ echo stage4 > stage_final
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage4-bubble
+ @: $(MAKE); $(unstage)
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGE4_TFLAGS)"; \
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
+
+
+# Rules to wipe a stage and all the following ones, also used for cleanstrap
+distclean-stage3:: distclean-stage4
+.PHONY: distclean-stage4
+distclean-stage4::
+ @: $(MAKE); $(stage)
+ @test "`cat stage_last`" != stage4 || rm -f stage_last
+ rm -rf stage4-* compare3
+
+
+@endif gcc-bootstrap
+
+
+.PHONY: stageprofile-start stageprofile-end
+
+stageprofile-start::
+ @: $(MAKE); $(stage); \
+ echo stageprofile > stage_current ; \
+ echo stageprofile > stage_last; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
+@if bfd
+ @cd $(HOST_SUBDIR); [ -d stageprofile-bfd ] || \
+ mkdir stageprofile-bfd; \
+ mv stageprofile-bfd bfd ; \
+ mv stage1-bfd prev-bfd || test -f stage1-lean
+@endif bfd
+@if opcodes
+ @cd $(HOST_SUBDIR); [ -d stageprofile-opcodes ] || \
+ mkdir stageprofile-opcodes; \
+ mv stageprofile-opcodes opcodes ; \
+ mv stage1-opcodes prev-opcodes || test -f stage1-lean
+@endif opcodes
+@if binutils
+ @cd $(HOST_SUBDIR); [ -d stageprofile-binutils ] || \
+ mkdir stageprofile-binutils; \
+ mv stageprofile-binutils binutils ; \
+ mv stage1-binutils prev-binutils || test -f stage1-lean
+@endif binutils
+@if fixincludes
+ @cd $(HOST_SUBDIR); [ -d stageprofile-fixincludes ] || \
+ mkdir stageprofile-fixincludes; \
+ mv stageprofile-fixincludes fixincludes ; \
+ mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
+@endif fixincludes
+@if gas
+ @cd $(HOST_SUBDIR); [ -d stageprofile-gas ] || \
+ mkdir stageprofile-gas; \
+ mv stageprofile-gas gas ; \
+ mv stage1-gas prev-gas || test -f stage1-lean
+@endif gas
+@if gcc
+ @cd $(HOST_SUBDIR); [ -d stageprofile-gcc ] || \
+ mkdir stageprofile-gcc; \
+ mv stageprofile-gcc gcc ; \
+ mv stage1-gcc prev-gcc || test -f stage1-lean
+@endif gcc
+@if gmp
+ @cd $(HOST_SUBDIR); [ -d stageprofile-gmp ] || \
+ mkdir stageprofile-gmp; \
+ mv stageprofile-gmp gmp ; \
+ mv stage1-gmp prev-gmp || test -f stage1-lean
+@endif gmp
+@if mpfr
+ @cd $(HOST_SUBDIR); [ -d stageprofile-mpfr ] || \
+ mkdir stageprofile-mpfr; \
+ mv stageprofile-mpfr mpfr ; \
+ mv stage1-mpfr prev-mpfr || test -f stage1-lean
+@endif mpfr
+@if mpc
+ @cd $(HOST_SUBDIR); [ -d stageprofile-mpc ] || \
+ mkdir stageprofile-mpc; \
+ mv stageprofile-mpc mpc ; \
+ mv stage1-mpc prev-mpc || test -f stage1-lean
+@endif mpc
+@if isl
+ @cd $(HOST_SUBDIR); [ -d stageprofile-isl ] || \
+ mkdir stageprofile-isl; \
+ mv stageprofile-isl isl ; \
+ mv stage1-isl prev-isl || test -f stage1-lean
+@endif isl
+@if cloog
+ @cd $(HOST_SUBDIR); [ -d stageprofile-cloog ] || \
+ mkdir stageprofile-cloog; \
+ mv stageprofile-cloog cloog ; \
+ mv stage1-cloog prev-cloog || test -f stage1-lean
+@endif cloog
+@if libelf
+ @cd $(HOST_SUBDIR); [ -d stageprofile-libelf ] || \
+ mkdir stageprofile-libelf; \
+ mv stageprofile-libelf libelf ; \
+ mv stage1-libelf prev-libelf || test -f stage1-lean
+@endif libelf
+@if gold
+ @cd $(HOST_SUBDIR); [ -d stageprofile-gold ] || \
+ mkdir stageprofile-gold; \
+ mv stageprofile-gold gold ; \
+ mv stage1-gold prev-gold || test -f stage1-lean
+@endif gold
+@if intl
+ @cd $(HOST_SUBDIR); [ -d stageprofile-intl ] || \
+ mkdir stageprofile-intl; \
+ mv stageprofile-intl intl ; \
+ mv stage1-intl prev-intl || test -f stage1-lean
+@endif intl
+@if ld
+ @cd $(HOST_SUBDIR); [ -d stageprofile-ld ] || \
+ mkdir stageprofile-ld; \
+ mv stageprofile-ld ld ; \
+ mv stage1-ld prev-ld || test -f stage1-lean
+@endif ld
+@if libbacktrace
+ @cd $(HOST_SUBDIR); [ -d stageprofile-libbacktrace ] || \
+ mkdir stageprofile-libbacktrace; \
+ mv stageprofile-libbacktrace libbacktrace ; \
+ mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
+@endif libbacktrace
+@if libcpp
+ @cd $(HOST_SUBDIR); [ -d stageprofile-libcpp ] || \
+ mkdir stageprofile-libcpp; \
+ mv stageprofile-libcpp libcpp ; \
+ mv stage1-libcpp prev-libcpp || test -f stage1-lean
+@endif libcpp
+@if libdecnumber
+ @cd $(HOST_SUBDIR); [ -d stageprofile-libdecnumber ] || \
+ mkdir stageprofile-libdecnumber; \
+ mv stageprofile-libdecnumber libdecnumber ; \
+ mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
+@endif libdecnumber
+@if libiberty
+ @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty ] || \
+ mkdir stageprofile-libiberty; \
+ mv stageprofile-libiberty libiberty ; \
+ mv stage1-libiberty prev-libiberty || test -f stage1-lean
+@endif libiberty
+@if zlib
+ @cd $(HOST_SUBDIR); [ -d stageprofile-zlib ] || \
+ mkdir stageprofile-zlib; \
+ 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) ; \
+ mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
+
+stageprofile-end::
+@if bfd
+ @if test -d $(HOST_SUBDIR)/bfd ; then \
+ cd $(HOST_SUBDIR); mv bfd stageprofile-bfd ; \
+ mv prev-bfd stage1-bfd ; : ; \
+ fi
+@endif bfd
+@if opcodes
+ @if test -d $(HOST_SUBDIR)/opcodes ; then \
+ cd $(HOST_SUBDIR); mv opcodes stageprofile-opcodes ; \
+ mv prev-opcodes stage1-opcodes ; : ; \
+ fi
+@endif opcodes
+@if binutils
+ @if test -d $(HOST_SUBDIR)/binutils ; then \
+ cd $(HOST_SUBDIR); mv binutils stageprofile-binutils ; \
+ mv prev-binutils stage1-binutils ; : ; \
+ fi
+@endif binutils
+@if fixincludes
+ @if test -d $(HOST_SUBDIR)/fixincludes ; then \
+ cd $(HOST_SUBDIR); mv fixincludes stageprofile-fixincludes ; \
+ mv prev-fixincludes stage1-fixincludes ; : ; \
+ fi
+@endif fixincludes
+@if gas
+ @if test -d $(HOST_SUBDIR)/gas ; then \
+ cd $(HOST_SUBDIR); mv gas stageprofile-gas ; \
+ mv prev-gas stage1-gas ; : ; \
+ fi
+@endif gas
+@if gcc
+ @if test -d $(HOST_SUBDIR)/gcc ; then \
+ cd $(HOST_SUBDIR); mv gcc stageprofile-gcc ; \
+ mv prev-gcc stage1-gcc ; : ; \
+ fi
+@endif gcc
+@if gmp
+ @if test -d $(HOST_SUBDIR)/gmp ; then \
+ cd $(HOST_SUBDIR); mv gmp stageprofile-gmp ; \
+ mv prev-gmp stage1-gmp ; : ; \
+ fi
+@endif gmp
+@if mpfr
+ @if test -d $(HOST_SUBDIR)/mpfr ; then \
+ cd $(HOST_SUBDIR); mv mpfr stageprofile-mpfr ; \
+ mv prev-mpfr stage1-mpfr ; : ; \
+ fi
+@endif mpfr
+@if mpc
+ @if test -d $(HOST_SUBDIR)/mpc ; then \
+ cd $(HOST_SUBDIR); mv mpc stageprofile-mpc ; \
+ mv prev-mpc stage1-mpc ; : ; \
+ fi
+@endif mpc
+@if isl
+ @if test -d $(HOST_SUBDIR)/isl ; then \
+ cd $(HOST_SUBDIR); mv isl stageprofile-isl ; \
+ mv prev-isl stage1-isl ; : ; \
+ fi
+@endif isl
+@if cloog
+ @if test -d $(HOST_SUBDIR)/cloog ; then \
+ cd $(HOST_SUBDIR); mv cloog stageprofile-cloog ; \
+ mv prev-cloog stage1-cloog ; : ; \
+ fi
+@endif cloog
+@if libelf
+ @if test -d $(HOST_SUBDIR)/libelf ; then \
+ cd $(HOST_SUBDIR); mv libelf stageprofile-libelf ; \
+ mv prev-libelf stage1-libelf ; : ; \
+ fi
+@endif libelf
+@if gold
+ @if test -d $(HOST_SUBDIR)/gold ; then \
+ cd $(HOST_SUBDIR); mv gold stageprofile-gold ; \
+ mv prev-gold stage1-gold ; : ; \
+ fi
+@endif gold
+@if intl
+ @if test -d $(HOST_SUBDIR)/intl ; then \
+ cd $(HOST_SUBDIR); mv intl stageprofile-intl ; \
+ mv prev-intl stage1-intl ; : ; \
+ fi
+@endif intl
+@if ld
+ @if test -d $(HOST_SUBDIR)/ld ; then \
+ cd $(HOST_SUBDIR); mv ld stageprofile-ld ; \
+ mv prev-ld stage1-ld ; : ; \
+ fi
+@endif ld
+@if libbacktrace
+ @if test -d $(HOST_SUBDIR)/libbacktrace ; then \
+ cd $(HOST_SUBDIR); mv libbacktrace stageprofile-libbacktrace ; \
+ mv prev-libbacktrace stage1-libbacktrace ; : ; \
+ fi
+@endif libbacktrace
+@if libcpp
+ @if test -d $(HOST_SUBDIR)/libcpp ; then \
+ cd $(HOST_SUBDIR); mv libcpp stageprofile-libcpp ; \
+ mv prev-libcpp stage1-libcpp ; : ; \
+ fi
+@endif libcpp
+@if libdecnumber
+ @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
+ cd $(HOST_SUBDIR); mv libdecnumber stageprofile-libdecnumber ; \
+ mv prev-libdecnumber stage1-libdecnumber ; : ; \
+ fi
+@endif libdecnumber
+@if libiberty
+ @if test -d $(HOST_SUBDIR)/libiberty ; then \
+ cd $(HOST_SUBDIR); mv libiberty stageprofile-libiberty ; \
+ mv prev-libiberty stage1-libiberty ; : ; \
+ fi
+@endif libiberty
+@if zlib
+ @if test -d $(HOST_SUBDIR)/zlib ; then \
+ cd $(HOST_SUBDIR); mv zlib stageprofile-zlib ; \
+ 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) ; : ; \
+ fi
+ rm -f stage_current