From b523320162a0e6d398ef6ebb000f9badeaa9663a Mon Sep 17 00:00:00 2001
From: Alexandre Oliva <aoliva@redhat.com>
Date: Tue, 19 May 2009 01:11:12 +0000
Subject: [PATCH] PR other/40159 * Makefile.tpl (all): Don't assume
 gcc-bootstrap and gcc-no-bootstrap are mutually exclusive. * Makefile.in:
 Rebuilt.

---
 ChangeLog    |  7 +++++++
 Makefile.in  | 10 +++++-----
 Makefile.tpl |  8 ++++----
 3 files changed, 16 insertions(+), 9 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 5c39cbdb97e..a8bb83478cc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-05-18  Alexandre Oliva  <aoliva@redhat.com>
+
+	PR other/40159
+	* Makefile.tpl (all): Don't assume gcc-bootstrap and
+	gcc-no-bootstrap are mutually exclusive.
+	* Makefile.in: Rebuilt.
+
 2009-05-18  Alexandre Oliva  <aoliva@redhat.com>
 
 	PR other/40159
diff --git a/Makefile.in b/Makefile.in
index 5b0d4743069..110f7d69659 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -854,16 +854,16 @@ all:
 	@r=`${PWD_COMMAND}`; export r; \
 	s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 @if gcc-bootstrap
-	if [ -f stage_last ]; then : ; \
+	if [ -f stage_last ]; then \
 	  TFLAGS="$(STAGE$(shell sed s,^stage,, stage_last)_TFLAGS)"; \
 	  $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target; \
 	else \
 @endif gcc-bootstrap
-@if gcc-no-bootstrap
-	if :; then :; \
-@endif gcc-no-bootstrap
-	  $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target; \
+	  $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target \
+@if gcc-bootstrap
+	    ; \
 	fi
+@endif gcc-bootstrap
 
 .PHONY: all-build
 
diff --git a/Makefile.tpl b/Makefile.tpl
index d4b2f0314b7..bc7c415f090 100644
--- a/Makefile.tpl
+++ b/Makefile.tpl
@@ -625,11 +625,11 @@ all:
 	  $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target; \
 	else \
 @endif gcc-bootstrap
-@if gcc-no-bootstrap
-	if :; then :; \
-@endif gcc-no-bootstrap
-	  $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target; \
+	  $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target \
+@if gcc-bootstrap
+	    ; \
 	fi
+@endif gcc-bootstrap
 
 .PHONY: all-build
 [+ FOR build_modules +]