From f6d38cd45225acd1d6a729fbeebd43146a498feb Mon Sep 17 00:00:00 2001 From: "Ben.Lippmeier@anu.edu.au" Date: Sun, 15 Feb 2009 07:13:34 +0000 Subject: [PATCH] NCG: validate fixes for ghc-6.6 --- compiler/ghc.cabal.in | 1 - compiler/nativeGen/Alpha/{Ppr.hs => Ppr.hs-old} | 16 ++++------------ 2 files changed, 4 insertions(+), 13 deletions(-) rename compiler/nativeGen/Alpha/{Ppr.hs => Ppr.hs-old} (96%) diff --git a/compiler/ghc.cabal.in b/compiler/ghc.cabal.in index b276943..508615c 100644 --- a/compiler/ghc.cabal.in +++ b/compiler/ghc.cabal.in @@ -466,7 +466,6 @@ Library Alpha.Regs Alpha.RegInfo Alpha.Instr - Alpha.Ppr Alpha.CodeGen X86.Regs X86.RegInfo diff --git a/compiler/nativeGen/Alpha/Ppr.hs b/compiler/nativeGen/Alpha/Ppr.hs-old similarity index 96% rename from compiler/nativeGen/Alpha/Ppr.hs rename to compiler/nativeGen/Alpha/Ppr.hs-old index f48c83c..c14eef2 100644 --- a/compiler/nativeGen/Alpha/Ppr.hs +++ b/compiler/nativeGen/Alpha/Ppr.hs-old @@ -158,18 +158,7 @@ pprTypeAndSizeDecl lbl pprInstr :: Instr -> Doc -pprInstr (COMMENT s) = empty -- nuke 'em -{- -pprInstr (COMMENT s) - = IF_ARCH_alpha( ((<>) (ptext (sLit "\t# ")) (ftext s)) - ,IF_ARCH_sparc( ((<>) (ptext (sLit "# ")) (ftext s)) - ,IF_ARCH_i386( ((<>) (ptext (sLit "# ")) (ftext s)) - ,IF_ARCH_x86_64( ((<>) (ptext (sLit "# ")) (ftext s)) - ,IF_ARCH_powerpc( IF_OS_linux( - ((<>) (ptext (sLit "# ")) (ftext s)), - ((<>) (ptext (sLit "; ")) (ftext s))) - ,))))) --} + pprInstr (DELTA d) = pprInstr (COMMENT (mkFastString ("\tdelta = " ++ show d))) @@ -568,3 +557,6 @@ pprSizeRegRegReg name size reg1 reg2 reg3 ] -} + + + -- 1.7.10.4