Fix build on PPC: Add some missing parentheses
[ghc-hetmet.git] / compiler / nativeGen / PprMach.hs
index 5e9ff51..38267d0 100644 (file)
@@ -24,6 +24,8 @@ module PprMach (
        pprInstr, pprSize, pprUserReg
   ) where
 
+#include "HsVersions.h"
+
 import Cmm
 import MachOp          ( MachRep(..), wordRep, isFloatingRep )
 import MachRegs                -- may differ per-platform
@@ -599,7 +601,7 @@ pprAddr (AddrRegImm r1 imm)
 
 #if powerpc_TARGET_ARCH
 pprAddr (AddrRegReg r1 r2)
-  = pprReg r1 <+> ptext sLit ", " <+> pprReg r2
+  = pprReg r1 <+> ptext (sLit ", ") <+> pprReg r2
 
 pprAddr (AddrRegImm r1 (ImmInt i)) = hcat [ int i, char '(', pprReg r1, char ')' ]
 pprAddr (AddrRegImm r1 (ImmInteger i)) = hcat [ integer i, char '(', pprReg r1, char ')' ]
@@ -714,7 +716,7 @@ pprASCII str
        do1 w = ptext (sLit "\t.byte\t") <> int (fromIntegral w)
 
 pprAlign bytes =
-       IF_ARCH_alpha(ptextSLIT(".align ") <> int pow2,
+       IF_ARCH_alpha(ptext (sLit ".align ") <> int pow2,
        IF_ARCH_i386(ptext (sLit ".align ") <> int IF_OS_darwin(pow2,bytes),
        IF_ARCH_x86_64(ptext (sLit ".align ") <> int IF_OS_darwin(pow2,bytes),
        IF_ARCH_sparc(ptext (sLit ".align ") <> int bytes,