summaryrefslogtreecommitdiff
path: root/includes/stg/MachRegs.h
diff options
context:
space:
mode:
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 a0cf595505..f58e49e626 100644
--- a/includes/stg/MachRegs.h
+++ b/includes/stg/MachRegs.h
@@ -81,7 +81,7 @@
Leaving SpLim out of the picture.
-------------------------------------------------------------------------- */
-#if MACHREGS_i386
+#ifdef MACHREGS_i386
#define REG(x) __asm__("%" #x)
@@ -155,7 +155,7 @@
--------------------------------------------------------------------------- */
-#elif MACHREGS_x86_64
+#elif defined(MACHREGS_x86_64)
#define REG(x) __asm__("%" #x)
@@ -302,7 +302,7 @@ the stack. See Note [Overlapping global registers] for implications.
We can do the Whole Business with callee-save registers only!
-------------------------------------------------------------------------- */
-#elif MACHREGS_powerpc
+#elif defined(MACHREGS_powerpc)
#define REG(x) __asm__(#x)
@@ -315,7 +315,7 @@ the stack. See Note [Overlapping global registers] for implications.
#define REG_R7 r20
#define REG_R8 r21
-#if MACHREGS_darwin
+#ifdef MACHREGS_darwin
#define REG_F1 f14
#define REG_F2 f15
@@ -441,7 +441,7 @@ the stack. See Note [Overlapping global registers] for implications.
-------------------------------------------------------------------------- */
-#elif MACHREGS_sparc
+#elif defined(MACHREGS_sparc)
#define REG(x) __asm__("%" #x)
@@ -520,7 +520,7 @@ the stack. See Note [Overlapping global registers] for implications.
d16-d31/q8-q15 Argument / result/ scratch registers
----------------------------------------------------------------------------- */
-#elif MACHREGS_arm
+#elif defined(MACHREGS_arm)
#define REG(x) __asm__(#x)
@@ -577,7 +577,7 @@ the stack. See Note [Overlapping global registers] for implications.
----------------------------------------------------------------------------- */
-#elif MACHREGS_aarch64
+#elif defined(MACHREGS_aarch64)
#define REG(x) __asm__(#x)