From 380ba045c48bfbb160da288b1bd50f82d3f999f0 Mon Sep 17 00:00:00 2001 From: Pip Cet Date: Mon, 8 Mar 2021 20:49:59 +0000 Subject: [PATCH] * Fix comp unit type decl in eln files to fix GC crash (bug#46256) * src/comp.c (emit_ctxt_code): Allocate comp_unit as a Lisp_Object, not a pointer to pointer to Lisp_Object. --- src/comp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/comp.c b/src/comp.c index e1809785410..9b7be5cce71 100644 --- a/src/comp.c +++ b/src/comp.c @@ -2774,7 +2774,7 @@ emit_ctxt_code (void) comp.ctxt, NULL, GCC_JIT_GLOBAL_EXPORTED, - gcc_jit_type_get_pointer (comp.lisp_obj_ptr_type), + comp.lisp_obj_type, COMP_UNIT_SYM); declare_imported_data (); -- 2.39.5