[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/correct-warning-pos 4e77177b06: Try to make scratch/correct-warn
From: |
Alan Mackenzie |
Subject: |
scratch/correct-warning-pos 4e77177b06: Try to make scratch/correct-warning-pos build on Windows and not segfault |
Date: |
Fri, 31 Dec 2021 18:19:26 -0500 (EST) |
branch: scratch/correct-warning-pos
commit 4e77177b063f9da8a48709aa3ef416d0ac21837b
Author: Alan Mackenzie <acm@muc.de>
Commit: Alan Mackenzie <acm@muc.de>
Try to make scratch/correct-warning-pos build on Windows and not segfault
* src/comp.c (emit_EQ): Replace calls to gcc_jit_context_new_location with
NULLs.
(Fcomp__init_ctxt): Remove the register_emitter call for Qsymbol_with_pos_p,
which was causing a segfault.
---
src/comp.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/comp.c b/src/comp.c
index 834656897e..73555c0d2c 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -1490,13 +1490,13 @@ emit_EQ (gcc_jit_rvalue *x, gcc_jit_rvalue *y)
return
emit_OR (
gcc_jit_context_new_comparison (
- comp.ctxt, gcc_jit_context_new_location (comp.ctxt, "comp.c",
__LINE__, 0),
+ comp.ctxt, NULL,
GCC_JIT_COMPARISON_EQ,
emit_XLI (x), emit_XLI (y)),
emit_AND (
gcc_jit_lvalue_as_rvalue (
gcc_jit_rvalue_dereference (comp.f_symbols_with_pos_enabled_ref,
- gcc_jit_context_new_location (comp.ctxt,
"comp.c", __LINE__, 0))),
+ NULL)),
emit_OR (
emit_AND (
emit_SYMBOL_WITH_POS_P (x),
@@ -4561,7 +4561,6 @@ Return t on success. */)
register_emitter (Qnumberp, emit_numperp);
register_emitter (Qintegerp, emit_integerp);
register_emitter (Qcomp_maybe_gc_or_quit, emit_maybe_gc_or_quit);
- register_emitter (Qsymbol_with_pos_p, emit_SYMBOL_WITH_POS_P);
}
comp.ctxt = gcc_jit_context_acquire ();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- scratch/correct-warning-pos 4e77177b06: Try to make scratch/correct-warning-pos build on Windows and not segfault,
Alan Mackenzie <=