From ab661fe04ea005e60c8f5ba223d22e3122dff900 Mon Sep 17 00:00:00 2001
From: simonmar <unknown>
Date: Mon, 3 Jul 2000 15:03:13 +0000
Subject: [PATCH] [project @ 2000-07-03 15:03:13 by simonmar] fix phase
 ordering for NCG + -split-objs.

---
 ghc/driver/Main.hs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ghc/driver/Main.hs b/ghc/driver/Main.hs
index e3a3bc5cd33a..6c982ad872c5 100644
--- a/ghc/driver/Main.hs
+++ b/ghc/driver/Main.hs
@@ -1123,7 +1123,8 @@ run_pipeline last_phase do_linking use_ofile orig_basename (phase, input_fn)
 	  case phase of
 		Hsc -> case lang of
 		 	    HscC   -> HCc
-			    HscAsm -> As
+			    HscAsm | split     -> SplitMangle
+				   | otherwise -> As
 
 		HCc  | mangle    -> Mangle
 		     | otherwise -> As
-- 
GitLab