[project @ 2000-07-03 15:03:13 by simonmar]
authorsimonmar <unknown>
Mon, 3 Jul 2000 15:03:13 +0000 (15:03 +0000)
committersimonmar <unknown>
Mon, 3 Jul 2000 15:03:13 +0000 (15:03 +0000)
fix phase ordering for NCG + -split-objs.

ghc/driver/Main.hs

index e3a3bc5..6c982ad 100644 (file)
@@ -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