Fix build for non-x86 architectures
authorBen.Lippmeier@anu.edu.au <unknown>
Mon, 15 Feb 2010 01:47:19 +0000 (01:47 +0000)
committerBen.Lippmeier@anu.edu.au <unknown>
Mon, 15 Feb 2010 01:47:19 +0000 (01:47 +0000)
compiler/nativeGen/X86/RegInfo.hs
compiler/nativeGen/X86/Regs.hs

index eb8e82c..21b594e 100644 (file)
@@ -74,6 +74,7 @@ regDotColor :: Reg -> SDoc
 regDotColor    = panic "not defined"
 #endif
 
+#if i386_TARGET_ARCH || x86_64_TARGET_ARCH
 fpRegColors :: [(Reg,String)]
 fpRegColors =
         [ (fake0, "#ff00ff")
@@ -84,3 +85,4 @@ fpRegColors =
        , (fake5, "#5500ff") ]
 
        ++ zip (map regSingle [24..39]) (repeat "red")
+#endif
index 77e1779..697528d 100644 (file)
@@ -281,9 +281,12 @@ regNames
    = ["%eax", "%ebx", "%ecx", "%edx", "%esi", "%edi", "%ebp", "%esp"]
 #elif x86_64_TARGET_ARCH
    = ["%rax", "%rbx", "%rcx", "%rdx", "%rsi", "%rdi", "%rbp", "%rsp" ]
+#else
+   = []
 #endif
 
 
+
 -- machine specific ------------------------------------------------------------