projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Represent the free register set using Word64 on x86-64 (fixes ffi009)
[ghc-hetmet.git]
/
compiler
/
nativeGen
/
RegAlloc
/
Linear
/
X86
/
FreeRegs.hs
diff --git
a/compiler/nativeGen/RegAlloc/Linear/X86/FreeRegs.hs
b/compiler/nativeGen/RegAlloc/Linear/X86/FreeRegs.hs
index
4ba637f
..
0a15e56
100644
(file)
--- a/
compiler/nativeGen/RegAlloc/Linear/X86/FreeRegs.hs
+++ b/
compiler/nativeGen/RegAlloc/Linear/X86/FreeRegs.hs
@@
-12,7
+12,11
@@
import Data.Word
import Data.Bits
type FreeRegs
+#ifdef i386_TARGET_ARCH
= Word32
+#else
+ = Word64
+#endif
noFreeRegs :: FreeRegs
noFreeRegs = 0