]> git.eshelyaron.com Git - emacs.git/commitdiff
* Fix comp unit type decl in eln files to fix GC crash (bug#46256)
authorPip Cet <pipcet@gmail.com>
Mon, 8 Mar 2021 20:49:59 +0000 (20:49 +0000)
committerAndrea Corallo <akrl@sdf.org>
Tue, 9 Mar 2021 08:25:38 +0000 (09:25 +0100)
* src/comp.c (emit_ctxt_code): Allocate comp_unit as a Lisp_Object,
not a pointer to pointer to Lisp_Object.

src/comp.c

index e180978541048fcfe5d80345adbc873005b58fc2..9b7be5cce71f65e91921ad67ab3342eac617eaf0 100644 (file)
@@ -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 ();