Register afdo_tools as an optional bootstrapped GCC host module and
regenerate the top-level build files. The module is configured on
GNU/Linux hosts only, is skipped when testing a cross compiler, and is
ordered after the host dependencies it needs. Its sources are added to the
list scanned for translatable strings.
ChangeLog:
* Makefile.def (host_modules): Add afdo_tools as a bootstrapped
host module and skip its checks for cross builds.
(dependencies): Order afdo_tools after configure-gcc and gettext.
* Makefile.in: Regenerate.
* configure: Likewise.
* configure.ac: Configure afdo_tools on GNU/Linux hosts only.
gcc/po/ChangeLog:
* exgettext: Scan ../afdo_tools/src for translatable strings.
Signed-off-by: Kugan Vivekanandarajah <[email protected]>
Co-authored-by: Dhruv Chawla <[email protected]>
Co-authored-by: Rahul Shinde <[email protected]>
---
Makefile.def | 7 +
Makefile.in | 1306 +++++++++++++++++++++++++++++++++++++++++++++-
configure | 26 +
configure.ac | 20 +
gcc/po/exgettext | 4 +-
5 files changed, 1359 insertions(+), 4 deletions(-)
diff --git a/Makefile.def b/Makefile.def
index 6098de2904d..5d9e1aa91ec 100644
--- a/Makefile.def
+++ b/Makefile.def
@@ -156,6 +156,9 @@ host_modules= { module= libtermcap; no_check=true;
host_modules= { module= utils; no_check=true; };
host_modules= { module= c++tools;
missing=TAGS; };
+host_modules= { module= afdo_tools; bootstrap=true;
+ no_check_cross=true;
+ missing=TAGS; };
host_modules= { module= gnattools; };
host_modules= { module= lto-plugin; bootstrap=true;
extra_configure_flags='--enable-shared
@extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@';
@@ -369,6 +372,7 @@ dependencies = { module=all-build-libcpp;
on=all-build-libiberty; };
// Host modules specific to gcc.
dependencies = { module=configure-gcc; on=configure-gettext; };
+dependencies = { module=configure-afdo_tools; on=configure-gettext; };
dependencies = { module=configure-gcc; on=all-gmp; };
dependencies = { module=configure-gcc; on=all-mpfr; };
dependencies = { module=configure-gcc; on=all-mpc; };
@@ -395,6 +399,9 @@ dependencies = { module=all-gcc; on=all-zlib; };
dependencies = { module=all-gcc; on=all-libbacktrace; hard=true; };
dependencies = { module=all-gcc; on=all-libcpp; hard=true; };
dependencies = { module=all-gcc; on=all-libcody; hard=true; };
+dependencies = { module=all-gcc; on=all-afdo_tools; hard=true; };
+dependencies = { module=all-afdo_tools; on=configure-gcc; hard=true; };
+dependencies = { module=all-afdo_tools; on=all-gettext; };
dependencies = { module=all-gcc; on=all-libdecnumber; hard=true; };
dependencies = { module=all-gcc; on=all-libiberty; };
dependencies = { module=all-gcc; on=all-fixincludes; };
diff --git a/Makefile.in b/Makefile.in
index 767d6aab977..c4749792177 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1197,6 +1197,7 @@ configure-host: \
maybe-configure-libtermcap \
maybe-configure-utils \
maybe-configure-c++tools \
+ maybe-configure-afdo_tools \
maybe-configure-gnattools \
maybe-configure-lto-plugin \
maybe-configure-libcc1 \
@@ -1375,6 +1376,9 @@ all-host: maybe-all-tk
all-host: maybe-all-libtermcap
all-host: maybe-all-utils
all-host: maybe-all-c++tools
+@if afdo_tools-no-bootstrap
+all-host: maybe-all-afdo_tools
+@endif afdo_tools-no-bootstrap
all-host: maybe-all-gnattools
@if lto-plugin-no-bootstrap
all-host: maybe-all-lto-plugin
@@ -1501,6 +1505,7 @@ info-host: maybe-info-tk
info-host: maybe-info-libtermcap
info-host: maybe-info-utils
info-host: maybe-info-c++tools
+info-host: maybe-info-afdo_tools
info-host: maybe-info-gnattools
info-host: maybe-info-lto-plugin
info-host: maybe-info-libcc1
@@ -1596,6 +1601,7 @@ dvi-host: maybe-dvi-tk
dvi-host: maybe-dvi-libtermcap
dvi-host: maybe-dvi-utils
dvi-host: maybe-dvi-c++tools
+dvi-host: maybe-dvi-afdo_tools
dvi-host: maybe-dvi-gnattools
dvi-host: maybe-dvi-lto-plugin
dvi-host: maybe-dvi-libcc1
@@ -1691,6 +1697,7 @@ pdf-host: maybe-pdf-tk
pdf-host: maybe-pdf-libtermcap
pdf-host: maybe-pdf-utils
pdf-host: maybe-pdf-c++tools
+pdf-host: maybe-pdf-afdo_tools
pdf-host: maybe-pdf-gnattools
pdf-host: maybe-pdf-lto-plugin
pdf-host: maybe-pdf-libcc1
@@ -1786,6 +1793,7 @@ html-host: maybe-html-tk
html-host: maybe-html-libtermcap
html-host: maybe-html-utils
html-host: maybe-html-c++tools
+html-host: maybe-html-afdo_tools
html-host: maybe-html-gnattools
html-host: maybe-html-lto-plugin
html-host: maybe-html-libcc1
@@ -1881,6 +1889,7 @@ TAGS-host: maybe-TAGS-tk
TAGS-host: maybe-TAGS-libtermcap
TAGS-host: maybe-TAGS-utils
TAGS-host: maybe-TAGS-c++tools
+TAGS-host: maybe-TAGS-afdo_tools
TAGS-host: maybe-TAGS-gnattools
TAGS-host: maybe-TAGS-lto-plugin
TAGS-host: maybe-TAGS-libcc1
@@ -1976,6 +1985,7 @@ install-info-host: maybe-install-info-tk
install-info-host: maybe-install-info-libtermcap
install-info-host: maybe-install-info-utils
install-info-host: maybe-install-info-c++tools
+install-info-host: maybe-install-info-afdo_tools
install-info-host: maybe-install-info-gnattools
install-info-host: maybe-install-info-lto-plugin
install-info-host: maybe-install-info-libcc1
@@ -2071,6 +2081,7 @@ install-dvi-host: maybe-install-dvi-tk
install-dvi-host: maybe-install-dvi-libtermcap
install-dvi-host: maybe-install-dvi-utils
install-dvi-host: maybe-install-dvi-c++tools
+install-dvi-host: maybe-install-dvi-afdo_tools
install-dvi-host: maybe-install-dvi-gnattools
install-dvi-host: maybe-install-dvi-lto-plugin
install-dvi-host: maybe-install-dvi-libcc1
@@ -2166,6 +2177,7 @@ install-pdf-host: maybe-install-pdf-tk
install-pdf-host: maybe-install-pdf-libtermcap
install-pdf-host: maybe-install-pdf-utils
install-pdf-host: maybe-install-pdf-c++tools
+install-pdf-host: maybe-install-pdf-afdo_tools
install-pdf-host: maybe-install-pdf-gnattools
install-pdf-host: maybe-install-pdf-lto-plugin
install-pdf-host: maybe-install-pdf-libcc1
@@ -2261,6 +2273,7 @@ install-html-host: maybe-install-html-tk
install-html-host: maybe-install-html-libtermcap
install-html-host: maybe-install-html-utils
install-html-host: maybe-install-html-c++tools
+install-html-host: maybe-install-html-afdo_tools
install-html-host: maybe-install-html-gnattools
install-html-host: maybe-install-html-lto-plugin
install-html-host: maybe-install-html-libcc1
@@ -2356,6 +2369,7 @@ installcheck-host: maybe-installcheck-tk
installcheck-host: maybe-installcheck-libtermcap
installcheck-host: maybe-installcheck-utils
installcheck-host: maybe-installcheck-c++tools
+installcheck-host: maybe-installcheck-afdo_tools
installcheck-host: maybe-installcheck-gnattools
installcheck-host: maybe-installcheck-lto-plugin
installcheck-host: maybe-installcheck-libcc1
@@ -2451,6 +2465,7 @@ mostlyclean-host: maybe-mostlyclean-tk
mostlyclean-host: maybe-mostlyclean-libtermcap
mostlyclean-host: maybe-mostlyclean-utils
mostlyclean-host: maybe-mostlyclean-c++tools
+mostlyclean-host: maybe-mostlyclean-afdo_tools
mostlyclean-host: maybe-mostlyclean-gnattools
mostlyclean-host: maybe-mostlyclean-lto-plugin
mostlyclean-host: maybe-mostlyclean-libcc1
@@ -2546,6 +2561,7 @@ clean-host: maybe-clean-tk
clean-host: maybe-clean-libtermcap
clean-host: maybe-clean-utils
clean-host: maybe-clean-c++tools
+clean-host: maybe-clean-afdo_tools
clean-host: maybe-clean-gnattools
clean-host: maybe-clean-lto-plugin
clean-host: maybe-clean-libcc1
@@ -2641,6 +2657,7 @@ distclean-host: maybe-distclean-tk
distclean-host: maybe-distclean-libtermcap
distclean-host: maybe-distclean-utils
distclean-host: maybe-distclean-c++tools
+distclean-host: maybe-distclean-afdo_tools
distclean-host: maybe-distclean-gnattools
distclean-host: maybe-distclean-lto-plugin
distclean-host: maybe-distclean-libcc1
@@ -2736,6 +2753,7 @@ maintainer-clean-host: maybe-maintainer-clean-tk
maintainer-clean-host: maybe-maintainer-clean-libtermcap
maintainer-clean-host: maybe-maintainer-clean-utils
maintainer-clean-host: maybe-maintainer-clean-c++tools
+maintainer-clean-host: maybe-maintainer-clean-afdo_tools
maintainer-clean-host: maybe-maintainer-clean-gnattools
maintainer-clean-host: maybe-maintainer-clean-lto-plugin
maintainer-clean-host: maybe-maintainer-clean-libcc1
@@ -2889,6 +2907,7 @@ check-host: \
maybe-check-libtermcap \
maybe-check-utils \
maybe-check-c++tools \
+ maybe-check-afdo_tools \
maybe-check-gnattools \
maybe-check-lto-plugin \
maybe-check-libcc1 \
@@ -3033,6 +3052,7 @@ install-host-nogcc: \
maybe-install-libtermcap \
maybe-install-utils \
maybe-install-c++tools \
+ maybe-install-afdo_tools \
maybe-install-gnattools \
maybe-install-lto-plugin \
maybe-install-libcc1 \
@@ -3090,6 +3110,7 @@ install-host: \
maybe-install-libtermcap \
maybe-install-utils \
maybe-install-c++tools \
+ maybe-install-afdo_tools \
maybe-install-gnattools \
maybe-install-lto-plugin \
maybe-install-libcc1 \
@@ -3205,6 +3226,7 @@ install-strip-host: \
maybe-install-strip-libtermcap \
maybe-install-strip-utils \
maybe-install-strip-c++tools \
+ maybe-install-strip-afdo_tools \
maybe-install-strip-gnattools \
maybe-install-strip-lto-plugin \
maybe-install-strip-libcc1 \
@@ -7178,7 +7200,7 @@ check-bison:
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
(cd $(HOST_SUBDIR)/bison && \
- $(MAKE) $(FLAGS_TO_PASS) check)
+ $(MAKE) $(FLAGS_TO_PASS) check); \
fi
@endif bison
@@ -9053,7 +9075,7 @@ check-fastjar:
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
(cd $(HOST_SUBDIR)/fastjar && \
- $(MAKE) $(FLAGS_TO_PASS) check)
+ $(MAKE) $(FLAGS_TO_PASS) check); \
fi
@endif fastjar
@@ -10633,7 +10655,7 @@ check-flex:
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
(cd $(HOST_SUBDIR)/flex && \
- $(MAKE) $(FLAGS_TO_PASS) check)
+ $(MAKE) $(FLAGS_TO_PASS) check); \
fi
@endif flex
@@ -39281,6 +39303,1134 @@ maintainer-clean-c++tools:
+.PHONY: configure-afdo_tools maybe-configure-afdo_tools
+maybe-configure-afdo_tools:
+@if gcc-bootstrap
+configure-afdo_tools: stage_current
+@endif gcc-bootstrap
+@if afdo_tools
+maybe-configure-afdo_tools: configure-afdo_tools
+configure-afdo_tools:
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ test ! -f $(HOST_SUBDIR)/afdo_tools/Makefile || exit 0; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/afdo_tools; \
+ $(HOST_EXPORTS) \
+ echo Configuring in $(HOST_SUBDIR)/afdo_tools; \
+ cd "$(HOST_SUBDIR)/afdo_tools" || exit 1; \
+ case $(srcdir) in \
+ /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
+ *) topdir=`echo $(HOST_SUBDIR)/afdo_tools/ | \
+ sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
+ esac; \
+ module_srcdir=afdo_tools; \
+ $(SHELL) \
+ $$s/$$module_srcdir/configure \
+ --srcdir=$${topdir}/$$module_srcdir \
+ $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
+ --target=${target_alias} \
+ || exit 1
+@endif afdo_tools
+
+
+
+.PHONY: configure-stage1-afdo_tools maybe-configure-stage1-afdo_tools
+maybe-configure-stage1-afdo_tools:
+@if afdo_tools-bootstrap
+maybe-configure-stage1-afdo_tools: configure-stage1-afdo_tools
+configure-stage1-afdo_tools:
+ @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
+ @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/afdo_tools
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGE1_TFLAGS)"; \
+ test ! -f $(HOST_SUBDIR)/afdo_tools/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)/afdo_tools; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/afdo_tools; \
+ cd $(HOST_SUBDIR)/afdo_tools || exit 1; \
+ case $(srcdir) in \
+ /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
+ *) topdir=`echo $(HOST_SUBDIR)/afdo_tools/ | \
+ sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
+ esac; \
+ module_srcdir=afdo_tools; \
+ $(SHELL) $$s/$$module_srcdir/configure \
+ --srcdir=$${topdir}/$$module_srcdir \
+ $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
+ --target=${target_alias} \
+ \
+ $(STAGE1_CONFIGURE_FLAGS)
+@endif afdo_tools-bootstrap
+
+.PHONY: configure-stage2-afdo_tools maybe-configure-stage2-afdo_tools
+maybe-configure-stage2-afdo_tools:
+@if afdo_tools-bootstrap
+maybe-configure-stage2-afdo_tools: configure-stage2-afdo_tools
+configure-stage2-afdo_tools:
+ @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
+ @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/afdo_tools
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGE2_TFLAGS)"; \
+ test ! -f $(HOST_SUBDIR)/afdo_tools/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)/afdo_tools; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/afdo_tools; \
+ cd $(HOST_SUBDIR)/afdo_tools || exit 1; \
+ case $(srcdir) in \
+ /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
+ *) topdir=`echo $(HOST_SUBDIR)/afdo_tools/ | \
+ sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
+ esac; \
+ module_srcdir=afdo_tools; \
+ $(SHELL) $$s/$$module_srcdir/configure \
+ --srcdir=$${topdir}/$$module_srcdir \
+ $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
+ --target=${target_alias} \
+ --with-build-libsubdir=$(HOST_SUBDIR) \
+ $(STAGE2_CONFIGURE_FLAGS)
+@endif afdo_tools-bootstrap
+
+.PHONY: configure-stage3-afdo_tools maybe-configure-stage3-afdo_tools
+maybe-configure-stage3-afdo_tools:
+@if afdo_tools-bootstrap
+maybe-configure-stage3-afdo_tools: configure-stage3-afdo_tools
+configure-stage3-afdo_tools:
+ @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
+ @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/afdo_tools
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGE3_TFLAGS)"; \
+ test ! -f $(HOST_SUBDIR)/afdo_tools/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)/afdo_tools; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/afdo_tools; \
+ cd $(HOST_SUBDIR)/afdo_tools || exit 1; \
+ case $(srcdir) in \
+ /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
+ *) topdir=`echo $(HOST_SUBDIR)/afdo_tools/ | \
+ sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
+ esac; \
+ module_srcdir=afdo_tools; \
+ $(SHELL) $$s/$$module_srcdir/configure \
+ --srcdir=$${topdir}/$$module_srcdir \
+ $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
+ --target=${target_alias} \
+ --with-build-libsubdir=$(HOST_SUBDIR) \
+ $(STAGE3_CONFIGURE_FLAGS)
+@endif afdo_tools-bootstrap
+
+.PHONY: configure-stage4-afdo_tools maybe-configure-stage4-afdo_tools
+maybe-configure-stage4-afdo_tools:
+@if afdo_tools-bootstrap
+maybe-configure-stage4-afdo_tools: configure-stage4-afdo_tools
+configure-stage4-afdo_tools:
+ @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
+ @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/afdo_tools
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGE4_TFLAGS)"; \
+ test ! -f $(HOST_SUBDIR)/afdo_tools/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)/afdo_tools; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/afdo_tools; \
+ cd $(HOST_SUBDIR)/afdo_tools || exit 1; \
+ case $(srcdir) in \
+ /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
+ *) topdir=`echo $(HOST_SUBDIR)/afdo_tools/ | \
+ sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
+ esac; \
+ module_srcdir=afdo_tools; \
+ $(SHELL) $$s/$$module_srcdir/configure \
+ --srcdir=$${topdir}/$$module_srcdir \
+ $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
+ --target=${target_alias} \
+ --with-build-libsubdir=$(HOST_SUBDIR) \
+ $(STAGE4_CONFIGURE_FLAGS)
+@endif afdo_tools-bootstrap
+
+.PHONY: configure-stageprofile-afdo_tools
maybe-configure-stageprofile-afdo_tools
+maybe-configure-stageprofile-afdo_tools:
+@if afdo_tools-bootstrap
+maybe-configure-stageprofile-afdo_tools: configure-stageprofile-afdo_tools
+configure-stageprofile-afdo_tools:
+ @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
+ @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/afdo_tools
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGEprofile_TFLAGS)"; \
+ test ! -f $(HOST_SUBDIR)/afdo_tools/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)/afdo_tools; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/afdo_tools; \
+ cd $(HOST_SUBDIR)/afdo_tools || exit 1; \
+ case $(srcdir) in \
+ /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
+ *) topdir=`echo $(HOST_SUBDIR)/afdo_tools/ | \
+ sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
+ esac; \
+ module_srcdir=afdo_tools; \
+ $(SHELL) $$s/$$module_srcdir/configure \
+ --srcdir=$${topdir}/$$module_srcdir \
+ $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
+ --target=${target_alias} \
+ --with-build-libsubdir=$(HOST_SUBDIR) \
+ $(STAGEprofile_CONFIGURE_FLAGS)
+@endif afdo_tools-bootstrap
+
+.PHONY: configure-stagetrain-afdo_tools maybe-configure-stagetrain-afdo_tools
+maybe-configure-stagetrain-afdo_tools:
+@if afdo_tools-bootstrap
+maybe-configure-stagetrain-afdo_tools: configure-stagetrain-afdo_tools
+configure-stagetrain-afdo_tools:
+ @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
+ @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/afdo_tools
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGEtrain_TFLAGS)"; \
+ test ! -f $(HOST_SUBDIR)/afdo_tools/Makefile || exit 0; \
+ $(HOST_EXPORTS) \
+ $(POSTSTAGE1_HOST_EXPORTS) \
+ CFLAGS="$(STAGEtrain_CFLAGS)"; export CFLAGS; \
+ CXXFLAGS="$(STAGEtrain_CXXFLAGS)"; export CXXFLAGS; \
+ LIBCFLAGS="$(STAGEtrain_CFLAGS)"; export LIBCFLAGS; \
+ echo Configuring stage train in $(HOST_SUBDIR)/afdo_tools; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/afdo_tools; \
+ cd $(HOST_SUBDIR)/afdo_tools || exit 1; \
+ case $(srcdir) in \
+ /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
+ *) topdir=`echo $(HOST_SUBDIR)/afdo_tools/ | \
+ sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
+ esac; \
+ module_srcdir=afdo_tools; \
+ $(SHELL) $$s/$$module_srcdir/configure \
+ --srcdir=$${topdir}/$$module_srcdir \
+ $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
+ --target=${target_alias} \
+ --with-build-libsubdir=$(HOST_SUBDIR) \
+ $(STAGEtrain_CONFIGURE_FLAGS)
+@endif afdo_tools-bootstrap
+
+.PHONY: configure-stagefeedback-afdo_tools
maybe-configure-stagefeedback-afdo_tools
+maybe-configure-stagefeedback-afdo_tools:
+@if afdo_tools-bootstrap
+maybe-configure-stagefeedback-afdo_tools: configure-stagefeedback-afdo_tools
+configure-stagefeedback-afdo_tools:
+ @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
+ @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/afdo_tools
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGEfeedback_TFLAGS)"; \
+ test ! -f $(HOST_SUBDIR)/afdo_tools/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)/afdo_tools; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/afdo_tools; \
+ cd $(HOST_SUBDIR)/afdo_tools || exit 1; \
+ case $(srcdir) in \
+ /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
+ *) topdir=`echo $(HOST_SUBDIR)/afdo_tools/ | \
+ sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
+ esac; \
+ module_srcdir=afdo_tools; \
+ $(SHELL) $$s/$$module_srcdir/configure \
+ --srcdir=$${topdir}/$$module_srcdir \
+ $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
+ --target=${target_alias} \
+ --with-build-libsubdir=$(HOST_SUBDIR) \
+ $(STAGEfeedback_CONFIGURE_FLAGS)
+@endif afdo_tools-bootstrap
+
+.PHONY: configure-stageautoprofile-afdo_tools
maybe-configure-stageautoprofile-afdo_tools
+maybe-configure-stageautoprofile-afdo_tools:
+@if afdo_tools-bootstrap
+maybe-configure-stageautoprofile-afdo_tools:
configure-stageautoprofile-afdo_tools
+configure-stageautoprofile-afdo_tools:
+ @[ $(current_stage) = stageautoprofile ] || $(MAKE)
stageautoprofile-start
+ @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/afdo_tools
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
+ test ! -f $(HOST_SUBDIR)/afdo_tools/Makefile || exit 0; \
+ $(HOST_EXPORTS) \
+ $(POSTSTAGE1_HOST_EXPORTS) \
+ CFLAGS="$(STAGEautoprofile_CFLAGS)"; export CFLAGS; \
+ CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)"; export CXXFLAGS; \
+ LIBCFLAGS="$(STAGEautoprofile_CFLAGS)"; export LIBCFLAGS; \
+ echo Configuring stage autoprofile in $(HOST_SUBDIR)/afdo_tools; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/afdo_tools; \
+ cd $(HOST_SUBDIR)/afdo_tools || exit 1; \
+ case $(srcdir) in \
+ /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
+ *) topdir=`echo $(HOST_SUBDIR)/afdo_tools/ | \
+ sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
+ esac; \
+ module_srcdir=afdo_tools; \
+ $(SHELL) $$s/$$module_srcdir/configure \
+ --srcdir=$${topdir}/$$module_srcdir \
+ $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
+ --target=${target_alias} \
+ --with-build-libsubdir=$(HOST_SUBDIR) \
+ $(STAGEautoprofile_CONFIGURE_FLAGS)
+@endif afdo_tools-bootstrap
+
+.PHONY: configure-stageautofeedback-afdo_tools
maybe-configure-stageautofeedback-afdo_tools
+maybe-configure-stageautofeedback-afdo_tools:
+@if afdo_tools-bootstrap
+maybe-configure-stageautofeedback-afdo_tools:
configure-stageautofeedback-afdo_tools
+configure-stageautofeedback-afdo_tools:
+ @[ $(current_stage) = stageautofeedback ] || $(MAKE)
stageautofeedback-start
+ @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/afdo_tools
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
+ test ! -f $(HOST_SUBDIR)/afdo_tools/Makefile || exit 0; \
+ $(HOST_EXPORTS) \
+ $(POSTSTAGE1_HOST_EXPORTS) \
+ CFLAGS="$(STAGEautofeedback_CFLAGS)"; export CFLAGS; \
+ CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)"; export CXXFLAGS; \
+ LIBCFLAGS="$(STAGEautofeedback_CFLAGS)"; export LIBCFLAGS; \
+ echo Configuring stage autofeedback in $(HOST_SUBDIR)/afdo_tools; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/afdo_tools; \
+ cd $(HOST_SUBDIR)/afdo_tools || exit 1; \
+ case $(srcdir) in \
+ /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
+ *) topdir=`echo $(HOST_SUBDIR)/afdo_tools/ | \
+ sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
+ esac; \
+ module_srcdir=afdo_tools; \
+ $(SHELL) $$s/$$module_srcdir/configure \
+ --srcdir=$${topdir}/$$module_srcdir \
+ $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
+ --target=${target_alias} \
+ --with-build-libsubdir=$(HOST_SUBDIR) \
+ $(STAGEautofeedback_CONFIGURE_FLAGS)
+@endif afdo_tools-bootstrap
+
+
+
+
+
+.PHONY: all-afdo_tools maybe-all-afdo_tools
+maybe-all-afdo_tools:
+@if gcc-bootstrap
+all-afdo_tools: stage_current
+@endif gcc-bootstrap
+@if afdo_tools
+TARGET-afdo_tools=all
+maybe-all-afdo_tools: all-afdo_tools
+all-afdo_tools: configure-afdo_tools
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ (cd $(HOST_SUBDIR)/afdo_tools && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
$(STAGE1_FLAGS_TO_PASS) \
+ $(TARGET-afdo_tools))
+@endif afdo_tools
+
+
+
+.PHONY: all-stage1-afdo_tools maybe-all-stage1-afdo_tools
+.PHONY: clean-stage1-afdo_tools maybe-clean-stage1-afdo_tools
+maybe-all-stage1-afdo_tools:
+maybe-clean-stage1-afdo_tools:
+@if afdo_tools-bootstrap
+maybe-all-stage1-afdo_tools: all-stage1-afdo_tools
+all-stage1: all-stage1-afdo_tools
+TARGET-stage1-afdo_tools = $(TARGET-afdo_tools)
+all-stage1-afdo_tools: configure-stage1-afdo_tools
+ @[ $(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)/afdo_tools && \
+ \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) \
+ CFLAGS="$(STAGE1_CFLAGS)" \
+ GENERATOR_CFLAGS="$(STAGE1_GENERATOR_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) \
+ $(STAGE1_FLAGS_TO_PASS) \
+ TFLAGS="$(STAGE1_TFLAGS)" \
+ $(TARGET-stage1-afdo_tools)
+
+maybe-clean-stage1-afdo_tools: clean-stage1-afdo_tools
+clean-stage1: clean-stage1-afdo_tools
+clean-stage1-afdo_tools:
+ @if [ $(current_stage) = stage1 ]; then \
+ [ -f $(HOST_SUBDIR)/afdo_tools/Makefile ] || exit 0; \
+ else \
+ [ -f $(HOST_SUBDIR)/stage1-afdo_tools/Makefile ] || exit 0; \
+ $(MAKE) stage1-start; \
+ fi; \
+ cd $(HOST_SUBDIR)/afdo_tools && \
+ $(MAKE) $(EXTRA_HOST_FLAGS) \
+ $(STAGE1_FLAGS_TO_PASS) clean
+@endif afdo_tools-bootstrap
+
+
+.PHONY: all-stage2-afdo_tools maybe-all-stage2-afdo_tools
+.PHONY: clean-stage2-afdo_tools maybe-clean-stage2-afdo_tools
+maybe-all-stage2-afdo_tools:
+maybe-clean-stage2-afdo_tools:
+@if afdo_tools-bootstrap
+maybe-all-stage2-afdo_tools: all-stage2-afdo_tools
+all-stage2: all-stage2-afdo_tools
+TARGET-stage2-afdo_tools = $(TARGET-afdo_tools)
+all-stage2-afdo_tools: configure-stage2-afdo_tools
+ @[ $(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)/afdo_tools && \
+ \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) \
+ CFLAGS="$(STAGE2_CFLAGS)" \
+ GENERATOR_CFLAGS="$(STAGE2_GENERATOR_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-afdo_tools)
+
+maybe-clean-stage2-afdo_tools: clean-stage2-afdo_tools
+clean-stage2: clean-stage2-afdo_tools
+clean-stage2-afdo_tools:
+ @if [ $(current_stage) = stage2 ]; then \
+ [ -f $(HOST_SUBDIR)/afdo_tools/Makefile ] || exit 0; \
+ else \
+ [ -f $(HOST_SUBDIR)/stage2-afdo_tools/Makefile ] || exit 0; \
+ $(MAKE) stage2-start; \
+ fi; \
+ cd $(HOST_SUBDIR)/afdo_tools && \
+ $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
+@endif afdo_tools-bootstrap
+
+
+.PHONY: all-stage3-afdo_tools maybe-all-stage3-afdo_tools
+.PHONY: clean-stage3-afdo_tools maybe-clean-stage3-afdo_tools
+maybe-all-stage3-afdo_tools:
+maybe-clean-stage3-afdo_tools:
+@if afdo_tools-bootstrap
+maybe-all-stage3-afdo_tools: all-stage3-afdo_tools
+all-stage3: all-stage3-afdo_tools
+TARGET-stage3-afdo_tools = $(TARGET-afdo_tools)
+all-stage3-afdo_tools: configure-stage3-afdo_tools
+ @[ $(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)/afdo_tools && \
+ \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) \
+ CFLAGS="$(STAGE3_CFLAGS)" \
+ GENERATOR_CFLAGS="$(STAGE3_GENERATOR_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-afdo_tools)
+
+maybe-clean-stage3-afdo_tools: clean-stage3-afdo_tools
+clean-stage3: clean-stage3-afdo_tools
+clean-stage3-afdo_tools:
+ @if [ $(current_stage) = stage3 ]; then \
+ [ -f $(HOST_SUBDIR)/afdo_tools/Makefile ] || exit 0; \
+ else \
+ [ -f $(HOST_SUBDIR)/stage3-afdo_tools/Makefile ] || exit 0; \
+ $(MAKE) stage3-start; \
+ fi; \
+ cd $(HOST_SUBDIR)/afdo_tools && \
+ $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
+@endif afdo_tools-bootstrap
+
+
+.PHONY: all-stage4-afdo_tools maybe-all-stage4-afdo_tools
+.PHONY: clean-stage4-afdo_tools maybe-clean-stage4-afdo_tools
+maybe-all-stage4-afdo_tools:
+maybe-clean-stage4-afdo_tools:
+@if afdo_tools-bootstrap
+maybe-all-stage4-afdo_tools: all-stage4-afdo_tools
+all-stage4: all-stage4-afdo_tools
+TARGET-stage4-afdo_tools = $(TARGET-afdo_tools)
+all-stage4-afdo_tools: configure-stage4-afdo_tools
+ @[ $(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)/afdo_tools && \
+ \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) \
+ CFLAGS="$(STAGE4_CFLAGS)" \
+ GENERATOR_CFLAGS="$(STAGE4_GENERATOR_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-afdo_tools)
+
+maybe-clean-stage4-afdo_tools: clean-stage4-afdo_tools
+clean-stage4: clean-stage4-afdo_tools
+clean-stage4-afdo_tools:
+ @if [ $(current_stage) = stage4 ]; then \
+ [ -f $(HOST_SUBDIR)/afdo_tools/Makefile ] || exit 0; \
+ else \
+ [ -f $(HOST_SUBDIR)/stage4-afdo_tools/Makefile ] || exit 0; \
+ $(MAKE) stage4-start; \
+ fi; \
+ cd $(HOST_SUBDIR)/afdo_tools && \
+ $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
+@endif afdo_tools-bootstrap
+
+
+.PHONY: all-stageprofile-afdo_tools maybe-all-stageprofile-afdo_tools
+.PHONY: clean-stageprofile-afdo_tools maybe-clean-stageprofile-afdo_tools
+maybe-all-stageprofile-afdo_tools:
+maybe-clean-stageprofile-afdo_tools:
+@if afdo_tools-bootstrap
+maybe-all-stageprofile-afdo_tools: all-stageprofile-afdo_tools
+all-stageprofile: all-stageprofile-afdo_tools
+TARGET-stageprofile-afdo_tools = $(TARGET-afdo_tools)
+all-stageprofile-afdo_tools: configure-stageprofile-afdo_tools
+ @[ $(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)/afdo_tools && \
+ \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) \
+ CFLAGS="$(STAGEprofile_CFLAGS)" \
+ GENERATOR_CFLAGS="$(STAGEprofile_GENERATOR_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-afdo_tools)
+
+maybe-clean-stageprofile-afdo_tools: clean-stageprofile-afdo_tools
+clean-stageprofile: clean-stageprofile-afdo_tools
+clean-stageprofile-afdo_tools:
+ @if [ $(current_stage) = stageprofile ]; then \
+ [ -f $(HOST_SUBDIR)/afdo_tools/Makefile ] || exit 0; \
+ else \
+ [ -f $(HOST_SUBDIR)/stageprofile-afdo_tools/Makefile ] || exit 0; \
+ $(MAKE) stageprofile-start; \
+ fi; \
+ cd $(HOST_SUBDIR)/afdo_tools && \
+ $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
+@endif afdo_tools-bootstrap
+
+
+.PHONY: all-stagetrain-afdo_tools maybe-all-stagetrain-afdo_tools
+.PHONY: clean-stagetrain-afdo_tools maybe-clean-stagetrain-afdo_tools
+maybe-all-stagetrain-afdo_tools:
+maybe-clean-stagetrain-afdo_tools:
+@if afdo_tools-bootstrap
+maybe-all-stagetrain-afdo_tools: all-stagetrain-afdo_tools
+all-stagetrain: all-stagetrain-afdo_tools
+TARGET-stagetrain-afdo_tools = $(TARGET-afdo_tools)
+all-stagetrain-afdo_tools: configure-stagetrain-afdo_tools
+ @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGEtrain_TFLAGS)"; \
+ $(HOST_EXPORTS) \
+ $(POSTSTAGE1_HOST_EXPORTS) \
+ cd $(HOST_SUBDIR)/afdo_tools && \
+ \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) \
+ CFLAGS="$(STAGEtrain_CFLAGS)" \
+ GENERATOR_CFLAGS="$(STAGEtrain_GENERATOR_CFLAGS)" \
+ CXXFLAGS="$(STAGEtrain_CXXFLAGS)" \
+ LIBCFLAGS="$(STAGEtrain_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="$(STAGEtrain_TFLAGS)" \
+ $(TARGET-stagetrain-afdo_tools)
+
+maybe-clean-stagetrain-afdo_tools: clean-stagetrain-afdo_tools
+clean-stagetrain: clean-stagetrain-afdo_tools
+clean-stagetrain-afdo_tools:
+ @if [ $(current_stage) = stagetrain ]; then \
+ [ -f $(HOST_SUBDIR)/afdo_tools/Makefile ] || exit 0; \
+ else \
+ [ -f $(HOST_SUBDIR)/stagetrain-afdo_tools/Makefile ] || exit 0; \
+ $(MAKE) stagetrain-start; \
+ fi; \
+ cd $(HOST_SUBDIR)/afdo_tools && \
+ $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
+@endif afdo_tools-bootstrap
+
+
+.PHONY: all-stagefeedback-afdo_tools maybe-all-stagefeedback-afdo_tools
+.PHONY: clean-stagefeedback-afdo_tools maybe-clean-stagefeedback-afdo_tools
+maybe-all-stagefeedback-afdo_tools:
+maybe-clean-stagefeedback-afdo_tools:
+@if afdo_tools-bootstrap
+maybe-all-stagefeedback-afdo_tools: all-stagefeedback-afdo_tools
+all-stagefeedback: all-stagefeedback-afdo_tools
+TARGET-stagefeedback-afdo_tools = $(TARGET-afdo_tools)
+all-stagefeedback-afdo_tools: configure-stagefeedback-afdo_tools
+ @[ $(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)/afdo_tools && \
+ \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) \
+ CFLAGS="$(STAGEfeedback_CFLAGS)" \
+ GENERATOR_CFLAGS="$(STAGEfeedback_GENERATOR_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-afdo_tools)
+
+maybe-clean-stagefeedback-afdo_tools: clean-stagefeedback-afdo_tools
+clean-stagefeedback: clean-stagefeedback-afdo_tools
+clean-stagefeedback-afdo_tools:
+ @if [ $(current_stage) = stagefeedback ]; then \
+ [ -f $(HOST_SUBDIR)/afdo_tools/Makefile ] || exit 0; \
+ else \
+ [ -f $(HOST_SUBDIR)/stagefeedback-afdo_tools/Makefile ] || exit 0; \
+ $(MAKE) stagefeedback-start; \
+ fi; \
+ cd $(HOST_SUBDIR)/afdo_tools && \
+ $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
+@endif afdo_tools-bootstrap
+
+
+.PHONY: all-stageautoprofile-afdo_tools maybe-all-stageautoprofile-afdo_tools
+.PHONY: clean-stageautoprofile-afdo_tools
maybe-clean-stageautoprofile-afdo_tools
+maybe-all-stageautoprofile-afdo_tools:
+maybe-clean-stageautoprofile-afdo_tools:
+@if afdo_tools-bootstrap
+maybe-all-stageautoprofile-afdo_tools: all-stageautoprofile-afdo_tools
+all-stageautoprofile: all-stageautoprofile-afdo_tools
+TARGET-stageautoprofile-afdo_tools = $(TARGET-afdo_tools)
+all-stageautoprofile-afdo_tools: configure-stageautoprofile-afdo_tools
+ @[ $(current_stage) = stageautoprofile ] || $(MAKE)
stageautoprofile-start
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
+ $(HOST_EXPORTS) \
+ $(POSTSTAGE1_HOST_EXPORTS) \
+ cd $(HOST_SUBDIR)/afdo_tools && \
+ $$s/gcc/config/$(cpu_type)/$(AUTO_PROFILE) \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) \
+ CFLAGS="$(STAGEautoprofile_CFLAGS)" \
+ GENERATOR_CFLAGS="$(STAGEautoprofile_GENERATOR_CFLAGS)" \
+ CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)" \
+ LIBCFLAGS="$(STAGEautoprofile_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="$(STAGEautoprofile_TFLAGS)" \
+ $(TARGET-stageautoprofile-afdo_tools)
+
+maybe-clean-stageautoprofile-afdo_tools: clean-stageautoprofile-afdo_tools
+clean-stageautoprofile: clean-stageautoprofile-afdo_tools
+clean-stageautoprofile-afdo_tools:
+ @if [ $(current_stage) = stageautoprofile ]; then \
+ [ -f $(HOST_SUBDIR)/afdo_tools/Makefile ] || exit 0; \
+ else \
+ [ -f $(HOST_SUBDIR)/stageautoprofile-afdo_tools/Makefile ] || exit 0;
\
+ $(MAKE) stageautoprofile-start; \
+ fi; \
+ cd $(HOST_SUBDIR)/afdo_tools && \
+ $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
+@endif afdo_tools-bootstrap
+
+
+.PHONY: all-stageautofeedback-afdo_tools maybe-all-stageautofeedback-afdo_tools
+.PHONY: clean-stageautofeedback-afdo_tools
maybe-clean-stageautofeedback-afdo_tools
+maybe-all-stageautofeedback-afdo_tools:
+maybe-clean-stageautofeedback-afdo_tools:
+@if afdo_tools-bootstrap
+maybe-all-stageautofeedback-afdo_tools: all-stageautofeedback-afdo_tools
+all-stageautofeedback: all-stageautofeedback-afdo_tools
+TARGET-stageautofeedback-afdo_tools = $(TARGET-afdo_tools)
+all-stageautofeedback-afdo_tools: configure-stageautofeedback-afdo_tools
+ @[ $(current_stage) = stageautofeedback ] || $(MAKE)
stageautofeedback-start
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
+ $(HOST_EXPORTS) \
+ $(POSTSTAGE1_HOST_EXPORTS) \
+ cd $(HOST_SUBDIR)/afdo_tools && \
+ \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) \
+ CFLAGS="$(STAGEautofeedback_CFLAGS)" \
+ GENERATOR_CFLAGS="$(STAGEautofeedback_GENERATOR_CFLAGS)" \
+ CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)" \
+ LIBCFLAGS="$(STAGEautofeedback_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="$(STAGEautofeedback_TFLAGS)" PERF_DATA=perf.data \
+ $(TARGET-stageautofeedback-afdo_tools)
+
+maybe-clean-stageautofeedback-afdo_tools: clean-stageautofeedback-afdo_tools
+clean-stageautofeedback: clean-stageautofeedback-afdo_tools
+clean-stageautofeedback-afdo_tools:
+ @if [ $(current_stage) = stageautofeedback ]; then \
+ [ -f $(HOST_SUBDIR)/afdo_tools/Makefile ] || exit 0; \
+ else \
+ [ -f $(HOST_SUBDIR)/stageautofeedback-afdo_tools/Makefile ] || exit
0; \
+ $(MAKE) stageautofeedback-start; \
+ fi; \
+ cd $(HOST_SUBDIR)/afdo_tools && \
+ $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
+@endif afdo_tools-bootstrap
+
+
+
+
+
+.PHONY: check-afdo_tools maybe-check-afdo_tools
+maybe-check-afdo_tools:
+@if afdo_tools
+maybe-check-afdo_tools: check-afdo_tools
+
+# This module is only tested in a native toolchain.
+check-afdo_tools:
+ @: $(MAKE); $(unstage)
+ @if [ '$(host)' = '$(target)' ]; then \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
+ (cd $(HOST_SUBDIR)/afdo_tools && \
+ $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check); \
+ fi
+
+@endif afdo_tools
+
+.PHONY: install-afdo_tools maybe-install-afdo_tools
+maybe-install-afdo_tools:
+@if afdo_tools
+maybe-install-afdo_tools: install-afdo_tools
+
+install-afdo_tools: installdirs
+ @: $(MAKE); $(unstage)
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ (cd $(HOST_SUBDIR)/afdo_tools && \
+ $(MAKE) $(FLAGS_TO_PASS) install)
+
+@endif afdo_tools
+
+.PHONY: install-strip-afdo_tools maybe-install-strip-afdo_tools
+maybe-install-strip-afdo_tools:
+@if afdo_tools
+maybe-install-strip-afdo_tools: install-strip-afdo_tools
+
+install-strip-afdo_tools: installdirs
+ @: $(MAKE); $(unstage)
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ (cd $(HOST_SUBDIR)/afdo_tools && \
+ $(MAKE) $(FLAGS_TO_PASS) install-strip)
+
+@endif afdo_tools
+
+# Other targets (info, dvi, pdf, etc.)
+
+.PHONY: maybe-info-afdo_tools info-afdo_tools
+maybe-info-afdo_tools:
+@if afdo_tools
+maybe-info-afdo_tools: info-afdo_tools
+
+info-afdo_tools: \
+ configure-afdo_tools
+ @[ -f ./afdo_tools/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) ; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export
\1|"`; \
+ done; \
+ echo "Doing info in afdo_tools"; \
+ (cd $(HOST_SUBDIR)/afdo_tools && \
+ $(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 afdo_tools
+
+.PHONY: maybe-dvi-afdo_tools dvi-afdo_tools
+maybe-dvi-afdo_tools:
+@if afdo_tools
+maybe-dvi-afdo_tools: dvi-afdo_tools
+
+dvi-afdo_tools: \
+ configure-afdo_tools
+ @[ -f ./afdo_tools/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) ; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export
\1|"`; \
+ done; \
+ echo "Doing dvi in afdo_tools"; \
+ (cd $(HOST_SUBDIR)/afdo_tools && \
+ $(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 afdo_tools
+
+.PHONY: maybe-pdf-afdo_tools pdf-afdo_tools
+maybe-pdf-afdo_tools:
+@if afdo_tools
+maybe-pdf-afdo_tools: pdf-afdo_tools
+
+pdf-afdo_tools: \
+ configure-afdo_tools
+ @[ -f ./afdo_tools/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) ; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export
\1|"`; \
+ done; \
+ echo "Doing pdf in afdo_tools"; \
+ (cd $(HOST_SUBDIR)/afdo_tools && \
+ $(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 afdo_tools
+
+.PHONY: maybe-html-afdo_tools html-afdo_tools
+maybe-html-afdo_tools:
+@if afdo_tools
+maybe-html-afdo_tools: html-afdo_tools
+
+html-afdo_tools: \
+ configure-afdo_tools
+ @[ -f ./afdo_tools/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) ; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export
\1|"`; \
+ done; \
+ echo "Doing html in afdo_tools"; \
+ (cd $(HOST_SUBDIR)/afdo_tools && \
+ $(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 afdo_tools
+
+.PHONY: maybe-TAGS-afdo_tools TAGS-afdo_tools
+maybe-TAGS-afdo_tools:
+@if afdo_tools
+maybe-TAGS-afdo_tools: TAGS-afdo_tools
+
+# afdo_tools doesn't support TAGS.
+TAGS-afdo_tools:
+
+@endif afdo_tools
+
+.PHONY: maybe-install-info-afdo_tools install-info-afdo_tools
+maybe-install-info-afdo_tools:
+@if afdo_tools
+maybe-install-info-afdo_tools: install-info-afdo_tools
+
+install-info-afdo_tools: \
+ configure-afdo_tools \
+ info-afdo_tools
+ @[ -f ./afdo_tools/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) ; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export
\1|"`; \
+ done; \
+ echo "Doing install-info in afdo_tools"; \
+ (cd $(HOST_SUBDIR)/afdo_tools && \
+ $(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 afdo_tools
+
+.PHONY: maybe-install-dvi-afdo_tools install-dvi-afdo_tools
+maybe-install-dvi-afdo_tools:
+@if afdo_tools
+maybe-install-dvi-afdo_tools: install-dvi-afdo_tools
+
+install-dvi-afdo_tools: \
+ configure-afdo_tools \
+ dvi-afdo_tools
+ @[ -f ./afdo_tools/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) ; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export
\1|"`; \
+ done; \
+ echo "Doing install-dvi in afdo_tools"; \
+ (cd $(HOST_SUBDIR)/afdo_tools && \
+ $(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-dvi) \
+ || exit 1
+
+@endif afdo_tools
+
+.PHONY: maybe-install-pdf-afdo_tools install-pdf-afdo_tools
+maybe-install-pdf-afdo_tools:
+@if afdo_tools
+maybe-install-pdf-afdo_tools: install-pdf-afdo_tools
+
+install-pdf-afdo_tools: \
+ configure-afdo_tools \
+ pdf-afdo_tools
+ @[ -f ./afdo_tools/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) ; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export
\1|"`; \
+ done; \
+ echo "Doing install-pdf in afdo_tools"; \
+ (cd $(HOST_SUBDIR)/afdo_tools && \
+ $(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 afdo_tools
+
+.PHONY: maybe-install-html-afdo_tools install-html-afdo_tools
+maybe-install-html-afdo_tools:
+@if afdo_tools
+maybe-install-html-afdo_tools: install-html-afdo_tools
+
+install-html-afdo_tools: \
+ configure-afdo_tools \
+ html-afdo_tools
+ @[ -f ./afdo_tools/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) ; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export
\1|"`; \
+ done; \
+ echo "Doing install-html in afdo_tools"; \
+ (cd $(HOST_SUBDIR)/afdo_tools && \
+ $(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 afdo_tools
+
+.PHONY: maybe-installcheck-afdo_tools installcheck-afdo_tools
+maybe-installcheck-afdo_tools:
+@if afdo_tools
+maybe-installcheck-afdo_tools: installcheck-afdo_tools
+
+installcheck-afdo_tools: \
+ configure-afdo_tools
+ @[ -f ./afdo_tools/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) ; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export
\1|"`; \
+ done; \
+ echo "Doing installcheck in afdo_tools"; \
+ (cd $(HOST_SUBDIR)/afdo_tools && \
+ $(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 afdo_tools
+
+.PHONY: maybe-mostlyclean-afdo_tools mostlyclean-afdo_tools
+maybe-mostlyclean-afdo_tools:
+@if afdo_tools
+maybe-mostlyclean-afdo_tools: mostlyclean-afdo_tools
+
+mostlyclean-afdo_tools:
+ @[ -f ./afdo_tools/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) ; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export
\1|"`; \
+ done; \
+ echo "Doing mostlyclean in afdo_tools"; \
+ (cd $(HOST_SUBDIR)/afdo_tools && \
+ $(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 afdo_tools
+
+.PHONY: maybe-clean-afdo_tools clean-afdo_tools
+maybe-clean-afdo_tools:
+@if afdo_tools
+maybe-clean-afdo_tools: clean-afdo_tools
+
+clean-afdo_tools:
+ @[ -f ./afdo_tools/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) ; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export
\1|"`; \
+ done; \
+ echo "Doing clean in afdo_tools"; \
+ (cd $(HOST_SUBDIR)/afdo_tools && \
+ $(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 afdo_tools
+
+.PHONY: maybe-distclean-afdo_tools distclean-afdo_tools
+maybe-distclean-afdo_tools:
+@if afdo_tools
+maybe-distclean-afdo_tools: distclean-afdo_tools
+
+distclean-afdo_tools:
+ @[ -f ./afdo_tools/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) ; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export
\1|"`; \
+ done; \
+ echo "Doing distclean in afdo_tools"; \
+ (cd $(HOST_SUBDIR)/afdo_tools && \
+ $(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 afdo_tools
+
+.PHONY: maybe-maintainer-clean-afdo_tools maintainer-clean-afdo_tools
+maybe-maintainer-clean-afdo_tools:
+@if afdo_tools
+maybe-maintainer-clean-afdo_tools: maintainer-clean-afdo_tools
+
+maintainer-clean-afdo_tools:
+ @[ -f ./afdo_tools/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) ; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export
\1|"`; \
+ done; \
+ echo "Doing maintainer-clean in afdo_tools"; \
+ (cd $(HOST_SUBDIR)/afdo_tools && \
+ $(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 afdo_tools
+
+
+
.PHONY: configure-gnattools maybe-configure-gnattools
maybe-configure-gnattools:
@if gcc-bootstrap
@@ -65110,6 +66260,11 @@ stage1-start::
mkdir stage1-zlib; \
mv stage1-zlib zlib
@endif zlib
+@if afdo_tools
+ @cd $(HOST_SUBDIR); [ -d stage1-afdo_tools ] || \
+ mkdir stage1-afdo_tools; \
+ mv stage1-afdo_tools afdo_tools
+@endif afdo_tools
@if lto-plugin
@cd $(HOST_SUBDIR); [ -d stage1-lto-plugin ] || \
mkdir stage1-lto-plugin; \
@@ -65240,6 +66395,11 @@ stage1-end::
cd $(HOST_SUBDIR); mv zlib stage1-zlib; \
fi
@endif zlib
+@if afdo_tools
+ @if test -d $(HOST_SUBDIR)/afdo_tools; then \
+ cd $(HOST_SUBDIR); mv afdo_tools stage1-afdo_tools; \
+ fi
+@endif afdo_tools
@if lto-plugin
@if test -d $(HOST_SUBDIR)/lto-plugin; then \
cd $(HOST_SUBDIR); mv lto-plugin stage1-lto-plugin; \
@@ -65434,6 +66594,12 @@ stage2-start::
mv stage2-zlib zlib; \
mv stage1-zlib prev-zlib || test -f stage1-lean
@endif zlib
+@if afdo_tools
+ @cd $(HOST_SUBDIR); [ -d stage2-afdo_tools ] || \
+ mkdir stage2-afdo_tools; \
+ mv stage2-afdo_tools afdo_tools; \
+ mv stage1-afdo_tools prev-afdo_tools || test -f stage1-lean
+@endif afdo_tools
@if lto-plugin
@cd $(HOST_SUBDIR); [ -d stage2-lto-plugin ] || \
mkdir stage2-lto-plugin; \
@@ -65590,6 +66756,12 @@ stage2-end::
mv prev-zlib stage1-zlib; : ; \
fi
@endif zlib
+@if afdo_tools
+ @if test -d $(HOST_SUBDIR)/afdo_tools; then \
+ cd $(HOST_SUBDIR); mv afdo_tools stage2-afdo_tools; \
+ mv prev-afdo_tools stage1-afdo_tools; : ; \
+ fi
+@endif afdo_tools
@if lto-plugin
@if test -d $(HOST_SUBDIR)/lto-plugin; then \
cd $(HOST_SUBDIR); mv lto-plugin stage2-lto-plugin; \
@@ -65812,6 +66984,12 @@ stage3-start::
mv stage3-zlib zlib; \
mv stage2-zlib prev-zlib || test -f stage2-lean
@endif zlib
+@if afdo_tools
+ @cd $(HOST_SUBDIR); [ -d stage3-afdo_tools ] || \
+ mkdir stage3-afdo_tools; \
+ mv stage3-afdo_tools afdo_tools; \
+ mv stage2-afdo_tools prev-afdo_tools || test -f stage2-lean
+@endif afdo_tools
@if lto-plugin
@cd $(HOST_SUBDIR); [ -d stage3-lto-plugin ] || \
mkdir stage3-lto-plugin; \
@@ -65968,6 +67146,12 @@ stage3-end::
mv prev-zlib stage2-zlib; : ; \
fi
@endif zlib
+@if afdo_tools
+ @if test -d $(HOST_SUBDIR)/afdo_tools; then \
+ cd $(HOST_SUBDIR); mv afdo_tools stage3-afdo_tools; \
+ mv prev-afdo_tools stage2-afdo_tools; : ; \
+ fi
+@endif afdo_tools
@if lto-plugin
@if test -d $(HOST_SUBDIR)/lto-plugin; then \
cd $(HOST_SUBDIR); mv lto-plugin stage3-lto-plugin; \
@@ -66280,6 +67464,12 @@ stage4-start::
mv stage4-zlib zlib; \
mv stage3-zlib prev-zlib || test -f stage3-lean
@endif zlib
+@if afdo_tools
+ @cd $(HOST_SUBDIR); [ -d stage4-afdo_tools ] || \
+ mkdir stage4-afdo_tools; \
+ mv stage4-afdo_tools afdo_tools; \
+ mv stage3-afdo_tools prev-afdo_tools || test -f stage3-lean
+@endif afdo_tools
@if lto-plugin
@cd $(HOST_SUBDIR); [ -d stage4-lto-plugin ] || \
mkdir stage4-lto-plugin; \
@@ -66436,6 +67626,12 @@ stage4-end::
mv prev-zlib stage3-zlib; : ; \
fi
@endif zlib
+@if afdo_tools
+ @if test -d $(HOST_SUBDIR)/afdo_tools; then \
+ cd $(HOST_SUBDIR); mv afdo_tools stage4-afdo_tools; \
+ mv prev-afdo_tools stage3-afdo_tools; : ; \
+ fi
+@endif afdo_tools
@if lto-plugin
@if test -d $(HOST_SUBDIR)/lto-plugin; then \
cd $(HOST_SUBDIR); mv lto-plugin stage4-lto-plugin; \
@@ -66736,6 +67932,12 @@ stageprofile-start::
mv stageprofile-zlib zlib; \
mv stage1-zlib prev-zlib || test -f stage1-lean
@endif zlib
+@if afdo_tools
+ @cd $(HOST_SUBDIR); [ -d stageprofile-afdo_tools ] || \
+ mkdir stageprofile-afdo_tools; \
+ mv stageprofile-afdo_tools afdo_tools; \
+ mv stage1-afdo_tools prev-afdo_tools || test -f stage1-lean
+@endif afdo_tools
@if lto-plugin
@cd $(HOST_SUBDIR); [ -d stageprofile-lto-plugin ] || \
mkdir stageprofile-lto-plugin; \
@@ -66892,6 +68094,12 @@ stageprofile-end::
mv prev-zlib stage1-zlib; : ; \
fi
@endif zlib
+@if afdo_tools
+ @if test -d $(HOST_SUBDIR)/afdo_tools; then \
+ cd $(HOST_SUBDIR); mv afdo_tools stageprofile-afdo_tools; \
+ mv prev-afdo_tools stage1-afdo_tools; : ; \
+ fi
+@endif afdo_tools
@if lto-plugin
@if test -d $(HOST_SUBDIR)/lto-plugin; then \
cd $(HOST_SUBDIR); mv lto-plugin stageprofile-lto-plugin; \
@@ -67091,6 +68299,12 @@ stagetrain-start::
mv stagetrain-zlib zlib; \
mv stageprofile-zlib prev-zlib || test -f stageprofile-lean
@endif zlib
+@if afdo_tools
+ @cd $(HOST_SUBDIR); [ -d stagetrain-afdo_tools ] || \
+ mkdir stagetrain-afdo_tools; \
+ mv stagetrain-afdo_tools afdo_tools; \
+ mv stageprofile-afdo_tools prev-afdo_tools || test -f stageprofile-lean
+@endif afdo_tools
@if lto-plugin
@cd $(HOST_SUBDIR); [ -d stagetrain-lto-plugin ] || \
mkdir stagetrain-lto-plugin; \
@@ -67247,6 +68461,12 @@ stagetrain-end::
mv prev-zlib stageprofile-zlib; : ; \
fi
@endif zlib
+@if afdo_tools
+ @if test -d $(HOST_SUBDIR)/afdo_tools; then \
+ cd $(HOST_SUBDIR); mv afdo_tools stagetrain-afdo_tools; \
+ mv prev-afdo_tools stageprofile-afdo_tools; : ; \
+ fi
+@endif afdo_tools
@if lto-plugin
@if test -d $(HOST_SUBDIR)/lto-plugin; then \
cd $(HOST_SUBDIR); mv lto-plugin stagetrain-lto-plugin; \
@@ -67446,6 +68666,12 @@ stagefeedback-start::
mv stagefeedback-zlib zlib; \
mv stagetrain-zlib prev-zlib || test -f stagetrain-lean
@endif zlib
+@if afdo_tools
+ @cd $(HOST_SUBDIR); [ -d stagefeedback-afdo_tools ] || \
+ mkdir stagefeedback-afdo_tools; \
+ mv stagefeedback-afdo_tools afdo_tools; \
+ mv stagetrain-afdo_tools prev-afdo_tools || test -f stagetrain-lean
+@endif afdo_tools
@if lto-plugin
@cd $(HOST_SUBDIR); [ -d stagefeedback-lto-plugin ] || \
mkdir stagefeedback-lto-plugin; \
@@ -67602,6 +68828,12 @@ stagefeedback-end::
mv prev-zlib stagetrain-zlib; : ; \
fi
@endif zlib
+@if afdo_tools
+ @if test -d $(HOST_SUBDIR)/afdo_tools; then \
+ cd $(HOST_SUBDIR); mv afdo_tools stagefeedback-afdo_tools; \
+ mv prev-afdo_tools stagetrain-afdo_tools; : ; \
+ fi
+@endif afdo_tools
@if lto-plugin
@if test -d $(HOST_SUBDIR)/lto-plugin; then \
cd $(HOST_SUBDIR); mv lto-plugin stagefeedback-lto-plugin; \
@@ -67824,6 +69056,12 @@ stageautoprofile-start::
mv stageautoprofile-zlib zlib; \
mv stage1-zlib prev-zlib || test -f stage1-lean
@endif zlib
+@if afdo_tools
+ @cd $(HOST_SUBDIR); [ -d stageautoprofile-afdo_tools ] || \
+ mkdir stageautoprofile-afdo_tools; \
+ mv stageautoprofile-afdo_tools afdo_tools; \
+ mv stage1-afdo_tools prev-afdo_tools || test -f stage1-lean
+@endif afdo_tools
@if lto-plugin
@cd $(HOST_SUBDIR); [ -d stageautoprofile-lto-plugin ] || \
mkdir stageautoprofile-lto-plugin; \
@@ -67980,6 +69218,12 @@ stageautoprofile-end::
mv prev-zlib stage1-zlib; : ; \
fi
@endif zlib
+@if afdo_tools
+ @if test -d $(HOST_SUBDIR)/afdo_tools; then \
+ cd $(HOST_SUBDIR); mv afdo_tools stageautoprofile-afdo_tools; \
+ mv prev-afdo_tools stage1-afdo_tools; : ; \
+ fi
+@endif afdo_tools
@if lto-plugin
@if test -d $(HOST_SUBDIR)/lto-plugin; then \
cd $(HOST_SUBDIR); mv lto-plugin stageautoprofile-lto-plugin; \
@@ -68179,6 +69423,12 @@ stageautofeedback-start::
mv stageautofeedback-zlib zlib; \
mv stageautoprofile-zlib prev-zlib || test -f stageautoprofile-lean
@endif zlib
+@if afdo_tools
+ @cd $(HOST_SUBDIR); [ -d stageautofeedback-afdo_tools ] || \
+ mkdir stageautofeedback-afdo_tools; \
+ mv stageautofeedback-afdo_tools afdo_tools; \
+ mv stageautoprofile-afdo_tools prev-afdo_tools || test -f
stageautoprofile-lean
+@endif afdo_tools
@if lto-plugin
@cd $(HOST_SUBDIR); [ -d stageautofeedback-lto-plugin ] || \
mkdir stageautofeedback-lto-plugin; \
@@ -68335,6 +69585,12 @@ stageautofeedback-end::
mv prev-zlib stageautoprofile-zlib; : ; \
fi
@endif zlib
+@if afdo_tools
+ @if test -d $(HOST_SUBDIR)/afdo_tools; then \
+ cd $(HOST_SUBDIR); mv afdo_tools stageautofeedback-afdo_tools; \
+ mv prev-afdo_tools stageautoprofile-afdo_tools; : ; \
+ fi
+@endif afdo_tools
@if lto-plugin
@if test -d $(HOST_SUBDIR)/lto-plugin; then \
cd $(HOST_SUBDIR); mv lto-plugin stageautofeedback-lto-plugin; \
@@ -68631,6 +69887,16 @@ configure-stagetrain-gcc:
maybe-configure-stagetrain-gettext
configure-stagefeedback-gcc: maybe-configure-stagefeedback-gettext
configure-stageautoprofile-gcc: maybe-configure-stageautoprofile-gettext
configure-stageautofeedback-gcc: maybe-configure-stageautofeedback-gettext
+configure-afdo_tools: maybe-configure-gettext
+configure-stage1-afdo_tools: maybe-configure-stage1-gettext
+configure-stage2-afdo_tools: maybe-configure-stage2-gettext
+configure-stage3-afdo_tools: maybe-configure-stage3-gettext
+configure-stage4-afdo_tools: maybe-configure-stage4-gettext
+configure-stageprofile-afdo_tools: maybe-configure-stageprofile-gettext
+configure-stagetrain-afdo_tools: maybe-configure-stagetrain-gettext
+configure-stagefeedback-afdo_tools: maybe-configure-stagefeedback-gettext
+configure-stageautoprofile-afdo_tools: maybe-configure-stageautoprofile-gettext
+configure-stageautofeedback-afdo_tools:
maybe-configure-stageautofeedback-gettext
configure-gcc: maybe-all-gmp
configure-stage1-gcc: maybe-all-stage1-gmp
configure-stage2-gcc: maybe-all-stage2-gmp
@@ -68891,6 +70157,36 @@ all-stagetrain-gcc: all-stagetrain-libcody
all-stagefeedback-gcc: all-stagefeedback-libcody
all-stageautoprofile-gcc: all-stageautoprofile-libcody
all-stageautofeedback-gcc: all-stageautofeedback-libcody
+all-gcc: all-afdo_tools
+all-stage1-gcc: all-stage1-afdo_tools
+all-stage2-gcc: all-stage2-afdo_tools
+all-stage3-gcc: all-stage3-afdo_tools
+all-stage4-gcc: all-stage4-afdo_tools
+all-stageprofile-gcc: all-stageprofile-afdo_tools
+all-stagetrain-gcc: all-stagetrain-afdo_tools
+all-stagefeedback-gcc: all-stagefeedback-afdo_tools
+all-stageautoprofile-gcc: all-stageautoprofile-afdo_tools
+all-stageautofeedback-gcc: all-stageautofeedback-afdo_tools
+all-afdo_tools: configure-gcc
+all-stage1-afdo_tools: configure-stage1-gcc
+all-stage2-afdo_tools: configure-stage2-gcc
+all-stage3-afdo_tools: configure-stage3-gcc
+all-stage4-afdo_tools: configure-stage4-gcc
+all-stageprofile-afdo_tools: configure-stageprofile-gcc
+all-stagetrain-afdo_tools: configure-stagetrain-gcc
+all-stagefeedback-afdo_tools: configure-stagefeedback-gcc
+all-stageautoprofile-afdo_tools: configure-stageautoprofile-gcc
+all-stageautofeedback-afdo_tools: configure-stageautofeedback-gcc
+all-afdo_tools: maybe-all-gettext
+all-stage1-afdo_tools: maybe-all-stage1-gettext
+all-stage2-afdo_tools: maybe-all-stage2-gettext
+all-stage3-afdo_tools: maybe-all-stage3-gettext
+all-stage4-afdo_tools: maybe-all-stage4-gettext
+all-stageprofile-afdo_tools: maybe-all-stageprofile-gettext
+all-stagetrain-afdo_tools: maybe-all-stagetrain-gettext
+all-stagefeedback-afdo_tools: maybe-all-stagefeedback-gettext
+all-stageautoprofile-afdo_tools: maybe-all-stageautoprofile-gettext
+all-stageautofeedback-afdo_tools: maybe-all-stageautofeedback-gettext
all-gcc: all-libdecnumber
all-stage1-gcc: all-stage1-libdecnumber
all-stage2-gcc: all-stage2-libdecnumber
@@ -69951,6 +71247,10 @@ configure-target-libgfortran:
maybe-all-target-libbacktrace
configure-target-libgo: maybe-all-target-libbacktrace
@endunless gcc-bootstrap
+@if afdo_tools
+all-afdo_tools: all-libbacktrace
+@endif afdo_tools
+
# Dependencies for target modules on other target modules are
# described by lang_env_dependencies; the defaults apply to anything
# not mentioned there.
diff --git a/configure b/configure
index 07f62a81bb9..f7889f477c5 100755
--- a/configure
+++ b/configure
@@ -834,6 +834,7 @@ enable_libquadmath
enable_libquadmath_support
enable_libada
enable_libgm2
+enable_afdo_tools
enable_libga68
enable_libssp
enable_libstdcxx
@@ -1584,6 +1585,8 @@ Optional Features:
disable libquadmath support for Fortran
--enable-libada build libada directory
--enable-libgm2 build libgm2 directory
+ --enable-afdo_tools build afdo_tools directory (afdo_create, afdo_dump,
+ and afdo_merge)
--enable-libga68 build libga68 directory
--enable-libssp build libssp directory
--disable-libstdcxx do not build libstdc++-v3 directory
@@ -2908,6 +2911,7 @@ host_libs="gettext libiberty opcodes bfd readline tcl tk
itcl libgui zlib libbac
# "make check" in that particular order.
# If --enable-gold is used, "gold" may replace "ld".
host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim
gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1
gm2tools gotools c++tools"
+host_tools="$host_tools afdo_tools"
# these libraries are built for the target environment, and are built after
# the host libraries and the host tools (which may be a cross compiler)
@@ -3348,6 +3352,28 @@ if test "${ENABLE_LIBGM2}" != "yes" ; then
noconfigdirs="$noconfigdirs gm2tools"
fi
+# Check whether --enable-afdo_tools was given.
+if test "${enable_afdo_tools+set}" = set; then :
+ enableval=$enable_afdo_tools; ENABLE_AFDO_TOOLS=$enableval
+else
+ ENABLE_AFDO_TOOLS=no
+fi
+
+if test "${ENABLE_AFDO_TOOLS}" != "yes" ; then
+ noconfigdirs="$noconfigdirs afdo_tools"
+else
+ # afdo_tools uses Linux-only interfaces (perf_event_open, perf.data, mmap);
+ # it runs on the host and is independent of the configured GCC target.
+ case "${host}" in
+ *-*-linux-gnu*) ;;
+ *)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: afdo_tools requires a
GNU/Linux host; disabling it" >&5
+$as_echo "$as_me: WARNING: afdo_tools requires a GNU/Linux host; disabling it"
>&2;}
+ noconfigdirs="$noconfigdirs afdo_tools"
+ ;;
+ esac
+fi
+
# Check whether --enable-libga68 was given.
if test "${enable_libga68+set}" = set; then :
enableval=$enable_libga68; ENABLE_LIBGA68=$enableval
diff --git a/configure.ac b/configure.ac
index cb5c4271090..84c998a4d34 100644
--- a/configure.ac
+++ b/configure.ac
@@ -144,6 +144,7 @@ host_libs="gettext libiberty opcodes bfd readline tcl tk
itcl libgui zlib libbac
# "make check" in that particular order.
# If --enable-gold is used, "gold" may replace "ld".
host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim
gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1
gm2tools gotools c++tools"
+host_tools="$host_tools afdo_tools"
# these libraries are built for the target environment, and are built after
# the host libraries and the host tools (which may be a cross compiler)
@@ -526,6 +527,25 @@ if test "${ENABLE_LIBGM2}" != "yes" ; then
noconfigdirs="$noconfigdirs gm2tools"
fi
+AC_ARG_ENABLE(afdo_tools,
+[AS_HELP_STRING([--enable-afdo_tools],
+ [build afdo_tools directory (afdo_create, afdo_dump, and afdo_merge)])],
+ENABLE_AFDO_TOOLS=$enableval,
+ENABLE_AFDO_TOOLS=no)
+if test "${ENABLE_AFDO_TOOLS}" != "yes" ; then
+ noconfigdirs="$noconfigdirs afdo_tools"
+else
+ # afdo_tools uses Linux-only interfaces (perf_event_open, perf.data, mmap);
+ # it runs on the host and is independent of the configured GCC target.
+ case "${host}" in
+ *-*-linux-gnu*) ;;
+ *)
+ AC_MSG_WARN([afdo_tools requires a GNU/Linux host; disabling it])
+ noconfigdirs="$noconfigdirs afdo_tools"
+ ;;
+ esac
+fi
+
AC_ARG_ENABLE(libga68,
[AS_HELP_STRING([--enable-libga68], [build libga68 directory])],
ENABLE_LIBGA68=$enableval,
diff --git a/gcc/po/exgettext b/gcc/po/exgettext
index c5f71b4fe50..cafcac2c45f 100644
--- a/gcc/po/exgettext
+++ b/gcc/po/exgettext
@@ -74,6 +74,7 @@ pottmp=$pwd/$T/tmp.pot
# Locate files to scan. We scan the following directories:
# $srcdir
+# $srcdir/../afdo_tools/src
# $srcdir/c-family
# $srcdir/common
# $srcdir/common/config
@@ -97,7 +98,8 @@ echo "scanning for keywords, %e and %n strings..." >&2
( cd $srcdir
lang_subdirs=`echo */config-lang.in */*/config-lang.in | sed -e
's|/config-lang\.in||g'`
- { for dir in "" c-family/ common/ common/config/ common/config/*/ \
+ { for dir in "" ../afdo_tools/src/ c-family/ common/ common/config/ \
+ common/config/*/ \
config/ config/*/ \
`find $lang_subdirs -type d -print | sort | sed -e 's|$|/|'`
do for glob in '*.c' '*.cc' '*.h' '*.def'
--
2.34.1