summaryrefslogtreecommitdiff
path: root/compiler/codeGen/CgUtils.hs
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2012-09-14 15:24:30 +0100
committerIan Lynagh <ian@well-typed.com>2012-09-14 15:24:30 +0100
commitf203e63c6ff92bde63a206a58ea63ec082033b8a (patch)
tree0fdb84f953c6195727971d765a025c076fc5e07f /compiler/codeGen/CgUtils.hs
parent6f3be2b6ea39ee28d6cf8da08effb5dd215c92f2 (diff)
downloadhaskell-f203e63c6ff92bde63a206a58ea63ec082033b8a.tar.gz
Move more constants into platformConstants
Diffstat (limited to 'compiler/codeGen/CgUtils.hs')
-rw-r--r--compiler/codeGen/CgUtils.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/codeGen/CgUtils.hs b/compiler/codeGen/CgUtils.hs
index 64b116dc60..228c5bd2c6 100644
--- a/compiler/codeGen/CgUtils.hs
+++ b/compiler/codeGen/CgUtils.hs
@@ -299,11 +299,11 @@ callerSaveVolatileRegs dflags vols = (caller_save, caller_load)
vol_list = case vols of Nothing -> all_of_em; Just regs -> regs
- all_of_em = [ VanillaReg n VNonGcPtr | n <- [0..mAX_Vanilla_REG] ]
+ all_of_em = [ VanillaReg n VNonGcPtr | n <- [0 .. mAX_Vanilla_REG dflags] ]
-- The VNonGcPtr is a lie, but I don't think it matters
- ++ [ FloatReg n | n <- [0..mAX_Float_REG] ]
- ++ [ DoubleReg n | n <- [0..mAX_Double_REG] ]
- ++ [ LongReg n | n <- [0..mAX_Long_REG] ]
+ ++ [ FloatReg n | n <- [0 .. mAX_Float_REG dflags] ]
+ ++ [ DoubleReg n | n <- [0 .. mAX_Double_REG dflags] ]
+ ++ [ LongReg n | n <- [0 .. mAX_Long_REG dflags] ]
callerSaveGlobalReg reg next
| callerSaves platform reg =