From 9572adeada0d0b53d5d356ec03fca96985faa858 Mon Sep 17 00:00:00 2001 From: Steven Watanabe Date: Mon, 30 Apr 2012 18:21:47 +0000 Subject: [PATCH] Avoid a self-cycle in scc_root. [SVN r78283] --- v2/engine/make1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/v2/engine/make1.c b/v2/engine/make1.c index 31abdc379..2cacf38c0 100644 --- a/v2/engine/make1.c +++ b/v2/engine/make1.c @@ -1232,7 +1232,8 @@ static void make1cyclenode( TARGET * t, TARGET * scc_root ) ++scc_root->asynccnt; } } - t->scc_root = scc_root; + if ( t != scc_root ) + t->scc_root = scc_root; }