From da3e88ae5b24b4c5aeca4e73791165f797a1189a Mon Sep 17 00:00:00 2001
From: DJ Delorie <dj@redhat.com>
Date: Wed, 8 Dec 2004 18:57:27 +0000
Subject: [PATCH] * Makefile.tpl: Generate normal dependencies if the LHS
 module is not bootstrapped. * Makefile.in: Regenerate.

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

diff --git a/ChangeLog b/ChangeLog
index 5863f89cd..4d2f3cf62 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-12-07  Matt Kraai  <kraai@ftbfs.org>
+
+	* Makefile.tpl: Generate normal dependencies if the LHS module is
+	not bootstrapped.
+	* Makefile.in: Regenerate.
+
 2004-12-03  Richard Sandiford  <rsandifo@redhat.com>
 
 	* configure.in: Include config/gxx-include-dir.m4.  Use
diff --git a/Makefile.in b/Makefile.in
index 63dc6eaa8..45c405930 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -35172,13 +35172,6 @@ all-stage4-gcc: maybe-all-stage4-libiberty
 all-stageprofile-gcc: maybe-all-stageprofile-libiberty
 all-stagefeedback-gcc: maybe-all-stagefeedback-libiberty
 all-gcc: maybe-all-fixincludes
-
-all-stage1-gcc: maybe-all-stage1-fixincludes
-all-stage2-gcc: maybe-all-stage2-fixincludes
-all-stage3-gcc: maybe-all-stage3-fixincludes
-all-stage4-gcc: maybe-all-stage4-fixincludes
-all-stageprofile-gcc: maybe-all-stageprofile-fixincludes
-all-stagefeedback-gcc: maybe-all-stagefeedback-fixincludes
 install-gcc: maybe-install-fixincludes
 configure-libcpp: configure-libiberty
 
diff --git a/Makefile.tpl b/Makefile.tpl
index da82258e4..44c15fd53 100644
--- a/Makefile.tpl
+++ b/Makefile.tpl
@@ -1625,8 +1625,8 @@ configure-target-[+module+]: maybe-all-target-newlib maybe-all-target-libgloss
    (define dep-maybe (lambda ()
       (if (exist? "hard") "" "maybe-")))
 
-   ;; dep-kind returns "normal" is the dependency is on an "install" target,
-   ;; or if the LHS module is not bootstrapped.  It returns "bootstrap" for
+   ;; dep-kind returns "normal" if the dependency is on an "install" target,
+   ;; or if either module is not bootstrapped.  It returns "bootstrap" for
    ;; configure or build dependencies between bootstrapped modules; it returns
    ;; "prebootstrap" for configure or build dependencies of bootstrapped
    ;; modules on a build module (e.g. all-gcc on all-build-bison).  All this
@@ -1638,7 +1638,8 @@ configure-target-[+module+]: maybe-all-target-newlib maybe-all-target-libgloss
 
 	  (if (or (= (dep-subtarget "on") "install-")
 		  (=* (dep-module "on") "target-")
-		  (not (hash-ref boot-modules (dep-module "module"))))
+		  (not (hash-ref boot-modules (dep-module "module")))
+		  (not (hash-ref boot-modules (dep-module "on"))))
               "normal"
 	      "bootstrap"))))