summaryrefslogtreecommitdiff
path: root/compiler/nativeGen/PprMach.hs
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2009-02-06 15:12:03 +0000
committerIan Lynagh <igloo@earth.li>2009-02-06 15:12:03 +0000
commit4c4f9f5c24780e368d54be6f8ccfbdfe1ee03554 (patch)
tree65583b0998c0f21100f1223e070b8521733b9145 /compiler/nativeGen/PprMach.hs
parent3710a4ef1ca665fe4ed705a6b0f4400d680c7b54 (diff)
downloadhaskell-4c4f9f5c24780e368d54be6f8ccfbdfe1ee03554.tar.gz
Fix the build on OS X: only understands .space, not .skip
Diffstat (limited to 'compiler/nativeGen/PprMach.hs')
-rw-r--r--compiler/nativeGen/PprMach.hs8
1 files changed, 7 insertions, 1 deletions
diff --git a/compiler/nativeGen/PprMach.hs b/compiler/nativeGen/PprMach.hs
index 55e3930786..88a8f3fce5 100644
--- a/compiler/nativeGen/PprMach.hs
+++ b/compiler/nativeGen/PprMach.hs
@@ -693,7 +693,13 @@ pprData :: CmmStatic -> Doc
pprData (CmmAlign bytes) = pprAlign bytes
pprData (CmmDataLabel lbl) = pprLabel lbl
pprData (CmmString str) = pprASCII str
-pprData (CmmUninitialised bytes) = ptext (sLit ".skip ") <> int bytes
+pprData (CmmUninitialised bytes) = ptext (sLit s) <> int bytes
+ where s =
+#if defined(solaris2_TARGET_OS)
+ ".skip "
+#else
+ ".space "
+#endif
pprData (CmmStaticLit lit) = pprDataItem lit
pprGloblDecl :: CLabel -> Doc