aboutsummaryrefslogtreecommitdiffstats
path: root/src/comp.c
diff options
context:
space:
mode:
authorPip Cet2021-03-08 20:49:59 +0000
committerAndrea Corallo2021-03-09 09:25:38 +0100
commit380ba045c48bfbb160da288b1bd50f82d3f999f0 (patch)
tree83bc969ca87060876c61f1417ebbf129a97d6bf4 /src/comp.c
parent93f92cf1ba37f8b9abaee4b9487705bae464c4e0 (diff)
downloademacs-380ba045c48bfbb160da288b1bd50f82d3f999f0.tar.gz
emacs-380ba045c48bfbb160da288b1bd50f82d3f999f0.zip
* 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.
Diffstat (limited to 'src/comp.c')
-rw-r--r--src/comp.c2
1 files changed, 1 insertions, 1 deletions
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)
2774 comp.ctxt, 2774 comp.ctxt,
2775 NULL, 2775 NULL,
2776 GCC_JIT_GLOBAL_EXPORTED, 2776 GCC_JIT_GLOBAL_EXPORTED,
2777 gcc_jit_type_get_pointer (comp.lisp_obj_ptr_type), 2777 comp.lisp_obj_type,
2778 COMP_UNIT_SYM); 2778 COMP_UNIT_SYM);
2779 2779
2780 declare_imported_data (); 2780 declare_imported_data ();