wingo pushed a commit to branch lightning
in repository guile.
commit 565c3a064ea5170eef65f6a905d9500a33266a0e
Author: pcpa <[email protected]>
Date: Wed Oct 2 23:18:06 2013 -0300
MIPS: Correct abi detection.
* include/lightning/jit_mips.h: Add proper mips abi detection.
---
ChangeLog | 4 ++++
include/lightning/jit_mips.h | 7 +++++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 351166b..4763eb3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-10-02 Paulo Andrade <[email protected]>
+
+ * include/lightning/jit_mips.h: Add proper mips abi detection.
+
2013-10-30 Paulo Andrade <[email protected]>
* lib/jit_print.c: Do not crash if calling jit_print from
diff --git a/include/lightning/jit_mips.h b/include/lightning/jit_mips.h
index a936f36..855e33d 100644
--- a/include/lightning/jit_mips.h
+++ b/include/lightning/jit_mips.h
@@ -23,8 +23,11 @@
#define JIT_HASH_CONSTS 1
#define JIT_NUM_OPERANDS 3
-#if defined(_ABIN32)
-# define NEW_ABI 1
+#if _MIPS_SIM == _ABIN32
+# define NEW_ABI 1
+#elif _MIPS_SIM != _ABIO32
+/* FIXME port to _ABI64 */
+# error "Unsupported ABI"
#endif
/*