[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 395/437: Use an actual, invalid code, as last jit code.
From: |
Andy Wingo |
Subject: |
[Guile-commits] 395/437: Use an actual, invalid code, as last jit code. |
Date: |
Mon, 2 Jul 2018 05:15:02 -0400 (EDT) |
wingo pushed a commit to branch lightning
in repository guile.
commit e21db9c421ed9d8dace3d007e84c412c1cc415a0
Author: pcpa <address@hidden>
Date: Mon May 25 16:00:01 2015 -0300
Use an actual, invalid code, as last jit code.
---
include/lightning.h | 2 +-
lib/jit_size.c | 2 +-
size.c | 6 +++---
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/include/lightning.h b/include/lightning.h
index 23585a4..d045ca1 100644
--- a/include/lightning.h
+++ b/include/lightning.h
@@ -871,7 +871,7 @@ typedef enum {
#define jit_va_arg_d(u, v) jit_new_node_ww(jit_code_va_arg_d, u, v)
jit_code_va_end,
#define jit_va_end(u) jit_new_node_w(jit_code_va_end, u)
-#define jit_code_last_code jit_code_va_end
+ jit_code_last_code
} jit_code_t;
typedef void* (*jit_alloc_func_ptr) (size_t);
diff --git a/lib/jit_size.c b/lib/jit_size.c
index eef7ed1..8cb433e 100644
--- a/lib/jit_size.c
+++ b/lib/jit_size.c
@@ -26,7 +26,7 @@
/*
* Initialization
*/
-static jit_int16_t _szs[jit_code_last_code + 1] = {
+static jit_int16_t _szs[jit_code_last_code] = {
#if GET_JIT_SIZE
# define JIT_INSTR_MAX 256
#else
diff --git a/size.c b/size.c
index f83aeca..59a7322 100644
--- a/size.c
+++ b/size.c
@@ -22,7 +22,7 @@
#include <stdio.h>
#include "lib/jit_names.c"
-jit_int16_t _szs[jit_code_last_code + 1];
+jit_int16_t _szs[jit_code_last_code];
int
main(int argc, char *argv[])
@@ -40,7 +40,7 @@ main(int argc, char *argv[])
fclose(fp);
max = 0;
- for (offset = 0; offset <= jit_code_last_code; offset++)
+ for (offset = 0; offset < jit_code_last_code; offset++)
if (max < _szs[offset])
max = _szs[offset];
@@ -82,7 +82,7 @@ main(int argc, char *argv[])
fprintf(fp, "#if defined(__powerpc__)\n");
#endif
fprintf(fp, "#define JIT_INSTR_MAX %d\n", max);
- for (offset = 0; offset <= jit_code_last_code; offset++)
+ for (offset = 0; offset < jit_code_last_code; offset++)
fprintf(fp, " %d, /* %s */\n", _szs[offset], code_name[offset]);
#if defined(__arm__)
fprintf(fp, "#endif /* __ARM_PCS_VFP */\n");
- [Guile-commits] 342/437: x86: Implement support for the x32 abi, (continued)
- [Guile-commits] 342/437: x86: Implement support for the x32 abi, Andy Wingo, 2018/07/02
- [Guile-commits] 416/437: Build and pass all tests on 32 and 64 bit sparc, Andy Wingo, 2018/07/02
- [Guile-commits] 400/437: Correct missing jit_unget_reg calls, Andy Wingo, 2018/07/02
- [Guile-commits] 418/437: Correct typo and values in jit_sparc-sz.c, Andy Wingo, 2018/07/02
- [Guile-commits] 359/437: ARM: Regenerate size table for hard float armv7 or newer., Andy Wingo, 2018/07/02
- [Guile-commits] 396/437: Move definition of jit_va_ codes, cosmetic change., Andy Wingo, 2018/07/02
- [Guile-commits] 407/437: Update copyright year, Andy Wingo, 2018/07/02
- [Guile-commits] 435/437: Add GUILE_ENABLE_JIT macro, Andy Wingo, 2018/07/02
- [Guile-commits] 367/437: X86: No longer make st7 available as a temporary, Andy Wingo, 2018/07/02
- [Guile-commits] 406/437: Adapt for binutils 2.29, Andy Wingo, 2018/07/02
- [Guile-commits] 395/437: Use an actual, invalid code, as last jit code.,
Andy Wingo <=
- [Guile-commits] 344/437: ARM: Better check for constants offset overflow, Andy Wingo, 2018/07/02
- [Guile-commits] 351/437: PPC: Only call binutils function if it is available, Andy Wingo, 2018/07/02
- [Guile-commits] 278/437: x86_64: Change x86_64 to also save/restore %rbx in inline asm., Andy Wingo, 2018/07/02
- [Guile-commits] 427/437: Remove some more of the lightning build machinery, Andy Wingo, 2018/07/02
- [Guile-commits] 328/437: Update THANKS file, Andy Wingo, 2018/07/02
- [Guile-commits] 129/437: Remove previous macro files as they are no longer used., Andy Wingo, 2018/07/02
- [Guile-commits] 09/437: add autotools-generated files, Andy Wingo, 2018/07/02
- [Guile-commits] 69/437: implement long mul/div/mod for x86-64, Andy Wingo, 2018/07/02
- [Guile-commits] 162/437: Correct regressions with --with-float={soft, softfp} in the arm backend, Andy Wingo, 2018/07/02
- [Guile-commits] 377/437: aarch64: Add initial jit_va_ calls to aarch64, Andy Wingo, 2018/07/02