[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 394/437: Move multiply defined macro to a single header
From: |
Andy Wingo |
Subject: |
[Guile-commits] 394/437: Move multiply defined macro to a single header file. |
Date: |
Mon, 2 Jul 2018 05:15:02 -0400 (EDT) |
wingo pushed a commit to branch lightning
in repository guile.
commit 1ce1d00db8d3d6457c0c838f77b4c1567c593722
Author: pcpa <address@hidden>
Date: Mon May 25 15:53:17 2015 -0300
Move multiply defined macro to a single header file.
---
include/lightning/jit_private.h | 3 +++
lib/jit_aarch64.c | 2 --
lib/jit_alpha.c | 2 --
lib/jit_arm.c | 2 --
lib/jit_hppa.c | 2 --
lib/jit_ia64.c | 2 --
lib/jit_mips.c | 3 ---
lib/jit_ppc.c | 2 --
lib/jit_s390.c | 2 --
lib/jit_sparc.c | 2 --
lib/jit_x86.c | 2 --
11 files changed, 3 insertions(+), 21 deletions(-)
diff --git a/include/lightning/jit_private.h b/include/lightning/jit_private.h
index 86e583d..953e361 100644
--- a/include/lightning/jit_private.h
+++ b/include/lightning/jit_private.h
@@ -47,6 +47,9 @@
# define HIDDEN /**/
#endif
+#define rc(value) jit_class_##value
+#define rn(reg) (jit_regno(_rvs[jit_regno(reg)].spec))
+
#if defined(__i386__) || defined(__x86_64__)
# define JIT_SP _RSP
# define JIT_RET _RAX
diff --git a/lib/jit_aarch64.c b/lib/jit_aarch64.c
index 0e1da00..9273b45 100644
--- a/lib/jit_aarch64.c
+++ b/lib/jit_aarch64.c
@@ -17,8 +17,6 @@
* Paulo Cesar Pereira de Andrade
*/
-#define rc(value) jit_class_##value
-#define rn(reg)
(jit_regno(_rvs[jit_regno(reg)].spec))
#define jit_arg_reg_p(i) ((i) >= 0 && (i) < 8)
#define jit_arg_f_reg_p(i) ((i) >= 0 && (i) < 8)
diff --git a/lib/jit_alpha.c b/lib/jit_alpha.c
index 02577d3..ea0abb1 100644
--- a/lib/jit_alpha.c
+++ b/lib/jit_alpha.c
@@ -17,8 +17,6 @@
* Paulo Cesar Pereira de Andrade
*/
-#define rc(value) jit_class_##value
-#define rn(reg)
(jit_regno(_rvs[jit_regno(reg)].spec))
#define jit_arg_reg_p(i) ((i) >= 0 && (i) < 6)
#define jit_arg_f_reg_p(i) ((i) >= 0 && (i) < 6)
#if __BYTE_ORDER == __LITTLE_ENDIAN
diff --git a/lib/jit_arm.c b/lib/jit_arm.c
index 60a8ff1..4da9c25 100644
--- a/lib/jit_arm.c
+++ b/lib/jit_arm.c
@@ -21,8 +21,6 @@
# include <stdio.h>
#endif
-#define rc(value) jit_class_##value
-#define rn(reg)
(jit_regno(_rvs[jit_regno(reg)].spec))
#define jit_arg_reg_p(i) ((i) >= 0 && (i) < 4)
#define jit_arg_f_reg_p(i) ((i) >= 0 && (i) < 16)
#define jit_arg_d_reg_p(i) ((i) >= 0 && (i) < 15)
diff --git a/lib/jit_hppa.c b/lib/jit_hppa.c
index d977aa7..94e9595 100644
--- a/lib/jit_hppa.c
+++ b/lib/jit_hppa.c
@@ -20,8 +20,6 @@
#include <lightning.h>
#include <lightning/jit_private.h>
-#define rc(value) jit_class_##value
-#define rn(reg)
(jit_regno(_rvs[jit_regno(reg)].spec))
#define jit_arg_reg_p(i) (i >= 0 && i < 4)
#define PROTO 1
diff --git a/lib/jit_ia64.c b/lib/jit_ia64.c
index 28a5d75..b0b8954 100644
--- a/lib/jit_ia64.c
+++ b/lib/jit_ia64.c
@@ -20,8 +20,6 @@
#include <lightning.h>
#include <lightning/jit_private.h>
-#define rc(value) jit_class_##value
-#define rn(reg)
(jit_regno(_rvs[jit_regno(reg)].spec))
#define jit_arg_reg_p(i) ((i) >= 0 && (i) < 8)
#if __BYTE_ORDER == __LITTLE_ENDIAN
# define C_DISP 0
diff --git a/lib/jit_mips.c b/lib/jit_mips.c
index ccf7664..ffbeac6 100644
--- a/lib/jit_mips.c
+++ b/lib/jit_mips.c
@@ -21,9 +21,6 @@
# include <sys/cachectl.h>
#endif
-#define rc(value) jit_class_##value
-#define rn(reg)
(jit_regno(_rvs[jit_regno(reg)].spec))
-
/* FIXME Need to detect (from /proc on Linux?) if a Loongson or Godson,
* because n32 and n64 mandate that float registers are 64 bit, and
* on the later, registers are 32 bit.
diff --git a/lib/jit_ppc.c b/lib/jit_ppc.c
index 650f70f..940dc06 100644
--- a/lib/jit_ppc.c
+++ b/lib/jit_ppc.c
@@ -17,8 +17,6 @@
* Paulo Cesar Pereira de Andrade
*/
-#define rc(value) jit_class_##value
-#define rn(reg)
(jit_regno(_rvs[jit_regno(reg)].spec))
#define jit_arg_reg_p(i) ((i) >= 0 && (i) < 8)
#define jit_arg_f_reg_p(i) ((i) >= 0 && (i) < 13)
#if __BYTE_ORDER == __LITTLE_ENDIAN
diff --git a/lib/jit_s390.c b/lib/jit_s390.c
index 7bd1f28..1f59745 100644
--- a/lib/jit_s390.c
+++ b/lib/jit_s390.c
@@ -20,8 +20,6 @@
#include <lightning.h>
#include <lightning/jit_private.h>
-#define rc(value) jit_class_##value
-#define rn(reg)
(jit_regno(_rvs[jit_regno(reg)].spec))
#if __WORDSIZE == 32
# define NUM_FLOAT_REG_ARGS 2
#else
diff --git a/lib/jit_sparc.c b/lib/jit_sparc.c
index 101abfa..c3c8297 100644
--- a/lib/jit_sparc.c
+++ b/lib/jit_sparc.c
@@ -17,8 +17,6 @@
* Paulo Cesar Pereira de Andrade
*/
-#define rc(value) jit_class_##value
-#define rn(reg)
(jit_regno(_rvs[jit_regno(reg)].spec))
#define jit_arg_reg_p(i) ((i) >= 0 && (i) < 6)
#define jit_arg_d_reg_p(i) ((i) >= 0 && (i) < 5)
diff --git a/lib/jit_x86.c b/lib/jit_x86.c
index fadd9c5..cbdf5a0 100644
--- a/lib/jit_x86.c
+++ b/lib/jit_x86.c
@@ -20,8 +20,6 @@
#include <lightning.h>
#include <lightning/jit_private.h>
-#define rc(value) jit_class_##value
-#define rn(reg)
(jit_regno(_rvs[jit_regno(reg)].spec))
#if __X32
# define jit_arg_reg_p(i) 0
# define jit_arg_f_reg_p(i) 0
- [Guile-commits] 315/437: Add string representation of IR codes to -sz.c files, (continued)
- [Guile-commits] 315/437: Add string representation of IR codes to -sz.c files, Andy Wingo, 2018/07/02
- [Guile-commits] 402/437: Correct wrong check for argument of value 2 in check/fib.tst., Andy Wingo, 2018/07/02
- [Guile-commits] 374/437: Add initial support to implement vararg jit functions, Andy Wingo, 2018/07/02
- [Guile-commits] 171/437: Add the new ccall test case to test interleaved C and jit function calls, Andy Wingo, 2018/07/02
- [Guile-commits] 51/437: switch to GPLv3, Andy Wingo, 2018/07/02
- [Guile-commits] 160/437: Correct bogus logic caused by wrong optimizations., Andy Wingo, 2018/07/02
- [Guile-commits] 05/437: use autoheader like every other package in this world, Andy Wingo, 2018/07/02
- [Guile-commits] 341/437: Add missing float rsbi strings, Andy Wingo, 2018/07/02
- [Guile-commits] 296/437: ALPHA: Implement lightning Alpha port., Andy Wingo, 2018/07/02
- [Guile-commits] 207/437: Correct race condition if register is written more than once, Andy Wingo, 2018/07/02
- [Guile-commits] 394/437: Move multiply defined macro to a single header file.,
Andy Wingo <=
- [Guile-commits] 366/437: Correct inconsistency with jit_regno_patch, Andy Wingo, 2018/07/02
- [Guile-commits] 421/437: Remove documentation from embedded GNU lightning, Andy Wingo, 2018/07/02
- [Guile-commits] 195/437: Minor updates when testing on a prototype, quadcore Loongson mips., Andy Wingo, 2018/07/02
- [Guile-commits] 332/437: Add test case to check possible issues with 2 contexts, Andy Wingo, 2018/07/02
- [Guile-commits] 189/437: Pass all but the (not yet implemented) qmul and qdiv tests in sparc, Andy Wingo, 2018/07/02
- [Guile-commits] 217/437: Adjust lightning to work on ppc AIX., Andy Wingo, 2018/07/02
- [Guile-commits] 223/437: Build and pass all tests on big endian Irix mips using the n32 abi., Andy Wingo, 2018/07/02
- [Guile-commits] 205/437: Properly split instruction groups for predicate registers., Andy Wingo, 2018/07/02
- [Guile-commits] 391/437: aarch64: Correct va_list offsets and double load., Andy Wingo, 2018/07/02
- [Guile-commits] 304/437: Correct typo in documentation., Andy Wingo, 2018/07/02