diff options
| author | Andrea Corallo | 2019-06-16 11:59:11 +0200 |
|---|---|---|
| committer | Andrea Corallo | 2020-01-01 11:33:42 +0100 |
| commit | 96e1a5efb3bdeb9e70f7ea6030514e83e6ae8da1 (patch) | |
| tree | e199ec996dfa105cdb1a1f80259ac817c9703c81 /src/comp.c | |
| parent | 2a1bb41c14fba3ecb2f7ccdb251918ea0ac30c41 (diff) | |
| download | emacs-96e1a5efb3bdeb9e70f7ea6030514e83e6ae8da1.tar.gz emacs-96e1a5efb3bdeb9e70f7ea6030514e83e6ae8da1.zip | |
fix consp
Diffstat (limited to 'src/comp.c')
| -rw-r--r-- | src/comp.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/comp.c b/src/comp.c index f3fd8dc16bb..7bdf1a8615c 100644 --- a/src/comp.c +++ b/src/comp.c | |||
| @@ -495,13 +495,13 @@ emit_TAGGEDP (gcc_jit_rvalue *obj, unsigned tag) | |||
| 495 | static gcc_jit_rvalue * | 495 | static gcc_jit_rvalue * |
| 496 | emit_VECTORLIKEP (gcc_jit_rvalue *obj) | 496 | emit_VECTORLIKEP (gcc_jit_rvalue *obj) |
| 497 | { | 497 | { |
| 498 | return emit_TAGGEDP(obj, Lisp_Vectorlike); | 498 | return emit_TAGGEDP (obj, Lisp_Vectorlike); |
| 499 | } | 499 | } |
| 500 | 500 | ||
| 501 | static gcc_jit_rvalue * | 501 | static gcc_jit_rvalue * |
| 502 | emit_CONSP (gcc_jit_rvalue *obj) | 502 | emit_CONSP (gcc_jit_rvalue *obj) |
| 503 | { | 503 | { |
| 504 | return emit_TAGGEDP(obj, Lisp_Cons); | 504 | return emit_TAGGEDP (obj, Lisp_Cons); |
| 505 | } | 505 | } |
| 506 | 506 | ||
| 507 | static gcc_jit_rvalue * | 507 | static gcc_jit_rvalue * |
| @@ -1332,11 +1332,14 @@ compile_f (const char *f_name, ptrdiff_t bytestr_length, | |||
| 1332 | CASE_CALL_NARGS (symbolp, 1); | 1332 | CASE_CALL_NARGS (symbolp, 1); |
| 1333 | 1333 | ||
| 1334 | case Bconsp: | 1334 | case Bconsp: |
| 1335 | gcc_jit_block_add_assignment ( | 1335 | POP1; |
| 1336 | comp.bblock->gcc_bb, | 1336 | res = emit_cast (comp.bool_type, |
| 1337 | NULL, | 1337 | emit_CONSP (args[0])); |
| 1338 | TOS, | 1338 | res = gcc_jit_context_new_call (comp.ctxt, |
| 1339 | emit_CONSP(gcc_jit_lvalue_as_rvalue (TOS))); | 1339 | NULL, |
| 1340 | comp.bool_to_lisp_obj, | ||
| 1341 | 1, &res); | ||
| 1342 | PUSH_RVAL (res); | ||
| 1340 | break; | 1343 | break; |
| 1341 | 1344 | ||
| 1342 | CASE_CALL_NARGS (stringp, 1); | 1345 | CASE_CALL_NARGS (stringp, 1); |