[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 180/437: Correct C sequence point problem.
From: |
Andy Wingo |
Subject: |
[Guile-commits] 180/437: Correct C sequence point problem. |
Date: |
Mon, 2 Jul 2018 05:14:13 -0400 (EDT) |
wingo pushed a commit to branch lightning
in repository guile.
commit 7c7908c97e5c2a8779993dcdfe198b34c09784fc
Author: pcpa <address@hidden>
Date: Wed Jan 30 00:36:52 2013 -0200
Correct C sequence point problem.
* lib/jit_x86-cpu.c: Correct undefined behavior code.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56143
---
ChangeLog | 5 +++++
lib/jit_x86-cpu.c | 16 ++++++++++++----
2 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 2a4170b..0c929d3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-01-30 Paulo Andrade <address@hidden>
+
+ * lib/jit_x86-cpu.c: Correct undefined behavior code.
+ http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56143
+
2013-01-29 Paulo Andrade <address@hidden>
* configure.ac: Use AC_CONFIG_HEADERS instead of AC_CONFIG_HEADER
diff --git a/lib/jit_x86-cpu.c b/lib/jit_x86-cpu.c
index 997855d..9ba93c3 100644
--- a/lib/jit_x86-cpu.c
+++ b/lib/jit_x86-cpu.c
@@ -2601,16 +2601,20 @@ _stxi_l(jit_state_t *_jit, jit_word_t i0, jit_int32_t
r0, jit_int32_t r1)
static void
_jccs(jit_state_t *_jit, jit_int32_t code, jit_word_t i0)
{
+ jit_word_t w;
ic(0x70 | code);
- ic(i0 - (_jit->pc.w + 1));
+ w = i0 - (_jit->pc.w + 1);
+ ic(w);
}
static void
_jcc(jit_state_t *_jit, jit_int32_t code, jit_word_t i0)
{
+ jit_word_t w;
ic(0x0f);
ic(0x80 | code);
- ii(i0 - (_jit->pc.w + 4));
+ w = i0 - (_jit->pc.w + 4);
+ ii(w);
}
static void
@@ -3040,8 +3044,10 @@ _calli(jit_state_t *_jit, jit_word_t i0)
callr(rn(reg));
jit_unget_reg(reg);
#else
+ jit_word_t w;
ic(0xe8);
- ii(i0 - (_jit->pc.w + 4));
+ w = i0 - (_jit->pc.w + 4);
+ ii(w);
word = _jit->pc.w;
#endif
return (word);
@@ -3058,8 +3064,10 @@ _jmpr(jit_state_t *_jit, jit_int32_t r0)
static jit_word_t
_jmpi(jit_state_t *_jit, jit_word_t i0)
{
+ jit_word_t w;
ic(0xe9);
- ii(i0 - (_jit->pc.w + 4));
+ w = i0 - (_jit->pc.w + 4);
+ ii(w);
return (_jit->pc.w);
}
- [Guile-commits] 188/437: Add framework for sparc port., (continued)
- [Guile-commits] 188/437: Add framework for sparc port., Andy Wingo, 2018/07/02
- [Guile-commits] 227/437: Cosmetic removal of unused macros., Andy Wingo, 2018/07/02
- [Guile-commits] 330/437: Resync with new patch to make functions receive a const argument, Andy Wingo, 2018/07/02
- [Guile-commits] 185/437: Store all annotation information in the read only data buffer., Andy Wingo, 2018/07/02
- [Guile-commits] 170/437: Test and correct test cases in all current backends., Andy Wingo, 2018/07/02
- [Guile-commits] 368/437: Implement jit_allocar for dynamic stack allocation, Andy Wingo, 2018/07/02
- [Guile-commits] 355/437: Update documentation on jit_frame and jit_tramp, Andy Wingo, 2018/07/02
- [Guile-commits] 323/437: misc: Make jit_note and related functions take a const argument, Andy Wingo, 2018/07/02
- [Guile-commits] 429/437: Remove disassembler support from lightning, Andy Wingo, 2018/07/02
- [Guile-commits] 346/437: PPC: Build and pass all tests in powerpcle, Andy Wingo, 2018/07/02
- [Guile-commits] 180/437: Correct C sequence point problem.,
Andy Wingo <=
- [Guile-commits] 370/437: Add missing ellipsis in allocar.tst, Andy Wingo, 2018/07/02
- [Guile-commits] 337/437: Remove a wrong optimization of callee save registers, Andy Wingo, 2018/07/02
- [Guile-commits] 437/437: Wire up lightning into libguile build, Andy Wingo, 2018/07/02
- [Guile-commits] 362/437: Avoid problems if JIT_INSTR_MAX is miscalculated, Andy Wingo, 2018/07/02
- [Guile-commits] 183/437: Correct qmul and qdiv in ppc., Andy Wingo, 2018/07/02
- [Guile-commits] 235/437: Correct build on FreeBSD/amd64, Andy Wingo, 2018/07/02
- [Guile-commits] 240/437: Correct wrong test and update of arm thumb offset information., Andy Wingo, 2018/07/02
- [Guile-commits] 215/437: Add functional hppa port. All tests pass., Andy Wingo, 2018/07/02
- [Guile-commits] 369/437: Correct typo in x87.nodata test list, Andy Wingo, 2018/07/02
- [Guile-commits] 307/437: x86: Build and pass all tests on 32 bit cygwin, Andy Wingo, 2018/07/02