[project @ 2000-07-03 16:06:17 by simonmar]
authorsimonmar <unknown>
Mon, 3 Jul 2000 16:06:17 +0000 (16:06 +0000)
committersimonmar <unknown>
Mon, 3 Jul 2000 16:06:17 +0000 (16:06 +0000)
D'oh!  Only generate split markers when actually splitting

ghc/compiler/nativeGen/AbsCStixGen.lhs

index 889013d..6db7b79 100644 (file)
@@ -46,7 +46,7 @@ import DataCon                ( dataConWrapId )
 import BitSet          ( intBS )
 import Name             ( NamedThing(..) )
 import Char            ( ord )
-import CmdLineOpts     ( opt_Static )
+import CmdLineOpts     ( opt_Static, opt_EnsureSplittableC )
 \end{code}
 
 For each independent chunk of AbstractC code, we generate a list of
@@ -263,7 +263,9 @@ split-mangler later on and used to split the assembly into chunks.
 
 \begin{code}
 
- gencode CSplitMarker = returnUs (\xs -> StLabel mkSplitMarkerLabel : xs)
+ gencode CSplitMarker
+   | opt_EnsureSplittableC = returnUs (\xs -> StLabel mkSplitMarkerLabel : xs)
+   | otherwise             = returnUs id
 
 \end{code}