1 Star 0 Fork 117

yhl123123/gcc

forked from src-openEuler/gcc 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0031-AutoBOLT-Enable-BOLT-linker-plugin-on-aarch64-3-3.patch 74.59 KB
一键复制 编辑 原始数据 按行查看 历史
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945
From dd17ea263e762209dada859c12d13ed9fb468459 Mon Sep 17 00:00:00 2001
From: liyancheng <412998149@qq.com>
Date: Mon, 14 Feb 2022 15:32:25 +0800
Subject: [PATCH 31/32] [AutoBOLT] Enable BOLT linker plugin on aarch64 3/3
Enable the BOLT linker plugin on aarch64 when configured
with --enable-bolt.
---
Makefile.def | 10 +
Makefile.in | 1292 ++++++++++++++++++++++++++++++++++++++++++++++
configure | 27 +-
configure.ac | 22 +-
gcc/config.host | 7 +-
gcc/config.in | 7 +
gcc/configure | 10 +-
gcc/configure.ac | 4 +
gcc/gcc.c | 22 +
9 files changed, 1396 insertions(+), 5 deletions(-)
mode change 100644 => 100755 configure
mode change 100644 => 100755 gcc/configure
diff --git a/Makefile.def b/Makefile.def
index 36fd26b03..5dda3c228 100644
--- a/Makefile.def
+++ b/Makefile.def
@@ -129,6 +129,9 @@ 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@';
extra_make_flags='@extra_linker_plugin_flags@'; };
+host_modules= { module= bolt-plugin; bootstrap=true;
+ extra_configure_flags='--enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@';
+ extra_make_flags='@extra_linker_plugin_flags@'; };
host_modules= { module= libcc1; extra_configure_flags=--enable-shared; };
host_modules= { module= gotools; };
host_modules= { module= libctf; no_install=true; no_check=true;
@@ -327,6 +330,7 @@ dependencies = { module=configure-gcc; on=all-mpfr; };
dependencies = { module=configure-gcc; on=all-mpc; };
dependencies = { module=configure-gcc; on=all-isl; };
dependencies = { module=configure-gcc; on=all-lto-plugin; };
+dependencies = { module=configure-gcc; on=all-bolt-plugin; };
dependencies = { module=configure-gcc; on=all-binutils; };
dependencies = { module=configure-gcc; on=all-gas; };
dependencies = { module=configure-gcc; on=all-ld; };
@@ -351,6 +355,7 @@ dependencies = { module=all-gcc; on=all-libdecnumber; hard=true; };
dependencies = { module=all-gcc; on=all-libiberty; };
dependencies = { module=all-gcc; on=all-fixincludes; };
dependencies = { module=all-gcc; on=all-lto-plugin; };
+dependencies = { module=all-gcc; on=all-bolt-plugin; };
dependencies = { module=all-gcc; on=all-libiconv; };
dependencies = { module=info-gcc; on=all-build-libiberty; };
dependencies = { module=dvi-gcc; on=all-build-libiberty; };
@@ -358,8 +363,10 @@ dependencies = { module=pdf-gcc; on=all-build-libiberty; };
dependencies = { module=html-gcc; on=all-build-libiberty; };
dependencies = { module=install-gcc ; on=install-fixincludes; };
dependencies = { module=install-gcc ; on=install-lto-plugin; };
+dependencies = { module=install-gcc ; on=install-bolt-plugin; };
dependencies = { module=install-strip-gcc ; on=install-strip-fixincludes; };
dependencies = { module=install-strip-gcc ; on=install-strip-lto-plugin; };
+dependencies = { module=install-strip-gcc ; on=install-strip-bolt-plugin; };
dependencies = { module=configure-libcpp; on=configure-libiberty; hard=true; };
dependencies = { module=configure-libcpp; on=configure-intl; };
@@ -378,6 +385,9 @@ dependencies = { module=all-gnattools; on=all-target-libstdc++-v3; };
dependencies = { module=all-lto-plugin; on=all-libiberty; };
dependencies = { module=all-lto-plugin; on=all-libiberty-linker-plugin; };
+dependencies = { module=all-bolt-plugin; on=all-libiberty; };
+dependencies = { module=all-bolt-plugin; on=all-libiberty-linker-plugin; };
+
dependencies = { module=configure-libcc1; on=configure-gcc; };
dependencies = { module=all-libcc1; on=all-gcc; };
diff --git a/Makefile.in b/Makefile.in
index 36e369df6..cfdca3d18 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1039,6 +1039,7 @@ configure-host: \
maybe-configure-utils \
maybe-configure-gnattools \
maybe-configure-lto-plugin \
+ maybe-configure-bolt-plugin \
maybe-configure-libcc1 \
maybe-configure-gotools \
maybe-configure-libctf
@@ -1197,6 +1198,9 @@ all-host: maybe-all-gnattools
@if lto-plugin-no-bootstrap
all-host: maybe-all-lto-plugin
@endif lto-plugin-no-bootstrap
+@if bolt-plugin-no-bootstrap
+all-host: maybe-all-bolt-plugin
+@endif bolt-plugin-no-bootstrap
all-host: maybe-all-libcc1
all-host: maybe-all-gotools
@if libctf-no-bootstrap
@@ -1303,6 +1307,7 @@ info-host: maybe-info-libtermcap
info-host: maybe-info-utils
info-host: maybe-info-gnattools
info-host: maybe-info-lto-plugin
+info-host: maybe-info-bolt-plugin
info-host: maybe-info-libcc1
info-host: maybe-info-gotools
info-host: maybe-info-libctf
@@ -1392,6 +1397,7 @@ dvi-host: maybe-dvi-libtermcap
dvi-host: maybe-dvi-utils
dvi-host: maybe-dvi-gnattools
dvi-host: maybe-dvi-lto-plugin
+dvi-host: maybe-dvi-bolt-plugin
dvi-host: maybe-dvi-libcc1
dvi-host: maybe-dvi-gotools
dvi-host: maybe-dvi-libctf
@@ -1481,6 +1487,7 @@ pdf-host: maybe-pdf-libtermcap
pdf-host: maybe-pdf-utils
pdf-host: maybe-pdf-gnattools
pdf-host: maybe-pdf-lto-plugin
+pdf-host: maybe-pdf-bolt-plugin
pdf-host: maybe-pdf-libcc1
pdf-host: maybe-pdf-gotools
pdf-host: maybe-pdf-libctf
@@ -1570,6 +1577,7 @@ html-host: maybe-html-libtermcap
html-host: maybe-html-utils
html-host: maybe-html-gnattools
html-host: maybe-html-lto-plugin
+html-host: maybe-html-bolt-plugin
html-host: maybe-html-libcc1
html-host: maybe-html-gotools
html-host: maybe-html-libctf
@@ -1659,6 +1667,7 @@ TAGS-host: maybe-TAGS-libtermcap
TAGS-host: maybe-TAGS-utils
TAGS-host: maybe-TAGS-gnattools
TAGS-host: maybe-TAGS-lto-plugin
+TAGS-host: maybe-TAGS-bolt-plugin
TAGS-host: maybe-TAGS-libcc1
TAGS-host: maybe-TAGS-gotools
TAGS-host: maybe-TAGS-libctf
@@ -1748,6 +1757,7 @@ install-info-host: maybe-install-info-libtermcap
install-info-host: maybe-install-info-utils
install-info-host: maybe-install-info-gnattools
install-info-host: maybe-install-info-lto-plugin
+install-info-host: maybe-install-info-bolt-plugin
install-info-host: maybe-install-info-libcc1
install-info-host: maybe-install-info-gotools
install-info-host: maybe-install-info-libctf
@@ -1837,6 +1847,7 @@ install-pdf-host: maybe-install-pdf-libtermcap
install-pdf-host: maybe-install-pdf-utils
install-pdf-host: maybe-install-pdf-gnattools
install-pdf-host: maybe-install-pdf-lto-plugin
+install-pdf-host: maybe-install-pdf-bolt-plugin
install-pdf-host: maybe-install-pdf-libcc1
install-pdf-host: maybe-install-pdf-gotools
install-pdf-host: maybe-install-pdf-libctf
@@ -1926,6 +1937,7 @@ install-html-host: maybe-install-html-libtermcap
install-html-host: maybe-install-html-utils
install-html-host: maybe-install-html-gnattools
install-html-host: maybe-install-html-lto-plugin
+install-html-host: maybe-install-html-bolt-plugin
install-html-host: maybe-install-html-libcc1
install-html-host: maybe-install-html-gotools
install-html-host: maybe-install-html-libctf
@@ -2015,6 +2027,7 @@ installcheck-host: maybe-installcheck-libtermcap
installcheck-host: maybe-installcheck-utils
installcheck-host: maybe-installcheck-gnattools
installcheck-host: maybe-installcheck-lto-plugin
+installcheck-host: maybe-installcheck-bolt-plugin
installcheck-host: maybe-installcheck-libcc1
installcheck-host: maybe-installcheck-gotools
installcheck-host: maybe-installcheck-libctf
@@ -2104,6 +2117,7 @@ mostlyclean-host: maybe-mostlyclean-libtermcap
mostlyclean-host: maybe-mostlyclean-utils
mostlyclean-host: maybe-mostlyclean-gnattools
mostlyclean-host: maybe-mostlyclean-lto-plugin
+mostlyclean-host: maybe-mostlyclean-bolt-plugin
mostlyclean-host: maybe-mostlyclean-libcc1
mostlyclean-host: maybe-mostlyclean-gotools
mostlyclean-host: maybe-mostlyclean-libctf
@@ -2193,6 +2207,7 @@ clean-host: maybe-clean-libtermcap
clean-host: maybe-clean-utils
clean-host: maybe-clean-gnattools
clean-host: maybe-clean-lto-plugin
+clean-host: maybe-clean-bolt-plugin
clean-host: maybe-clean-libcc1
clean-host: maybe-clean-gotools
clean-host: maybe-clean-libctf
@@ -2282,6 +2297,7 @@ distclean-host: maybe-distclean-libtermcap
distclean-host: maybe-distclean-utils
distclean-host: maybe-distclean-gnattools
distclean-host: maybe-distclean-lto-plugin
+distclean-host: maybe-distclean-bolt-plugin
distclean-host: maybe-distclean-libcc1
distclean-host: maybe-distclean-gotools
distclean-host: maybe-distclean-libctf
@@ -2371,6 +2387,7 @@ maintainer-clean-host: maybe-maintainer-clean-libtermcap
maintainer-clean-host: maybe-maintainer-clean-utils
maintainer-clean-host: maybe-maintainer-clean-gnattools
maintainer-clean-host: maybe-maintainer-clean-lto-plugin
+maintainer-clean-host: maybe-maintainer-clean-bolt-plugin
maintainer-clean-host: maybe-maintainer-clean-libcc1
maintainer-clean-host: maybe-maintainer-clean-gotools
maintainer-clean-host: maybe-maintainer-clean-libctf
@@ -2516,6 +2533,7 @@ check-host: \
maybe-check-utils \
maybe-check-gnattools \
maybe-check-lto-plugin \
+ maybe-check-bolt-plugin \
maybe-check-libcc1 \
maybe-check-gotools \
maybe-check-libctf
@@ -2652,6 +2670,7 @@ install-host-nogcc: \
maybe-install-utils \
maybe-install-gnattools \
maybe-install-lto-plugin \
+ maybe-install-bolt-plugin \
maybe-install-libcc1 \
maybe-install-gotools \
maybe-install-libctf
@@ -2705,6 +2724,7 @@ install-host: \
maybe-install-utils \
maybe-install-gnattools \
maybe-install-lto-plugin \
+ maybe-install-bolt-plugin \
maybe-install-libcc1 \
maybe-install-gotools \
maybe-install-libctf
@@ -2814,6 +2834,7 @@ install-strip-host: \
maybe-install-strip-utils \
maybe-install-strip-gnattools \
maybe-install-strip-lto-plugin \
+ maybe-install-strip-bolt-plugin \
maybe-install-strip-libcc1 \
maybe-install-strip-gotools \
maybe-install-strip-libctf
@@ -38628,6 +38649,1129 @@ maintainer-clean-lto-plugin:
+.PHONY: configure-bolt-plugin maybe-configure-bolt-plugin
+maybe-configure-bolt-plugin:
+@if gcc-bootstrap
+configure-bolt-plugin: stage_current
+@endif gcc-bootstrap
+@if bolt-plugin
+maybe-configure-bolt-plugin: configure-bolt-plugin
+configure-bolt-plugin:
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ test ! -f $(HOST_SUBDIR)/bolt-plugin/Makefile || exit 0; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bolt-plugin; \
+ $(HOST_EXPORTS) \
+ echo Configuring in $(HOST_SUBDIR)/bolt-plugin; \
+ cd "$(HOST_SUBDIR)/bolt-plugin" || exit 1; \
+ case $(srcdir) in \
+ /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
+ *) topdir=`echo $(HOST_SUBDIR)/bolt-plugin/ | \
+ sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
+ esac; \
+ module_srcdir=bolt-plugin; \
+ $(SHELL) \
+ $$s/$$module_srcdir/configure \
+ --srcdir=$${topdir}/$$module_srcdir \
+ $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
+ --target=${target_alias} --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ \
+ || exit 1
+@endif bolt-plugin
+
+
+
+.PHONY: configure-stage1-bolt-plugin maybe-configure-stage1-bolt-plugin
+maybe-configure-stage1-bolt-plugin:
+@if bolt-plugin-bootstrap
+maybe-configure-stage1-bolt-plugin: configure-stage1-bolt-plugin
+configure-stage1-bolt-plugin:
+ @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
+ @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bolt-plugin
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGE1_TFLAGS)"; \
+ test ! -f $(HOST_SUBDIR)/bolt-plugin/Makefile || exit 0; \
+ $(HOST_EXPORTS) \
+ CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
+ CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
+ LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
+ echo Configuring stage 1 in $(HOST_SUBDIR)/bolt-plugin; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bolt-plugin; \
+ cd $(HOST_SUBDIR)/bolt-plugin || exit 1; \
+ case $(srcdir) in \
+ /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
+ *) topdir=`echo $(HOST_SUBDIR)/bolt-plugin/ | \
+ sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
+ esac; \
+ module_srcdir=bolt-plugin; \
+ $(SHELL) $$s/$$module_srcdir/configure \
+ --srcdir=$${topdir}/$$module_srcdir \
+ $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
+ --target=${target_alias} \
+ \
+ $(STAGE1_CONFIGURE_FLAGS) \
+ --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
+@endif bolt-plugin-bootstrap
+
+.PHONY: configure-stage2-bolt-plugin maybe-configure-stage2-bolt-plugin
+maybe-configure-stage2-bolt-plugin:
+@if bolt-plugin-bootstrap
+maybe-configure-stage2-bolt-plugin: configure-stage2-bolt-plugin
+configure-stage2-bolt-plugin:
+ @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
+ @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bolt-plugin
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGE2_TFLAGS)"; \
+ test ! -f $(HOST_SUBDIR)/bolt-plugin/Makefile || exit 0; \
+ $(HOST_EXPORTS) \
+ $(POSTSTAGE1_HOST_EXPORTS) \
+ CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
+ CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
+ LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
+ echo Configuring stage 2 in $(HOST_SUBDIR)/bolt-plugin; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bolt-plugin; \
+ cd $(HOST_SUBDIR)/bolt-plugin || exit 1; \
+ case $(srcdir) in \
+ /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
+ *) topdir=`echo $(HOST_SUBDIR)/bolt-plugin/ | \
+ sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
+ esac; \
+ module_srcdir=bolt-plugin; \
+ $(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) \
+ --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
+@endif bolt-plugin-bootstrap
+
+.PHONY: configure-stage3-bolt-plugin maybe-configure-stage3-bolt-plugin
+maybe-configure-stage3-bolt-plugin:
+@if bolt-plugin-bootstrap
+maybe-configure-stage3-bolt-plugin: configure-stage3-bolt-plugin
+configure-stage3-bolt-plugin:
+ @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
+ @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bolt-plugin
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGE3_TFLAGS)"; \
+ test ! -f $(HOST_SUBDIR)/bolt-plugin/Makefile || exit 0; \
+ $(HOST_EXPORTS) \
+ $(POSTSTAGE1_HOST_EXPORTS) \
+ CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
+ CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
+ LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
+ echo Configuring stage 3 in $(HOST_SUBDIR)/bolt-plugin; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bolt-plugin; \
+ cd $(HOST_SUBDIR)/bolt-plugin || exit 1; \
+ case $(srcdir) in \
+ /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
+ *) topdir=`echo $(HOST_SUBDIR)/bolt-plugin/ | \
+ sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
+ esac; \
+ module_srcdir=bolt-plugin; \
+ $(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) \
+ --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
+@endif bolt-plugin-bootstrap
+
+.PHONY: configure-stage4-bolt-plugin maybe-configure-stage4-bolt-plugin
+maybe-configure-stage4-bolt-plugin:
+@if bolt-plugin-bootstrap
+maybe-configure-stage4-bolt-plugin: configure-stage4-bolt-plugin
+configure-stage4-bolt-plugin:
+ @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
+ @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bolt-plugin
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGE4_TFLAGS)"; \
+ test ! -f $(HOST_SUBDIR)/bolt-plugin/Makefile || exit 0; \
+ $(HOST_EXPORTS) \
+ $(POSTSTAGE1_HOST_EXPORTS) \
+ CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
+ CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
+ LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
+ echo Configuring stage 4 in $(HOST_SUBDIR)/bolt-plugin; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bolt-plugin; \
+ cd $(HOST_SUBDIR)/bolt-plugin || exit 1; \
+ case $(srcdir) in \
+ /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
+ *) topdir=`echo $(HOST_SUBDIR)/bolt-plugin/ | \
+ sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
+ esac; \
+ module_srcdir=bolt-plugin; \
+ $(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) \
+ --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
+@endif bolt-plugin-bootstrap
+
+.PHONY: configure-stageprofile-bolt-plugin maybe-configure-stageprofile-bolt-plugin
+maybe-configure-stageprofile-bolt-plugin:
+@if bolt-plugin-bootstrap
+maybe-configure-stageprofile-bolt-plugin: configure-stageprofile-bolt-plugin
+configure-stageprofile-bolt-plugin:
+ @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
+ @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bolt-plugin
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGEprofile_TFLAGS)"; \
+ test ! -f $(HOST_SUBDIR)/bolt-plugin/Makefile || exit 0; \
+ $(HOST_EXPORTS) \
+ $(POSTSTAGE1_HOST_EXPORTS) \
+ CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
+ CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
+ LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
+ echo Configuring stage profile in $(HOST_SUBDIR)/bolt-plugin; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bolt-plugin; \
+ cd $(HOST_SUBDIR)/bolt-plugin || exit 1; \
+ case $(srcdir) in \
+ /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
+ *) topdir=`echo $(HOST_SUBDIR)/bolt-plugin/ | \
+ sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
+ esac; \
+ module_srcdir=bolt-plugin; \
+ $(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) \
+ --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
+@endif bolt-plugin-bootstrap
+
+.PHONY: configure-stagetrain-bolt-plugin maybe-configure-stagetrain-bolt-plugin
+maybe-configure-stagetrain-bolt-plugin:
+@if bolt-plugin-bootstrap
+maybe-configure-stagetrain-bolt-plugin: configure-stagetrain-bolt-plugin
+configure-stagetrain-bolt-plugin:
+ @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
+ @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bolt-plugin
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGEtrain_TFLAGS)"; \
+ test ! -f $(HOST_SUBDIR)/bolt-plugin/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)/bolt-plugin; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bolt-plugin; \
+ cd $(HOST_SUBDIR)/bolt-plugin || exit 1; \
+ case $(srcdir) in \
+ /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
+ *) topdir=`echo $(HOST_SUBDIR)/bolt-plugin/ | \
+ sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
+ esac; \
+ module_srcdir=bolt-plugin; \
+ $(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) \
+ --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
+@endif bolt-plugin-bootstrap
+
+.PHONY: configure-stagefeedback-bolt-plugin maybe-configure-stagefeedback-bolt-plugin
+maybe-configure-stagefeedback-bolt-plugin:
+@if bolt-plugin-bootstrap
+maybe-configure-stagefeedback-bolt-plugin: configure-stagefeedback-bolt-plugin
+configure-stagefeedback-bolt-plugin:
+ @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
+ @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bolt-plugin
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGEfeedback_TFLAGS)"; \
+ test ! -f $(HOST_SUBDIR)/bolt-plugin/Makefile || exit 0; \
+ $(HOST_EXPORTS) \
+ $(POSTSTAGE1_HOST_EXPORTS) \
+ CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
+ CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
+ LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
+ echo Configuring stage feedback in $(HOST_SUBDIR)/bolt-plugin; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bolt-plugin; \
+ cd $(HOST_SUBDIR)/bolt-plugin || exit 1; \
+ case $(srcdir) in \
+ /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
+ *) topdir=`echo $(HOST_SUBDIR)/bolt-plugin/ | \
+ sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
+ esac; \
+ module_srcdir=bolt-plugin; \
+ $(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) \
+ --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
+@endif bolt-plugin-bootstrap
+
+.PHONY: configure-stageautoprofile-bolt-plugin maybe-configure-stageautoprofile-bolt-plugin
+maybe-configure-stageautoprofile-bolt-plugin:
+@if bolt-plugin-bootstrap
+maybe-configure-stageautoprofile-bolt-plugin: configure-stageautoprofile-bolt-plugin
+configure-stageautoprofile-bolt-plugin:
+ @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
+ @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bolt-plugin
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
+ test ! -f $(HOST_SUBDIR)/bolt-plugin/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)/bolt-plugin; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bolt-plugin; \
+ cd $(HOST_SUBDIR)/bolt-plugin || exit 1; \
+ case $(srcdir) in \
+ /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
+ *) topdir=`echo $(HOST_SUBDIR)/bolt-plugin/ | \
+ sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
+ esac; \
+ module_srcdir=bolt-plugin; \
+ $(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) \
+ --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
+@endif bolt-plugin-bootstrap
+
+.PHONY: configure-stageautofeedback-bolt-plugin maybe-configure-stageautofeedback-bolt-plugin
+maybe-configure-stageautofeedback-bolt-plugin:
+@if bolt-plugin-bootstrap
+maybe-configure-stageautofeedback-bolt-plugin: configure-stageautofeedback-bolt-plugin
+configure-stageautofeedback-bolt-plugin:
+ @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
+ @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bolt-plugin
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
+ test ! -f $(HOST_SUBDIR)/bolt-plugin/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)/bolt-plugin; \
+ $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bolt-plugin; \
+ cd $(HOST_SUBDIR)/bolt-plugin || exit 1; \
+ case $(srcdir) in \
+ /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
+ *) topdir=`echo $(HOST_SUBDIR)/bolt-plugin/ | \
+ sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
+ esac; \
+ module_srcdir=bolt-plugin; \
+ $(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) \
+ --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
+@endif bolt-plugin-bootstrap
+
+
+
+
+
+.PHONY: all-bolt-plugin maybe-all-bolt-plugin
+maybe-all-bolt-plugin:
+@if gcc-bootstrap
+all-bolt-plugin: stage_current
+@endif gcc-bootstrap
+@if bolt-plugin
+TARGET-bolt-plugin=all
+maybe-all-bolt-plugin: all-bolt-plugin
+all-bolt-plugin: configure-bolt-plugin
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ (cd $(HOST_SUBDIR)/bolt-plugin && \
+ $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
+ $(TARGET-bolt-plugin))
+@endif bolt-plugin
+
+
+
+.PHONY: all-stage1-bolt-plugin maybe-all-stage1-bolt-plugin
+.PHONY: clean-stage1-bolt-plugin maybe-clean-stage1-bolt-plugin
+maybe-all-stage1-bolt-plugin:
+maybe-clean-stage1-bolt-plugin:
+@if bolt-plugin-bootstrap
+maybe-all-stage1-bolt-plugin: all-stage1-bolt-plugin
+all-stage1: all-stage1-bolt-plugin
+TARGET-stage1-bolt-plugin = $(TARGET-bolt-plugin)
+all-stage1-bolt-plugin: configure-stage1-bolt-plugin
+ @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGE1_TFLAGS)"; \
+ $(HOST_EXPORTS) \
+ cd $(HOST_SUBDIR)/bolt-plugin && \
+ \
+ $(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) @extra_linker_plugin_flags@ \
+ TFLAGS="$(STAGE1_TFLAGS)" \
+ $(TARGET-stage1-bolt-plugin)
+
+maybe-clean-stage1-bolt-plugin: clean-stage1-bolt-plugin
+clean-stage1: clean-stage1-bolt-plugin
+clean-stage1-bolt-plugin:
+ @if [ $(current_stage) = stage1 ]; then \
+ [ -f $(HOST_SUBDIR)/bolt-plugin/Makefile ] || exit 0; \
+ else \
+ [ -f $(HOST_SUBDIR)/stage1-bolt-plugin/Makefile ] || exit 0; \
+ $(MAKE) stage1-start; \
+ fi; \
+ cd $(HOST_SUBDIR)/bolt-plugin && \
+ $(MAKE) $(EXTRA_HOST_FLAGS) \
+ $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
+@endif bolt-plugin-bootstrap
+
+
+.PHONY: all-stage2-bolt-plugin maybe-all-stage2-bolt-plugin
+.PHONY: clean-stage2-bolt-plugin maybe-clean-stage2-bolt-plugin
+maybe-all-stage2-bolt-plugin:
+maybe-clean-stage2-bolt-plugin:
+@if bolt-plugin-bootstrap
+maybe-all-stage2-bolt-plugin: all-stage2-bolt-plugin
+all-stage2: all-stage2-bolt-plugin
+TARGET-stage2-bolt-plugin = $(TARGET-bolt-plugin)
+all-stage2-bolt-plugin: configure-stage2-bolt-plugin
+ @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGE2_TFLAGS)"; \
+ $(HOST_EXPORTS) \
+ $(POSTSTAGE1_HOST_EXPORTS) \
+ cd $(HOST_SUBDIR)/bolt-plugin && \
+ \
+ $(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) @extra_linker_plugin_flags@ \
+ TFLAGS="$(STAGE2_TFLAGS)" \
+ $(TARGET-stage2-bolt-plugin)
+
+maybe-clean-stage2-bolt-plugin: clean-stage2-bolt-plugin
+clean-stage2: clean-stage2-bolt-plugin
+clean-stage2-bolt-plugin:
+ @if [ $(current_stage) = stage2 ]; then \
+ [ -f $(HOST_SUBDIR)/bolt-plugin/Makefile ] || exit 0; \
+ else \
+ [ -f $(HOST_SUBDIR)/stage2-bolt-plugin/Makefile ] || exit 0; \
+ $(MAKE) stage2-start; \
+ fi; \
+ cd $(HOST_SUBDIR)/bolt-plugin && \
+ $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
+@endif bolt-plugin-bootstrap
+
+
+.PHONY: all-stage3-bolt-plugin maybe-all-stage3-bolt-plugin
+.PHONY: clean-stage3-bolt-plugin maybe-clean-stage3-bolt-plugin
+maybe-all-stage3-bolt-plugin:
+maybe-clean-stage3-bolt-plugin:
+@if bolt-plugin-bootstrap
+maybe-all-stage3-bolt-plugin: all-stage3-bolt-plugin
+all-stage3: all-stage3-bolt-plugin
+TARGET-stage3-bolt-plugin = $(TARGET-bolt-plugin)
+all-stage3-bolt-plugin: configure-stage3-bolt-plugin
+ @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGE3_TFLAGS)"; \
+ $(HOST_EXPORTS) \
+ $(POSTSTAGE1_HOST_EXPORTS) \
+ cd $(HOST_SUBDIR)/bolt-plugin && \
+ \
+ $(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) @extra_linker_plugin_flags@ \
+ TFLAGS="$(STAGE3_TFLAGS)" \
+ $(TARGET-stage3-bolt-plugin)
+
+maybe-clean-stage3-bolt-plugin: clean-stage3-bolt-plugin
+clean-stage3: clean-stage3-bolt-plugin
+clean-stage3-bolt-plugin:
+ @if [ $(current_stage) = stage3 ]; then \
+ [ -f $(HOST_SUBDIR)/bolt-plugin/Makefile ] || exit 0; \
+ else \
+ [ -f $(HOST_SUBDIR)/stage3-bolt-plugin/Makefile ] || exit 0; \
+ $(MAKE) stage3-start; \
+ fi; \
+ cd $(HOST_SUBDIR)/bolt-plugin && \
+ $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
+@endif bolt-plugin-bootstrap
+
+
+.PHONY: all-stage4-bolt-plugin maybe-all-stage4-bolt-plugin
+.PHONY: clean-stage4-bolt-plugin maybe-clean-stage4-bolt-plugin
+maybe-all-stage4-bolt-plugin:
+maybe-clean-stage4-bolt-plugin:
+@if bolt-plugin-bootstrap
+maybe-all-stage4-bolt-plugin: all-stage4-bolt-plugin
+all-stage4: all-stage4-bolt-plugin
+TARGET-stage4-bolt-plugin = $(TARGET-bolt-plugin)
+all-stage4-bolt-plugin: configure-stage4-bolt-plugin
+ @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGE4_TFLAGS)"; \
+ $(HOST_EXPORTS) \
+ $(POSTSTAGE1_HOST_EXPORTS) \
+ cd $(HOST_SUBDIR)/bolt-plugin && \
+ \
+ $(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) @extra_linker_plugin_flags@ \
+ TFLAGS="$(STAGE4_TFLAGS)" \
+ $(TARGET-stage4-bolt-plugin)
+
+maybe-clean-stage4-bolt-plugin: clean-stage4-bolt-plugin
+clean-stage4: clean-stage4-bolt-plugin
+clean-stage4-bolt-plugin:
+ @if [ $(current_stage) = stage4 ]; then \
+ [ -f $(HOST_SUBDIR)/bolt-plugin/Makefile ] || exit 0; \
+ else \
+ [ -f $(HOST_SUBDIR)/stage4-bolt-plugin/Makefile ] || exit 0; \
+ $(MAKE) stage4-start; \
+ fi; \
+ cd $(HOST_SUBDIR)/bolt-plugin && \
+ $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
+@endif bolt-plugin-bootstrap
+
+
+.PHONY: all-stageprofile-bolt-plugin maybe-all-stageprofile-bolt-plugin
+.PHONY: clean-stageprofile-bolt-plugin maybe-clean-stageprofile-bolt-plugin
+maybe-all-stageprofile-bolt-plugin:
+maybe-clean-stageprofile-bolt-plugin:
+@if bolt-plugin-bootstrap
+maybe-all-stageprofile-bolt-plugin: all-stageprofile-bolt-plugin
+all-stageprofile: all-stageprofile-bolt-plugin
+TARGET-stageprofile-bolt-plugin = $(TARGET-bolt-plugin)
+all-stageprofile-bolt-plugin: configure-stageprofile-bolt-plugin
+ @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGEprofile_TFLAGS)"; \
+ $(HOST_EXPORTS) \
+ $(POSTSTAGE1_HOST_EXPORTS) \
+ cd $(HOST_SUBDIR)/bolt-plugin && \
+ \
+ $(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) @extra_linker_plugin_flags@ \
+ TFLAGS="$(STAGEprofile_TFLAGS)" \
+ $(TARGET-stageprofile-bolt-plugin)
+
+maybe-clean-stageprofile-bolt-plugin: clean-stageprofile-bolt-plugin
+clean-stageprofile: clean-stageprofile-bolt-plugin
+clean-stageprofile-bolt-plugin:
+ @if [ $(current_stage) = stageprofile ]; then \
+ [ -f $(HOST_SUBDIR)/bolt-plugin/Makefile ] || exit 0; \
+ else \
+ [ -f $(HOST_SUBDIR)/stageprofile-bolt-plugin/Makefile ] || exit 0; \
+ $(MAKE) stageprofile-start; \
+ fi; \
+ cd $(HOST_SUBDIR)/bolt-plugin && \
+ $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
+@endif bolt-plugin-bootstrap
+
+
+.PHONY: all-stagetrain-bolt-plugin maybe-all-stagetrain-bolt-plugin
+.PHONY: clean-stagetrain-bolt-plugin maybe-clean-stagetrain-bolt-plugin
+maybe-all-stagetrain-bolt-plugin:
+maybe-clean-stagetrain-bolt-plugin:
+@if bolt-plugin-bootstrap
+maybe-all-stagetrain-bolt-plugin: all-stagetrain-bolt-plugin
+all-stagetrain: all-stagetrain-bolt-plugin
+TARGET-stagetrain-bolt-plugin = $(TARGET-bolt-plugin)
+all-stagetrain-bolt-plugin: configure-stagetrain-bolt-plugin
+ @[ $(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)/bolt-plugin && \
+ \
+ $(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) @extra_linker_plugin_flags@ \
+ TFLAGS="$(STAGEtrain_TFLAGS)" \
+ $(TARGET-stagetrain-bolt-plugin)
+
+maybe-clean-stagetrain-bolt-plugin: clean-stagetrain-bolt-plugin
+clean-stagetrain: clean-stagetrain-bolt-plugin
+clean-stagetrain-bolt-plugin:
+ @if [ $(current_stage) = stagetrain ]; then \
+ [ -f $(HOST_SUBDIR)/bolt-plugin/Makefile ] || exit 0; \
+ else \
+ [ -f $(HOST_SUBDIR)/stagetrain-bolt-plugin/Makefile ] || exit 0; \
+ $(MAKE) stagetrain-start; \
+ fi; \
+ cd $(HOST_SUBDIR)/bolt-plugin && \
+ $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
+@endif bolt-plugin-bootstrap
+
+
+.PHONY: all-stagefeedback-bolt-plugin maybe-all-stagefeedback-bolt-plugin
+.PHONY: clean-stagefeedback-bolt-plugin maybe-clean-stagefeedback-bolt-plugin
+maybe-all-stagefeedback-bolt-plugin:
+maybe-clean-stagefeedback-bolt-plugin:
+@if bolt-plugin-bootstrap
+maybe-all-stagefeedback-bolt-plugin: all-stagefeedback-bolt-plugin
+all-stagefeedback: all-stagefeedback-bolt-plugin
+TARGET-stagefeedback-bolt-plugin = $(TARGET-bolt-plugin)
+all-stagefeedback-bolt-plugin: configure-stagefeedback-bolt-plugin
+ @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ TFLAGS="$(STAGEfeedback_TFLAGS)"; \
+ $(HOST_EXPORTS) \
+ $(POSTSTAGE1_HOST_EXPORTS) \
+ cd $(HOST_SUBDIR)/bolt-plugin && \
+ \
+ $(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) @extra_linker_plugin_flags@ \
+ TFLAGS="$(STAGEfeedback_TFLAGS)" \
+ $(TARGET-stagefeedback-bolt-plugin)
+
+maybe-clean-stagefeedback-bolt-plugin: clean-stagefeedback-bolt-plugin
+clean-stagefeedback: clean-stagefeedback-bolt-plugin
+clean-stagefeedback-bolt-plugin:
+ @if [ $(current_stage) = stagefeedback ]; then \
+ [ -f $(HOST_SUBDIR)/bolt-plugin/Makefile ] || exit 0; \
+ else \
+ [ -f $(HOST_SUBDIR)/stagefeedback-bolt-plugin/Makefile ] || exit 0; \
+ $(MAKE) stagefeedback-start; \
+ fi; \
+ cd $(HOST_SUBDIR)/bolt-plugin && \
+ $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
+@endif bolt-plugin-bootstrap
+
+
+.PHONY: all-stageautoprofile-bolt-plugin maybe-all-stageautoprofile-bolt-plugin
+.PHONY: clean-stageautoprofile-bolt-plugin maybe-clean-stageautoprofile-bolt-plugin
+maybe-all-stageautoprofile-bolt-plugin:
+maybe-clean-stageautoprofile-bolt-plugin:
+@if bolt-plugin-bootstrap
+maybe-all-stageautoprofile-bolt-plugin: all-stageautoprofile-bolt-plugin
+all-stageautoprofile: all-stageautoprofile-bolt-plugin
+TARGET-stageautoprofile-bolt-plugin = $(TARGET-bolt-plugin)
+all-stageautoprofile-bolt-plugin: configure-stageautoprofile-bolt-plugin
+ @[ $(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)/bolt-plugin && \
+ $$s/gcc/config/i386/$(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) @extra_linker_plugin_flags@ \
+ TFLAGS="$(STAGEautoprofile_TFLAGS)" \
+ $(TARGET-stageautoprofile-bolt-plugin)
+
+maybe-clean-stageautoprofile-bolt-plugin: clean-stageautoprofile-bolt-plugin
+clean-stageautoprofile: clean-stageautoprofile-bolt-plugin
+clean-stageautoprofile-bolt-plugin:
+ @if [ $(current_stage) = stageautoprofile ]; then \
+ [ -f $(HOST_SUBDIR)/bolt-plugin/Makefile ] || exit 0; \
+ else \
+ [ -f $(HOST_SUBDIR)/stageautoprofile-bolt-plugin/Makefile ] || exit 0; \
+ $(MAKE) stageautoprofile-start; \
+ fi; \
+ cd $(HOST_SUBDIR)/bolt-plugin && \
+ $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
+@endif bolt-plugin-bootstrap
+
+
+.PHONY: all-stageautofeedback-bolt-plugin maybe-all-stageautofeedback-bolt-plugin
+.PHONY: clean-stageautofeedback-bolt-plugin maybe-clean-stageautofeedback-bolt-plugin
+maybe-all-stageautofeedback-bolt-plugin:
+maybe-clean-stageautofeedback-bolt-plugin:
+@if bolt-plugin-bootstrap
+maybe-all-stageautofeedback-bolt-plugin: all-stageautofeedback-bolt-plugin
+all-stageautofeedback: all-stageautofeedback-bolt-plugin
+TARGET-stageautofeedback-bolt-plugin = $(TARGET-bolt-plugin)
+all-stageautofeedback-bolt-plugin: configure-stageautofeedback-bolt-plugin
+ @[ $(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)/bolt-plugin && \
+ \
+ $(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) @extra_linker_plugin_flags@ \
+ TFLAGS="$(STAGEautofeedback_TFLAGS)" PERF_DATA=perf.data \
+ $(TARGET-stageautofeedback-bolt-plugin)
+
+maybe-clean-stageautofeedback-bolt-plugin: clean-stageautofeedback-bolt-plugin
+clean-stageautofeedback: clean-stageautofeedback-bolt-plugin
+clean-stageautofeedback-bolt-plugin:
+ @if [ $(current_stage) = stageautofeedback ]; then \
+ [ -f $(HOST_SUBDIR)/bolt-plugin/Makefile ] || exit 0; \
+ else \
+ [ -f $(HOST_SUBDIR)/stageautofeedback-bolt-plugin/Makefile ] || exit 0; \
+ $(MAKE) stageautofeedback-start; \
+ fi; \
+ cd $(HOST_SUBDIR)/bolt-plugin && \
+ $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
+@endif bolt-plugin-bootstrap
+
+
+
+
+
+.PHONY: check-bolt-plugin maybe-check-bolt-plugin
+maybe-check-bolt-plugin:
+@if bolt-plugin
+maybe-check-bolt-plugin: check-bolt-plugin
+
+check-bolt-plugin:
+ @: $(MAKE); $(unstage)
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
+ (cd $(HOST_SUBDIR)/bolt-plugin && \
+ $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ $(EXTRA_BOOTSTRAP_FLAGS) check)
+
+@endif bolt-plugin
+
+.PHONY: install-bolt-plugin maybe-install-bolt-plugin
+maybe-install-bolt-plugin:
+@if bolt-plugin
+maybe-install-bolt-plugin: install-bolt-plugin
+
+install-bolt-plugin: installdirs
+ @: $(MAKE); $(unstage)
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ (cd $(HOST_SUBDIR)/bolt-plugin && \
+ $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install)
+
+@endif bolt-plugin
+
+.PHONY: install-strip-bolt-plugin maybe-install-strip-bolt-plugin
+maybe-install-strip-bolt-plugin:
+@if bolt-plugin
+maybe-install-strip-bolt-plugin: install-strip-bolt-plugin
+
+install-strip-bolt-plugin: installdirs
+ @: $(MAKE); $(unstage)
+ @r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ (cd $(HOST_SUBDIR)/bolt-plugin && \
+ $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install-strip)
+
+@endif bolt-plugin
+
+# Other targets (info, dvi, pdf, etc.)
+
+.PHONY: maybe-info-bolt-plugin info-bolt-plugin
+maybe-info-bolt-plugin:
+@if bolt-plugin
+maybe-info-bolt-plugin: info-bolt-plugin
+
+info-bolt-plugin: \
+ configure-bolt-plugin
+ @[ -f ./bolt-plugin/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ echo "Doing info in bolt-plugin"; \
+ (cd $(HOST_SUBDIR)/bolt-plugin && \
+ $(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 bolt-plugin
+
+.PHONY: maybe-dvi-bolt-plugin dvi-bolt-plugin
+maybe-dvi-bolt-plugin:
+@if bolt-plugin
+maybe-dvi-bolt-plugin: dvi-bolt-plugin
+
+dvi-bolt-plugin: \
+ configure-bolt-plugin
+ @[ -f ./bolt-plugin/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ echo "Doing dvi in bolt-plugin"; \
+ (cd $(HOST_SUBDIR)/bolt-plugin && \
+ $(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 bolt-plugin
+
+.PHONY: maybe-pdf-bolt-plugin pdf-bolt-plugin
+maybe-pdf-bolt-plugin:
+@if bolt-plugin
+maybe-pdf-bolt-plugin: pdf-bolt-plugin
+
+pdf-bolt-plugin: \
+ configure-bolt-plugin
+ @[ -f ./bolt-plugin/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ echo "Doing pdf in bolt-plugin"; \
+ (cd $(HOST_SUBDIR)/bolt-plugin && \
+ $(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 bolt-plugin
+
+.PHONY: maybe-html-bolt-plugin html-bolt-plugin
+maybe-html-bolt-plugin:
+@if bolt-plugin
+maybe-html-bolt-plugin: html-bolt-plugin
+
+html-bolt-plugin: \
+ configure-bolt-plugin
+ @[ -f ./bolt-plugin/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ echo "Doing html in bolt-plugin"; \
+ (cd $(HOST_SUBDIR)/bolt-plugin && \
+ $(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 bolt-plugin
+
+.PHONY: maybe-TAGS-bolt-plugin TAGS-bolt-plugin
+maybe-TAGS-bolt-plugin:
+@if bolt-plugin
+maybe-TAGS-bolt-plugin: TAGS-bolt-plugin
+
+TAGS-bolt-plugin: \
+ configure-bolt-plugin
+ @[ -f ./bolt-plugin/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ echo "Doing TAGS in bolt-plugin"; \
+ (cd $(HOST_SUBDIR)/bolt-plugin && \
+ $(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 bolt-plugin
+
+.PHONY: maybe-install-info-bolt-plugin install-info-bolt-plugin
+maybe-install-info-bolt-plugin:
+@if bolt-plugin
+maybe-install-info-bolt-plugin: install-info-bolt-plugin
+
+install-info-bolt-plugin: \
+ configure-bolt-plugin \
+ info-bolt-plugin
+ @[ -f ./bolt-plugin/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ echo "Doing install-info in bolt-plugin"; \
+ (cd $(HOST_SUBDIR)/bolt-plugin && \
+ $(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 bolt-plugin
+
+.PHONY: maybe-install-pdf-bolt-plugin install-pdf-bolt-plugin
+maybe-install-pdf-bolt-plugin:
+@if bolt-plugin
+maybe-install-pdf-bolt-plugin: install-pdf-bolt-plugin
+
+install-pdf-bolt-plugin: \
+ configure-bolt-plugin \
+ pdf-bolt-plugin
+ @[ -f ./bolt-plugin/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ echo "Doing install-pdf in bolt-plugin"; \
+ (cd $(HOST_SUBDIR)/bolt-plugin && \
+ $(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 bolt-plugin
+
+.PHONY: maybe-install-html-bolt-plugin install-html-bolt-plugin
+maybe-install-html-bolt-plugin:
+@if bolt-plugin
+maybe-install-html-bolt-plugin: install-html-bolt-plugin
+
+install-html-bolt-plugin: \
+ configure-bolt-plugin \
+ html-bolt-plugin
+ @[ -f ./bolt-plugin/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ echo "Doing install-html in bolt-plugin"; \
+ (cd $(HOST_SUBDIR)/bolt-plugin && \
+ $(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 bolt-plugin
+
+.PHONY: maybe-installcheck-bolt-plugin installcheck-bolt-plugin
+maybe-installcheck-bolt-plugin:
+@if bolt-plugin
+maybe-installcheck-bolt-plugin: installcheck-bolt-plugin
+
+installcheck-bolt-plugin: \
+ configure-bolt-plugin
+ @[ -f ./bolt-plugin/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ echo "Doing installcheck in bolt-plugin"; \
+ (cd $(HOST_SUBDIR)/bolt-plugin && \
+ $(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 bolt-plugin
+
+.PHONY: maybe-mostlyclean-bolt-plugin mostlyclean-bolt-plugin
+maybe-mostlyclean-bolt-plugin:
+@if bolt-plugin
+maybe-mostlyclean-bolt-plugin: mostlyclean-bolt-plugin
+
+mostlyclean-bolt-plugin:
+ @[ -f ./bolt-plugin/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ echo "Doing mostlyclean in bolt-plugin"; \
+ (cd $(HOST_SUBDIR)/bolt-plugin && \
+ $(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 bolt-plugin
+
+.PHONY: maybe-clean-bolt-plugin clean-bolt-plugin
+maybe-clean-bolt-plugin:
+@if bolt-plugin
+maybe-clean-bolt-plugin: clean-bolt-plugin
+
+clean-bolt-plugin:
+ @[ -f ./bolt-plugin/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ echo "Doing clean in bolt-plugin"; \
+ (cd $(HOST_SUBDIR)/bolt-plugin && \
+ $(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 bolt-plugin
+
+.PHONY: maybe-distclean-bolt-plugin distclean-bolt-plugin
+maybe-distclean-bolt-plugin:
+@if bolt-plugin
+maybe-distclean-bolt-plugin: distclean-bolt-plugin
+
+distclean-bolt-plugin:
+ @[ -f ./bolt-plugin/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ echo "Doing distclean in bolt-plugin"; \
+ (cd $(HOST_SUBDIR)/bolt-plugin && \
+ $(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 bolt-plugin
+
+.PHONY: maybe-maintainer-clean-bolt-plugin maintainer-clean-bolt-plugin
+maybe-maintainer-clean-bolt-plugin:
+@if bolt-plugin
+maybe-maintainer-clean-bolt-plugin: maintainer-clean-bolt-plugin
+
+maintainer-clean-bolt-plugin:
+ @[ -f ./bolt-plugin/Makefile ] || exit 0; \
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+ done; \
+ echo "Doing maintainer-clean in bolt-plugin"; \
+ (cd $(HOST_SUBDIR)/bolt-plugin && \
+ $(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 bolt-plugin
+
+
+
.PHONY: configure-libcc1 maybe-configure-libcc1
maybe-configure-libcc1:
@if gcc-bootstrap
@@ -55735,6 +56879,11 @@ stage1-start::
mkdir stage1-lto-plugin; \
mv stage1-lto-plugin lto-plugin
@endif lto-plugin
+@if bolt-plugin
+ @cd $(HOST_SUBDIR); [ -d stage1-bolt-plugin ] || \
+ mkdir stage1-bolt-plugin; \
+ mv stage1-bolt-plugin bolt-plugin
+@endif bolt-plugin
@if libctf
@cd $(HOST_SUBDIR); [ -d stage1-libctf ] || \
mkdir stage1-libctf; \
@@ -55855,6 +57004,11 @@ stage1-end::
cd $(HOST_SUBDIR); mv lto-plugin stage1-lto-plugin; \
fi
@endif lto-plugin
+@if bolt-plugin
+ @if test -d $(HOST_SUBDIR)/bolt-plugin; then \
+ cd $(HOST_SUBDIR); mv bolt-plugin stage1-bolt-plugin; \
+ fi
+@endif bolt-plugin
@if libctf
@if test -d $(HOST_SUBDIR)/libctf; then \
cd $(HOST_SUBDIR); mv libctf stage1-libctf; \
@@ -56040,6 +57194,12 @@ stage2-start::
mv stage2-lto-plugin lto-plugin; \
mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
@endif lto-plugin
+@if bolt-plugin
+ @cd $(HOST_SUBDIR); [ -d stage2-bolt-plugin ] || \
+ mkdir stage2-bolt-plugin; \
+ mv stage2-bolt-plugin bolt-plugin; \
+ mv stage1-bolt-plugin prev-bolt-plugin || test -f stage1-lean
+@endif bolt-plugin
@if libctf
@cd $(HOST_SUBDIR); [ -d stage2-libctf ] || \
mkdir stage2-libctf; \
@@ -56184,6 +57344,12 @@ stage2-end::
mv prev-lto-plugin stage1-lto-plugin; : ; \
fi
@endif lto-plugin
+@if bolt-plugin
+ @if test -d $(HOST_SUBDIR)/bolt-plugin; then \
+ cd $(HOST_SUBDIR); mv bolt-plugin stage2-bolt-plugin; \
+ mv prev-bolt-plugin stage1-bolt-plugin; : ; \
+ fi
+@endif bolt-plugin
@if libctf
@if test -d $(HOST_SUBDIR)/libctf; then \
cd $(HOST_SUBDIR); mv libctf stage2-libctf; \
@@ -56394,6 +57560,12 @@ stage3-start::
mv stage3-lto-plugin lto-plugin; \
mv stage2-lto-plugin prev-lto-plugin || test -f stage2-lean
@endif lto-plugin
+@if bolt-plugin
+ @cd $(HOST_SUBDIR); [ -d stage3-bolt-plugin ] || \
+ mkdir stage3-bolt-plugin; \
+ mv stage3-bolt-plugin bolt-plugin; \
+ mv stage2-bolt-plugin prev-bolt-plugin || test -f stage2-lean
+@endif bolt-plugin
@if libctf
@cd $(HOST_SUBDIR); [ -d stage3-libctf ] || \
mkdir stage3-libctf; \
@@ -56538,6 +57710,12 @@ stage3-end::
mv prev-lto-plugin stage2-lto-plugin; : ; \
fi
@endif lto-plugin
+@if bolt-plugin
+ @if test -d $(HOST_SUBDIR)/bolt-plugin; then \
+ cd $(HOST_SUBDIR); mv bolt-plugin stage3-bolt-plugin; \
+ mv prev-bolt-plugin stage2-bolt-plugin; : ; \
+ fi
+@endif bolt-plugin
@if libctf
@if test -d $(HOST_SUBDIR)/libctf; then \
cd $(HOST_SUBDIR); mv libctf stage3-libctf; \
@@ -56804,6 +57982,12 @@ stage4-start::
mv stage4-lto-plugin lto-plugin; \
mv stage3-lto-plugin prev-lto-plugin || test -f stage3-lean
@endif lto-plugin
+@if bolt-plugin
+ @cd $(HOST_SUBDIR); [ -d stage4-bolt-plugin ] || \
+ mkdir stage4-bolt-plugin; \
+ mv stage4-bolt-plugin bolt-plugin; \
+ mv stage3-bolt-plugin prev-bolt-plugin || test -f stage3-lean
+@endif bolt-plugin
@if libctf
@cd $(HOST_SUBDIR); [ -d stage4-libctf ] || \
mkdir stage4-libctf; \
@@ -56948,6 +58132,12 @@ stage4-end::
mv prev-lto-plugin stage3-lto-plugin; : ; \
fi
@endif lto-plugin
+@if bolt-plugin
+ @if test -d $(HOST_SUBDIR)/bolt-plugin; then \
+ cd $(HOST_SUBDIR); mv bolt-plugin stage4-bolt-plugin; \
+ mv prev-bolt-plugin stage3-bolt-plugin; : ; \
+ fi
+@endif bolt-plugin
@if libctf
@if test -d $(HOST_SUBDIR)/libctf; then \
cd $(HOST_SUBDIR); mv libctf stage4-libctf; \
@@ -57202,6 +58392,12 @@ stageprofile-start::
mv stageprofile-lto-plugin lto-plugin; \
mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
@endif lto-plugin
+@if bolt-plugin
+ @cd $(HOST_SUBDIR); [ -d stageprofile-bolt-plugin ] || \
+ mkdir stageprofile-bolt-plugin; \
+ mv stageprofile-bolt-plugin bolt-plugin; \
+ mv stage1-bolt-plugin prev-bolt-plugin || test -f stage1-lean
+@endif bolt-plugin
@if libctf
@cd $(HOST_SUBDIR); [ -d stageprofile-libctf ] || \
mkdir stageprofile-libctf; \
@@ -57346,6 +58542,12 @@ stageprofile-end::
mv prev-lto-plugin stage1-lto-plugin; : ; \
fi
@endif lto-plugin
+@if bolt-plugin
+ @if test -d $(HOST_SUBDIR)/bolt-plugin; then \
+ cd $(HOST_SUBDIR); mv bolt-plugin stageprofile-bolt-plugin; \
+ mv prev-bolt-plugin stage1-bolt-plugin; : ; \
+ fi
+@endif bolt-plugin
@if libctf
@if test -d $(HOST_SUBDIR)/libctf; then \
cd $(HOST_SUBDIR); mv libctf stageprofile-libctf; \
@@ -57533,6 +58735,12 @@ stagetrain-start::
mv stagetrain-lto-plugin lto-plugin; \
mv stageprofile-lto-plugin prev-lto-plugin || test -f stageprofile-lean
@endif lto-plugin
+@if bolt-plugin
+ @cd $(HOST_SUBDIR); [ -d stagetrain-bolt-plugin ] || \
+ mkdir stagetrain-bolt-plugin; \
+ mv stagetrain-bolt-plugin bolt-plugin; \
+ mv stageprofile-bolt-plugin prev-bolt-plugin || test -f stageprofile-lean
+@endif bolt-plugin
@if libctf
@cd $(HOST_SUBDIR); [ -d stagetrain-libctf ] || \
mkdir stagetrain-libctf; \
@@ -57677,6 +58885,12 @@ stagetrain-end::
mv prev-lto-plugin stageprofile-lto-plugin; : ; \
fi
@endif lto-plugin
+@if bolt-plugin
+ @if test -d $(HOST_SUBDIR)/bolt-plugin; then \
+ cd $(HOST_SUBDIR); mv bolt-plugin stagetrain-bolt-plugin; \
+ mv prev-bolt-plugin stageprofile-bolt-plugin; : ; \
+ fi
+@endif bolt-plugin
@if libctf
@if test -d $(HOST_SUBDIR)/libctf; then \
cd $(HOST_SUBDIR); mv libctf stagetrain-libctf; \
@@ -57864,6 +59078,12 @@ stagefeedback-start::
mv stagefeedback-lto-plugin lto-plugin; \
mv stagetrain-lto-plugin prev-lto-plugin || test -f stagetrain-lean
@endif lto-plugin
+@if bolt-plugin
+ @cd $(HOST_SUBDIR); [ -d stagefeedback-bolt-plugin ] || \
+ mkdir stagefeedback-bolt-plugin; \
+ mv stagefeedback-bolt-plugin bolt-plugin; \
+ mv stagetrain-bolt-plugin prev-bolt-plugin || test -f stagetrain-lean
+@endif bolt-plugin
@if libctf
@cd $(HOST_SUBDIR); [ -d stagefeedback-libctf ] || \
mkdir stagefeedback-libctf; \
@@ -58008,6 +59228,12 @@ stagefeedback-end::
mv prev-lto-plugin stagetrain-lto-plugin; : ; \
fi
@endif lto-plugin
+@if bolt-plugin
+ @if test -d $(HOST_SUBDIR)/bolt-plugin; then \
+ cd $(HOST_SUBDIR); mv bolt-plugin stagefeedback-bolt-plugin; \
+ mv prev-bolt-plugin stagetrain-bolt-plugin; : ; \
+ fi
+@endif bolt-plugin
@if libctf
@if test -d $(HOST_SUBDIR)/libctf; then \
cd $(HOST_SUBDIR); mv libctf stagefeedback-libctf; \
@@ -58218,6 +59444,12 @@ stageautoprofile-start::
mv stageautoprofile-lto-plugin lto-plugin; \
mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
@endif lto-plugin
+@if bolt-plugin
+ @cd $(HOST_SUBDIR); [ -d stageautoprofile-bolt-plugin ] || \
+ mkdir stageautoprofile-bolt-plugin; \
+ mv stageautoprofile-bolt-plugin bolt-plugin; \
+ mv stage1-bolt-plugin prev-bolt-plugin || test -f stage1-lean
+@endif bolt-plugin
@if libctf
@cd $(HOST_SUBDIR); [ -d stageautoprofile-libctf ] || \
mkdir stageautoprofile-libctf; \
@@ -58362,6 +59594,12 @@ stageautoprofile-end::
mv prev-lto-plugin stage1-lto-plugin; : ; \
fi
@endif lto-plugin
+@if bolt-plugin
+ @if test -d $(HOST_SUBDIR)/bolt-plugin; then \
+ cd $(HOST_SUBDIR); mv bolt-plugin stageautoprofile-bolt-plugin; \
+ mv prev-bolt-plugin stage1-bolt-plugin; : ; \
+ fi
+@endif bolt-plugin
@if libctf
@if test -d $(HOST_SUBDIR)/libctf; then \
cd $(HOST_SUBDIR); mv libctf stageautoprofile-libctf; \
@@ -58549,6 +59787,12 @@ stageautofeedback-start::
mv stageautofeedback-lto-plugin lto-plugin; \
mv stageautoprofile-lto-plugin prev-lto-plugin || test -f stageautoprofile-lean
@endif lto-plugin
+@if bolt-plugin
+ @cd $(HOST_SUBDIR); [ -d stageautofeedback-bolt-plugin ] || \
+ mkdir stageautofeedback-bolt-plugin; \
+ mv stageautofeedback-bolt-plugin bolt-plugin; \
+ mv stageautoprofile-bolt-plugin prev-bolt-plugin || test -f stageautoprofile-lean
+@endif bolt-plugin
@if libctf
@cd $(HOST_SUBDIR); [ -d stageautofeedback-libctf ] || \
mkdir stageautofeedback-libctf; \
@@ -58693,6 +59937,12 @@ stageautofeedback-end::
mv prev-lto-plugin stageautoprofile-lto-plugin; : ; \
fi
@endif lto-plugin
+@if bolt-plugin
+ @if test -d $(HOST_SUBDIR)/bolt-plugin; then \
+ cd $(HOST_SUBDIR); mv bolt-plugin stageautofeedback-bolt-plugin; \
+ mv prev-bolt-plugin stageautoprofile-bolt-plugin; : ; \
+ fi
+@endif bolt-plugin
@if libctf
@if test -d $(HOST_SUBDIR)/libctf; then \
cd $(HOST_SUBDIR); mv libctf stageautofeedback-libctf; \
@@ -58985,6 +60235,16 @@ configure-stagetrain-gcc: maybe-all-stagetrain-lto-plugin
configure-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
configure-stageautoprofile-gcc: maybe-all-stageautoprofile-lto-plugin
configure-stageautofeedback-gcc: maybe-all-stageautofeedback-lto-plugin
+configure-gcc: maybe-all-bolt-plugin
+configure-stage1-gcc: maybe-all-stage1-bolt-plugin
+configure-stage2-gcc: maybe-all-stage2-bolt-plugin
+configure-stage3-gcc: maybe-all-stage3-bolt-plugin
+configure-stage4-gcc: maybe-all-stage4-bolt-plugin
+configure-stageprofile-gcc: maybe-all-stageprofile-bolt-plugin
+configure-stagetrain-gcc: maybe-all-stagetrain-bolt-plugin
+configure-stagefeedback-gcc: maybe-all-stagefeedback-bolt-plugin
+configure-stageautoprofile-gcc: maybe-all-stageautoprofile-bolt-plugin
+configure-stageautofeedback-gcc: maybe-all-stageautofeedback-bolt-plugin
configure-gcc: maybe-all-binutils
configure-stage1-gcc: maybe-all-stage1-binutils
configure-stage2-gcc: maybe-all-stage2-binutils
@@ -59225,6 +60485,16 @@ all-stagetrain-gcc: maybe-all-stagetrain-lto-plugin
all-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
all-stageautoprofile-gcc: maybe-all-stageautoprofile-lto-plugin
all-stageautofeedback-gcc: maybe-all-stageautofeedback-lto-plugin
+all-gcc: maybe-all-bolt-plugin
+all-stage1-gcc: maybe-all-stage1-bolt-plugin
+all-stage2-gcc: maybe-all-stage2-bolt-plugin
+all-stage3-gcc: maybe-all-stage3-bolt-plugin
+all-stage4-gcc: maybe-all-stage4-bolt-plugin
+all-stageprofile-gcc: maybe-all-stageprofile-bolt-plugin
+all-stagetrain-gcc: maybe-all-stagetrain-bolt-plugin
+all-stagefeedback-gcc: maybe-all-stagefeedback-bolt-plugin
+all-stageautoprofile-gcc: maybe-all-stageautoprofile-bolt-plugin
+all-stageautofeedback-gcc: maybe-all-stageautofeedback-bolt-plugin
all-gcc: maybe-all-libiconv
all-stage1-gcc: maybe-all-stage1-libiconv
all-stage2-gcc: maybe-all-stage2-libiconv
@@ -59277,8 +60547,10 @@ html-stageautoprofile-gcc: maybe-all-build-libiberty
html-stageautofeedback-gcc: maybe-all-build-libiberty
install-gcc: maybe-install-fixincludes
install-gcc: maybe-install-lto-plugin
+install-gcc: maybe-install-bolt-plugin
install-strip-gcc: maybe-install-strip-fixincludes
install-strip-gcc: maybe-install-strip-lto-plugin
+install-strip-gcc: maybe-install-strip-bolt-plugin
configure-libcpp: configure-libiberty
configure-stage1-libcpp: configure-stage1-libiberty
configure-stage2-libcpp: configure-stage2-libiberty
@@ -59370,6 +60642,26 @@ all-stagetrain-lto-plugin: maybe-all-stagetrain-libiberty-linker-plugin
all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty-linker-plugin
all-stageautoprofile-lto-plugin: maybe-all-stageautoprofile-libiberty-linker-plugin
all-stageautofeedback-lto-plugin: maybe-all-stageautofeedback-libiberty-linker-plugin
+all-bolt-plugin: maybe-all-libiberty
+all-stage1-bolt-plugin: maybe-all-stage1-libiberty
+all-stage2-bolt-plugin: maybe-all-stage2-libiberty
+all-stage3-bolt-plugin: maybe-all-stage3-libiberty
+all-stage4-bolt-plugin: maybe-all-stage4-libiberty
+all-stageprofile-bolt-plugin: maybe-all-stageprofile-libiberty
+all-stagetrain-bolt-plugin: maybe-all-stagetrain-libiberty
+all-stagefeedback-bolt-plugin: maybe-all-stagefeedback-libiberty
+all-stageautoprofile-bolt-plugin: maybe-all-stageautoprofile-libiberty
+all-stageautofeedback-bolt-plugin: maybe-all-stageautofeedback-libiberty
+all-bolt-plugin: maybe-all-libiberty-linker-plugin
+all-stage1-bolt-plugin: maybe-all-stage1-libiberty-linker-plugin
+all-stage2-bolt-plugin: maybe-all-stage2-libiberty-linker-plugin
+all-stage3-bolt-plugin: maybe-all-stage3-libiberty-linker-plugin
+all-stage4-bolt-plugin: maybe-all-stage4-libiberty-linker-plugin
+all-stageprofile-bolt-plugin: maybe-all-stageprofile-libiberty-linker-plugin
+all-stagetrain-bolt-plugin: maybe-all-stagetrain-libiberty-linker-plugin
+all-stagefeedback-bolt-plugin: maybe-all-stagefeedback-libiberty-linker-plugin
+all-stageautoprofile-bolt-plugin: maybe-all-stageautoprofile-libiberty-linker-plugin
+all-stageautofeedback-bolt-plugin: maybe-all-stageautofeedback-libiberty-linker-plugin
all-gotools: maybe-all-target-libgo
configure-intl: maybe-all-libiconv
configure-stage1-intl: maybe-all-stage1-libiconv
diff --git a/configure b/configure
old mode 100644
new mode 100755
index f2ec106a8..97d5ca4fc
--- a/configure
+++ b/configure
@@ -814,6 +814,7 @@ with_isl
with_isl_include
with_isl_lib
enable_isl_version_check
+enable_bolt
enable_lto
enable_linker_plugin_configure_flags
enable_linker_plugin_flags
@@ -1529,6 +1530,7 @@ Optional Features:
--enable-bootstrap enable bootstrapping [yes if native build]
--disable-isl-version-check
disable check for isl version
+ --enable-bolt enable bolt optimization support
--enable-lto enable link time optimization support
--enable-linker-plugin-configure-flags=FLAGS
additional flags for configuring linker plugins
@@ -6187,6 +6189,15 @@ fi
+# Check for BOLT support.
+# Check whether --enable-bolt was given.
+if test "${enable_bolt+set}" = set; then :
+ enableval=$enable_bolt; enable_bolt=$enableval
+else
+ enable_bolt=no; default_enable_bolt=no
+fi
+
+
# Check for LTO support.
# Check whether --enable-lto was given.
if test "${enable_lto+set}" = set; then :
@@ -6216,6 +6227,16 @@ if test $target_elf = yes; then :
# ELF platforms build the lto-plugin always.
build_lto_plugin=yes
+ # ELF platforms can build the bolt-plugin.
+ # NOT BUILD BOLT BY DEFAULT.
+ case $target in
+ aarch64*-*-linux*)
+ if test $enable_bolt = yes; then :
+ build_bolt_plugin=yes
+ fi
+ ;;
+ esac
+
else
if test x"$default_enable_lto" = x"yes" ; then
case $target in
@@ -6391,6 +6412,10 @@ if test -d ${srcdir}/gcc; then
fi
fi
+ if test "${build_bolt_plugin}" = "yes" ; then
+ configdirs="$configdirs bolt-plugin"
+ fi
+
# If we're building an offloading compiler, add the LTO front end.
if test x"$enable_as_accelerator_for" != x ; then
case ,${enable_languages}, in
@@ -6779,7 +6804,7 @@ fi
extra_host_libiberty_configure_flags=
extra_host_zlib_configure_flags=
case " $configdirs " in
- *" lto-plugin "* | *" libcc1 "*)
+ *" lto-plugin "* | *" libcc1 "* | *" bolt-plugin "*)
# When these are to be built as shared libraries, the same applies to
# libiberty.
extra_host_libiberty_configure_flags=--enable-shared
diff --git a/configure.ac b/configure.ac
index 115db3f40..90ccd5ef8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1810,6 +1810,12 @@ fi
AC_SUBST(isllibs)
AC_SUBST(islinc)
+# Check for BOLT support.
+AC_ARG_ENABLE(bolt,
+[AS_HELP_STRING([--enable-bolt], [enable bolt optimization support])],
+enable_bolt=$enableval,
+enable_bolt=no; default_enable_bolt=no)
+
# Check for LTO support.
AC_ARG_ENABLE(lto,
[AS_HELP_STRING([--enable-lto], [enable link time optimization support])],
@@ -1818,6 +1824,16 @@ enable_lto=yes; default_enable_lto=yes)
ACX_ELF_TARGET_IFELSE([# ELF platforms build the lto-plugin always.
build_lto_plugin=yes
+
+ # ELF platforms can build the bolt-plugin.
+ # NOT BUILD BOLT BY DEFAULT.
+ case $target in
+ aarch64*-*-linux*)
+ if test $enable_bolt = yes; then :
+ build_bolt_plugin=yes
+ fi
+ ;;
+ esac
],[if test x"$default_enable_lto" = x"yes" ; then
case $target in
*-apple-darwin[[912]]* | *-cygwin* | *-mingw* | *djgpp*) ;;
@@ -1983,6 +1999,10 @@ if test -d ${srcdir}/gcc; then
fi
fi
+ if test "${build_bolt_plugin}" = "yes" ; then
+ configdirs="$configdirs bolt-plugin"
+ fi
+
# If we're building an offloading compiler, add the LTO front end.
if test x"$enable_as_accelerator_for" != x ; then
case ,${enable_languages}, in
@@ -2358,7 +2378,7 @@ fi
extra_host_libiberty_configure_flags=
extra_host_zlib_configure_flags=
case " $configdirs " in
- *" lto-plugin "* | *" libcc1 "*)
+ *" lto-plugin "* | *" libcc1 "* | *" bolt-plugin "*)
# When these are to be built as shared libraries, the same applies to
# libiberty.
extra_host_libiberty_configure_flags=--enable-shared
diff --git a/gcc/config.host b/gcc/config.host
index 84f0433e2..230ab61ac 100644
--- a/gcc/config.host
+++ b/gcc/config.host
@@ -59,7 +59,11 @@
# host_lto_plugin_soname Set this to the name to which the LTO linker
# plugin gets compiled on this host, if it is
# different from the default "liblto_plugin.so".
-
+#
+# host_bolt_plugin_soname Set this to the name to which the BOLT
+# plugin gets compiled on this host, if it is
+# different from the default "libbolt_plugin.so".
+#
# When setting any of these variables, check to see if a corresponding
# variable is present in config.build; if so, you will likely want to
# set it in both places.
@@ -75,6 +79,7 @@ out_host_hook_obj=host-default.o
host_can_use_collect2=yes
use_long_long_for_widest_fast_int=no
host_lto_plugin_soname=liblto_plugin.so
+host_bolt_plugin_soname=libbolt_plugin.so
# Unsupported hosts list. Generally, only include hosts known to fail here,
# since we allow hosts not listed to be supported generically.
diff --git a/gcc/config.in b/gcc/config.in
index 364eba477..80b421d99 100644
--- a/gcc/config.in
+++ b/gcc/config.in
@@ -24,6 +24,13 @@
#endif
+/* Define to the name of the BOLT plugin DSO that must be passed to the
+ linker's -plugin=LIB option. */
+#ifndef USED_FOR_TARGET
+#undef BOLTPLUGINSONAME
+#endif
+
+
/* Define to the root for URLs about GCC changes. */
#ifndef USED_FOR_TARGET
#undef CHANGES_ROOT_URL
diff --git a/gcc/configure b/gcc/configure
old mode 100644
new mode 100755
index 27beb6b1e..d4f97834f
--- a/gcc/configure
+++ b/gcc/configure
@@ -12922,6 +12922,12 @@ case $use_collect2 in
esac
+cat >>confdefs.h <<_ACEOF
+#define BOLTPLUGINSONAME "${host_bolt_plugin_soname}"
+_ACEOF
+
+
+
cat >>confdefs.h <<_ACEOF
#define LTOPLUGINSONAME "${host_lto_plugin_soname}"
_ACEOF
@@ -19022,7 +19028,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 19025 "configure"
+#line 19031 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -19128,7 +19134,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 19131 "configure"
+#line 19137 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 82a0ce995..44154f69f 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -2357,6 +2357,10 @@ case $use_collect2 in
;;
esac
+AC_DEFINE_UNQUOTED(BOLTPLUGINSONAME,"${host_bolt_plugin_soname}",
+[Define to the name of the BOLT plugin DSO that must be
+ passed to the linker's -plugin=LIB option.])
+
AC_DEFINE_UNQUOTED(LTOPLUGINSONAME,"${host_lto_plugin_soname}",
[Define to the name of the LTO plugin DSO that must be
passed to the linker's -plugin=LIB option.])
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 9f790db0d..b55075b14 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -1036,6 +1036,8 @@ proper position among the other output files. */
%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\
%(linker) " \
LINK_PLUGIN_SPEC \
+ "%{fauto-bolt|fauto-bolt=*|fbolt-use|fbolt-use=*: \
+ -plugin %(linker_auto_bolt_plugin_file) }"\
"%{flto|flto=*:%<fcompare-debug*} \
%{flto} %{fno-lto} %{flto=*} %l " LINK_PIE_SPEC \
"%{fuse-ld=*:-fuse-ld=%*} " LINK_COMPRESS_DEBUG_SPEC \
@@ -1089,6 +1091,7 @@ static const char *endfile_spec = ENDFILE_SPEC;
static const char *startfile_spec = STARTFILE_SPEC;
static const char *linker_name_spec = LINKER_NAME;
static const char *linker_plugin_file_spec = "";
+static const char *linker_auto_bolt_plugin_file_spec = "";
static const char *lto_wrapper_spec = "";
static const char *lto_gcc_spec = "";
static const char *post_link_spec = POST_LINK_SPEC;
@@ -1594,6 +1597,8 @@ static struct spec_list static_specs[] =
INIT_STATIC_SPEC ("multilib_reuse", &multilib_reuse),
INIT_STATIC_SPEC ("linker", &linker_name_spec),
INIT_STATIC_SPEC ("linker_plugin_file", &linker_plugin_file_spec),
+ INIT_STATIC_SPEC ("linker_auto_bolt_plugin_file",
+ &linker_auto_bolt_plugin_file_spec),
INIT_STATIC_SPEC ("lto_wrapper", &lto_wrapper_spec),
INIT_STATIC_SPEC ("lto_gcc", &lto_gcc_spec),
INIT_STATIC_SPEC ("post_link", &post_link_spec),
@@ -8339,6 +8344,23 @@ driver::maybe_run_linker (const char *argv0) const
}
#endif
lto_gcc_spec = argv0;
+
+ /* Set bolt-plugin. */
+ const char *fauto_bolt = "fauto-bolt";
+ const char *fbolt_use = "fbolt-use";
+ if (switch_matches (fauto_bolt, fauto_bolt + strlen (fauto_bolt), 1)
+ || switch_matches (fbolt_use, fbolt_use + strlen (fbolt_use), 1))
+ {
+ linker_auto_bolt_plugin_file_spec = find_a_file (&exec_prefixes,
+ BOLTPLUGINSONAME, X_OK, false);
+ if (!linker_auto_bolt_plugin_file_spec)
+ {
+ fatal_error (input_location,
+ "-fauto-bolt or -fbolt-use is used,",
+ " but %s file is not found",
+ BOLTPLUGINSONAME);
+ }
+ }
}
/* Rebuild the COMPILER_PATH and LIBRARY_PATH environment variables
--
2.27.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yhl123123/gcc.git
git@gitee.com:yhl123123/gcc.git
yhl123123
gcc
gcc
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385