summaryrefslogtreecommitdiff
path: root/includes/stg/MachRegs.h
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2017-04-05 12:01:12 -0400
committerBen Gamari <ben@smart-cactus.org>2017-04-05 12:12:48 -0400
commit819c3db73acf5246cd332ad3062c61b7a2e8ee68 (patch)
tree7425f16a8771d1bb917afb65b848ebf855c8c619 /includes/stg/MachRegs.h
parent4a1eed40bec08d50634b9754448ae34666e71fb2 (diff)
downloadhaskell-819c3db73acf5246cd332ad3062c61b7a2e8ee68.tar.gz
Revert "Enable new warning for fragile/incorrect CPP #if usage"
This is causing too much platform dependent breakage at the moment. We will need a more rigorous testing strategy before this can be merged again. This reverts commit 7e340c2bbf4a56959bd1e95cdd1cfdb2b7e537c2.
Diffstat (limited to 'includes/stg/MachRegs.h')
-rw-r--r--includes/stg/MachRegs.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/includes/stg/MachRegs.h b/includes/stg/MachRegs.h
index bed6b90324..232ce03810 100644
--- a/includes/stg/MachRegs.h
+++ b/includes/stg/MachRegs.h
@@ -82,7 +82,7 @@
Leaving SpLim out of the picture.
-------------------------------------------------------------------------- */
-#ifdef MACHREGS_i386
+#if MACHREGS_i386
#define REG(x) __asm__("%" #x)
@@ -156,7 +156,7 @@
--------------------------------------------------------------------------- */
-#elif defined(MACHREGS_x86_64)
+#elif MACHREGS_x86_64
#define REG(x) __asm__("%" #x)
@@ -303,7 +303,7 @@ the stack. See Note [Overlapping global registers] for implications.
We can do the Whole Business with callee-save registers only!
-------------------------------------------------------------------------- */
-#elif defined(MACHREGS_powerpc)
+#elif MACHREGS_powerpc
#define REG(x) __asm__(#x)
@@ -316,7 +316,7 @@ the stack. See Note [Overlapping global registers] for implications.
#define REG_R7 r20
#define REG_R8 r21
-#ifdef MACHREGS_darwin
+#if MACHREGS_darwin
#define REG_F1 f14
#define REG_F2 f15
@@ -442,7 +442,7 @@ the stack. See Note [Overlapping global registers] for implications.
-------------------------------------------------------------------------- */
-#elif defined(MACHREGS_sparc)
+#elif MACHREGS_sparc
#define REG(x) __asm__("%" #x)
@@ -521,7 +521,7 @@ the stack. See Note [Overlapping global registers] for implications.
d16-d31/q8-q15 Argument / result/ scratch registers
----------------------------------------------------------------------------- */
-#elif defined(MACHREGS_arm)
+#elif MACHREGS_arm
#define REG(x) __asm__(#x)
@@ -578,7 +578,7 @@ the stack. See Note [Overlapping global registers] for implications.
----------------------------------------------------------------------------- */
-#elif defined(MACHREGS_aarch64)
+#elif MACHREGS_aarch64
#define REG(x) __asm__(#x)