X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FnativeGen%2FPprMach.hs;h=a337512ce9a45b3d82f10abb3146b2b983def33e;hb=589238c4c2712d29092086926cc48eeb5e9b8fa7;hp=a2ae0e38eb21dc9525ec873d6bc5e363068e4931;hpb=0168c633a9d209e978528f059193d19cdb5e6740;p=ghc-hetmet.git diff --git a/compiler/nativeGen/PprMach.hs b/compiler/nativeGen/PprMach.hs index a2ae0e3..a337512 100644 --- a/compiler/nativeGen/PprMach.hs +++ b/compiler/nativeGen/PprMach.hs @@ -10,6 +10,13 @@ -- (e.g., 'pprReg'); we conclude with the no-commonality monster, -- 'pprInstr'. +{-# OPTIONS_GHC -w #-} +-- The above warning supression flag is a temporary kludge. +-- While working on this module you are encouraged to remove it and fix +-- any warnings in the module. See +-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings +-- for details + #include "nativeGen/NCG.h" module PprMach ( @@ -1227,17 +1234,6 @@ pprSizeRegRegReg name size reg1 reg2 reg3 #if i386_TARGET_ARCH || x86_64_TARGET_ARCH -{- -- BUGS: changed for coloring allocator -pprInstr v@(MOV size s@(OpReg src) d@(OpReg dst)) -- hack -- write a pass for this and patch linear allocator with it - | src == dst - = -#if 0 /* #ifdef DEBUG */ - (<>) (ptext SLIT("# warning: ")) (pprSizeOpOp SLIT("mov") size s d) -#else - empty -#endif --} - pprInstr (SPILL reg slot) = hcat [ ptext SLIT("\tSPILL"),