2005-10-22 Paolo Bonzini <bonzini@gnu.org>

PR bootstrap/24297
	* Makefile.tpl (do-[+make-target+], do-check, install,
	stage[+id+]-bubble, [+compare-target+]): Ensure $$r and $$s
	are set before recursing.
	* Makefile.in: Regenerate.
This commit is contained in:
Paolo Bonzini 2005-10-22 10:37:55 +00:00
parent 88d30f0b2f
commit ecebee4838
3 changed files with 83 additions and 31 deletions

View File

@ -1,3 +1,11 @@
2005-10-22 Paolo Bonzini <bonzini@gnu.org>
PR bootstrap/24297
* Makefile.tpl (do-[+make-target+], do-check, install,
stage[+id+]-bubble, [+compare-target+]): Ensure $$r and $$s
are set before recursing.
* Makefile.in: Regenerate.
2005-10-20 Eric Botcazou <ebotcazou@adacore.com> 2005-10-20 Eric Botcazou <ebotcazou@adacore.com>
PR bootstrap/18939 PR bootstrap/18939

View File

@ -1001,7 +1001,9 @@ all-target: \
.PHONY: do-info .PHONY: do-info
do-info: do-info:
@$(unstage) @$(unstage)
@$(MAKE) $(RECURSE_FLAGS_TO_PASS) info-host \ @r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(MAKE) $(RECURSE_FLAGS_TO_PASS) info-host \
info-target info-target
@$(stage) @$(stage)
@ -1101,7 +1103,9 @@ info-target: \
.PHONY: do-dvi .PHONY: do-dvi
do-dvi: do-dvi:
@$(unstage) @$(unstage)
@$(MAKE) $(RECURSE_FLAGS_TO_PASS) dvi-host \ @r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(MAKE) $(RECURSE_FLAGS_TO_PASS) dvi-host \
dvi-target dvi-target
@$(stage) @$(stage)
@ -1201,7 +1205,9 @@ dvi-target: \
.PHONY: do-html .PHONY: do-html
do-html: do-html:
@$(unstage) @$(unstage)
@$(MAKE) $(RECURSE_FLAGS_TO_PASS) html-host \ @r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(MAKE) $(RECURSE_FLAGS_TO_PASS) html-host \
html-target html-target
@$(stage) @$(stage)
@ -1301,7 +1307,9 @@ html-target: \
.PHONY: do-TAGS .PHONY: do-TAGS
do-TAGS: do-TAGS:
@$(unstage) @$(unstage)
@$(MAKE) $(RECURSE_FLAGS_TO_PASS) TAGS-host \ @r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(MAKE) $(RECURSE_FLAGS_TO_PASS) TAGS-host \
TAGS-target TAGS-target
@$(stage) @$(stage)
@ -1401,7 +1409,9 @@ TAGS-target: \
.PHONY: do-install-info .PHONY: do-install-info
do-install-info: do-install-info:
@$(unstage) @$(unstage)
@$(MAKE) $(RECURSE_FLAGS_TO_PASS) install-info-host \ @r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(MAKE) $(RECURSE_FLAGS_TO_PASS) install-info-host \
install-info-target install-info-target
@$(stage) @$(stage)
@ -1501,7 +1511,9 @@ install-info-target: \
.PHONY: do-installcheck .PHONY: do-installcheck
do-installcheck: do-installcheck:
@$(unstage) @$(unstage)
@$(MAKE) $(RECURSE_FLAGS_TO_PASS) installcheck-host \ @r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(MAKE) $(RECURSE_FLAGS_TO_PASS) installcheck-host \
installcheck-target installcheck-target
@$(stage) @$(stage)
@ -1601,7 +1613,9 @@ installcheck-target: \
.PHONY: do-mostlyclean .PHONY: do-mostlyclean
do-mostlyclean: do-mostlyclean:
@$(unstage) @$(unstage)
@$(MAKE) $(RECURSE_FLAGS_TO_PASS) mostlyclean-host \ @r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(MAKE) $(RECURSE_FLAGS_TO_PASS) mostlyclean-host \
mostlyclean-target mostlyclean-target
@$(stage) @$(stage)
@ -1701,7 +1715,9 @@ mostlyclean-target: \
.PHONY: do-clean .PHONY: do-clean
do-clean: do-clean:
@$(unstage) @$(unstage)
@$(MAKE) $(RECURSE_FLAGS_TO_PASS) clean-host \ @r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(MAKE) $(RECURSE_FLAGS_TO_PASS) clean-host \
clean-target clean-target
@$(stage) @$(stage)
@ -1801,7 +1817,9 @@ clean-target: \
.PHONY: do-distclean .PHONY: do-distclean
do-distclean: do-distclean:
@$(unstage) @$(unstage)
@$(MAKE) $(RECURSE_FLAGS_TO_PASS) distclean-host \ @r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(MAKE) $(RECURSE_FLAGS_TO_PASS) distclean-host \
distclean-target distclean-target
@$(stage) @$(stage)
@ -1901,7 +1919,9 @@ distclean-target: \
.PHONY: do-maintainer-clean .PHONY: do-maintainer-clean
do-maintainer-clean: do-maintainer-clean:
@$(unstage) @$(unstage)
@$(MAKE) $(RECURSE_FLAGS_TO_PASS) maintainer-clean-host \ @r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(MAKE) $(RECURSE_FLAGS_TO_PASS) maintainer-clean-host \
maintainer-clean-target maintainer-clean-target
@$(stage) @$(stage)
@ -2158,7 +2178,9 @@ check-target: \
do-check: do-check:
@$(unstage) @$(unstage)
@$(MAKE) $(RECURSE_FLAGS_TO_PASS) check-host check-target @r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(MAKE) $(RECURSE_FLAGS_TO_PASS) check-host check-target
@$(stage) @$(stage)
# Automated reporting of test results. # Automated reporting of test results.
@ -2187,7 +2209,9 @@ mail-report-with-warnings.log: warning.log
.PHONY: install uninstall .PHONY: install uninstall
install: install:
@$(unstage) @$(unstage)
@$(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-host install-target @r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-host install-target
@$(stage) @$(stage)
.PHONY: install-host-nogcc .PHONY: install-host-nogcc
@ -35259,7 +35283,9 @@ stage1-end::
# be reconfigured as well. # be reconfigured as well.
.PHONY: stage1-bubble .PHONY: stage1-bubble
stage1-bubble:: stage1-bubble::
@if test -f stage1-lean ; then \ @r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
if test -f stage1-lean ; then \
echo Skipping rebuild of stage1 ; \ echo Skipping rebuild of stage1 ; \
else \ else \
$(MAKE) stage1-start; \ $(MAKE) stage1-start; \
@ -35443,7 +35469,9 @@ stage2-end::
# be reconfigured as well. # be reconfigured as well.
.PHONY: stage2-bubble .PHONY: stage2-bubble
stage2-bubble:: stage1-bubble stage2-bubble:: stage1-bubble
@if test -f stage2-lean || test -f stage1-lean ; then \ @r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
if test -f stage2-lean || test -f stage1-lean ; then \
echo Skipping rebuild of stage2 ; \ echo Skipping rebuild of stage2 ; \
else \ else \
$(MAKE) stage2-start; \ $(MAKE) stage2-start; \
@ -35632,7 +35660,9 @@ stage3-end::
.PHONY: stage3-bubble .PHONY: stage3-bubble
stage3-bubble:: stage2-bubble stage3-bubble:: stage2-bubble
@bootstrap_lean@-rm -rf stage1-* ; $(STAMP) stage1-lean @bootstrap_lean@-rm -rf stage1-* ; $(STAMP) stage1-lean
@if test -f stage3-lean || test -f stage2-lean ; then \ @r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
if test -f stage3-lean || test -f stage2-lean ; then \
echo Skipping rebuild of stage3 ; \ echo Skipping rebuild of stage3 ; \
else \ else \
$(MAKE) stage3-start; \ $(MAKE) stage3-start; \
@ -35647,13 +35677,13 @@ do-clean: clean-stage3
@if gcc-bootstrap @if gcc-bootstrap
compare: compare:
@if test -f stage2-lean; then \ @r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
if test -f stage2-lean; then \
echo Cannot compare object files as stage 2 was deleted. ; \ echo Cannot compare object files as stage 2 was deleted. ; \
exit 0 ; \ exit 0 ; \
fi; \ fi; \
[ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \ [ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
rm -f .bad_compare ; \ rm -f .bad_compare ; \
cd stage3-gcc; \ cd stage3-gcc; \
files=`find . -name "*$(objext)" -print` ; \ files=`find . -name "*$(objext)" -print` ; \
@ -35859,7 +35889,9 @@ stage4-end::
.PHONY: stage4-bubble .PHONY: stage4-bubble
stage4-bubble:: stage3-bubble stage4-bubble:: stage3-bubble
@bootstrap_lean@-rm -rf stage2-* ; $(STAMP) stage2-lean @bootstrap_lean@-rm -rf stage2-* ; $(STAMP) stage2-lean
@if test -f stage4-lean || test -f stage3-lean ; then \ @r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
if test -f stage4-lean || test -f stage3-lean ; then \
echo Skipping rebuild of stage4 ; \ echo Skipping rebuild of stage4 ; \
else \ else \
$(MAKE) stage4-start; \ $(MAKE) stage4-start; \
@ -35874,13 +35906,13 @@ do-clean: clean-stage4
@if gcc-bootstrap @if gcc-bootstrap
compare3: compare3:
@if test -f stage3-lean; then \ @r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
if test -f stage3-lean; then \
echo Cannot compare object files as stage 3 was deleted. ; \ echo Cannot compare object files as stage 3 was deleted. ; \
exit 0 ; \ exit 0 ; \
fi; \ fi; \
[ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \ [ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
rm -f .bad_compare ; \ rm -f .bad_compare ; \
cd stage4-gcc; \ cd stage4-gcc; \
files=`find . -name "*$(objext)" -print` ; \ files=`find . -name "*$(objext)" -print` ; \
@ -36082,7 +36114,9 @@ stageprofile-end::
# be reconfigured as well. # be reconfigured as well.
.PHONY: stageprofile-bubble .PHONY: stageprofile-bubble
stageprofile-bubble:: stage1-bubble stageprofile-bubble:: stage1-bubble
@if test -f stageprofile-lean || test -f stage1-lean ; then \ @r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
if test -f stageprofile-lean || test -f stage1-lean ; then \
echo Skipping rebuild of stageprofile ; \ echo Skipping rebuild of stageprofile ; \
else \ else \
$(MAKE) stageprofile-start; \ $(MAKE) stageprofile-start; \
@ -36266,7 +36300,9 @@ stagefeedback-end::
# be reconfigured as well. # be reconfigured as well.
.PHONY: stagefeedback-bubble .PHONY: stagefeedback-bubble
stagefeedback-bubble:: stageprofile-bubble stagefeedback-bubble:: stageprofile-bubble
@if test -f stagefeedback-lean || test -f stageprofile-lean ; then \ @r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
if test -f stagefeedback-lean || test -f stageprofile-lean ; then \
echo Skipping rebuild of stagefeedback ; \ echo Skipping rebuild of stagefeedback ; \
else \ else \
$(MAKE) stagefeedback-start; \ $(MAKE) stagefeedback-start; \

View File

@ -769,7 +769,9 @@ all-target: [+
.PHONY: do-[+make_target+] .PHONY: do-[+make_target+]
do-[+make_target+]: do-[+make_target+]:
@$(unstage) @$(unstage)
@$(MAKE) $(RECURSE_FLAGS_TO_PASS) [+make_target+]-host \ @r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(MAKE) $(RECURSE_FLAGS_TO_PASS) [+make_target+]-host \
[+make_target+]-target [+make_target+]-target
@$(stage) @$(stage)
@ -866,7 +868,9 @@ check-target: [+
do-check: do-check:
@$(unstage) @$(unstage)
@$(MAKE) $(RECURSE_FLAGS_TO_PASS) check-host check-target @r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(MAKE) $(RECURSE_FLAGS_TO_PASS) check-host check-target
@$(stage) @$(stage)
# Automated reporting of test results. # Automated reporting of test results.
@ -895,7 +899,9 @@ mail-report-with-warnings.log: warning.log
.PHONY: install uninstall .PHONY: install uninstall
install: install:
@$(unstage) @$(unstage)
@$(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-host install-target @r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-host install-target
@$(stage) @$(stage)
.PHONY: install-host-nogcc .PHONY: install-host-nogcc
@ -1534,7 +1540,9 @@ stage[+id+]-end::
.PHONY: stage[+id+]-bubble .PHONY: stage[+id+]-bubble
stage[+id+]-bubble:: [+ IF prev +]stage[+prev+]-bubble[+ ENDIF +][+IF lean +] stage[+id+]-bubble:: [+ IF prev +]stage[+prev+]-bubble[+ ENDIF +][+IF lean +]
@bootstrap_lean@-rm -rf stage[+lean+]-* ; $(STAMP) stage[+lean+]-lean[+ ENDIF lean +] @bootstrap_lean@-rm -rf stage[+lean+]-* ; $(STAMP) stage[+lean+]-lean[+ ENDIF lean +]
@if test -f stage[+id+]-lean [+ @r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
if test -f stage[+id+]-lean [+
IF prev +]|| test -f stage[+prev+]-lean [+ ENDIF prev +] ; then \ IF prev +]|| test -f stage[+prev+]-lean [+ ENDIF prev +] ; then \
echo Skipping rebuild of stage[+id+] ; \ echo Skipping rebuild of stage[+id+] ; \
else \ else \
@ -1550,13 +1558,13 @@ do-clean: clean-stage[+id+]
@if gcc-bootstrap @if gcc-bootstrap
[+ IF compare-target +] [+ IF compare-target +]
[+compare-target+]: [+compare-target+]:
@if test -f stage[+prev+]-lean; then \ @r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
if test -f stage[+prev+]-lean; then \
echo Cannot compare object files as stage [+prev+] was deleted. ; \ echo Cannot compare object files as stage [+prev+] was deleted. ; \
exit 0 ; \ exit 0 ; \
fi; \ fi; \
[ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \ [ -f stage_current ] && $(MAKE) `cat stage_current`-end || : ; \
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
rm -f .bad_compare ; \ rm -f .bad_compare ; \
cd stage[+id+]-gcc; \ cd stage[+id+]-gcc; \
files=`find . -name "*$(objext)" -print` ; \ files=`find . -name "*$(objext)" -print` ; \