summaryrefslogtreecommitdiff
path: root/includes/stg
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2013-01-30 19:38:33 +0000
committerSimon Marlow <marlowsd@gmail.com>2013-01-30 20:25:52 +0000
commitc78804dbdf738b9294535968c64c981fdae037c6 (patch)
tree0b169b46fed8067383d78e1014d75bd61a312a67 /includes/stg
parent490920583817a650e45956025fce64af2ea1bb92 (diff)
downloadhaskell-c78804dbdf738b9294535968c64c981fdae037c6.tar.gz
\#undef REG_R[1-10] as a precaution
Diffstat (limited to 'includes/stg')
-rw-r--r--includes/stg/MachRegs.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/includes/stg/MachRegs.h b/includes/stg/MachRegs.h
index 8cefe9bc64..6dc81f63c1 100644
--- a/includes/stg/MachRegs.h
+++ b/includes/stg/MachRegs.h
@@ -20,6 +20,21 @@
*/
/*
+ * Undefine these as a precaution: some of them were found to be
+ * defined by system headers on ARM/Linux.
+ */
+#undef REG_R1
+#undef REG_R2
+#undef REG_R3
+#undef REG_R4
+#undef REG_R5
+#undef REG_R6
+#undef REG_R7
+#undef REG_R8
+#undef REG_R9
+#undef REG_R10
+
+/*
* Defining MACHREGS_NO_REGS to 1 causes no global registers to be used.
* MACHREGS_NO_REGS is typically controlled by NO_REGS, which is
* typically defined by GHC, via a command-line option passed to gcc,