summaryrefslogtreecommitdiff
path: root/compiler/codeGen/CgUtils.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/codeGen/CgUtils.hs')
-rw-r--r--compiler/codeGen/CgUtils.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/compiler/codeGen/CgUtils.hs b/compiler/codeGen/CgUtils.hs
index 3ee47264e7..a0a5ac2554 100644
--- a/compiler/codeGen/CgUtils.hs
+++ b/compiler/codeGen/CgUtils.hs
@@ -350,6 +350,12 @@ callerSaves (VanillaReg 7 _) = True
#ifdef CALLER_SAVES_R8
callerSaves (VanillaReg 8 _) = True
#endif
+#ifdef CALLER_SAVES_R9
+callerSaves (VanillaReg 9 _) = True
+#endif
+#ifdef CALLER_SAVES_R10
+callerSaves (VanillaReg 10 _) = True
+#endif
#ifdef CALLER_SAVES_F1
callerSaves (FloatReg 1) = True
#endif
@@ -921,6 +927,12 @@ activeStgRegs = [
#ifdef REG_R8
,VanillaReg 8 VGcPtr
#endif
+#ifdef REG_R9
+ ,VanillaReg 9 VGcPtr
+#endif
+#ifdef REG_R10
+ ,VanillaReg 10 VGcPtr
+#endif
#ifdef REG_SpLim
,SpLim
#endif