From 9d5a1260b69af8ccb708a3e29b85aa1bf59f8405 Mon Sep 17 00:00:00 2001 From: Dmitry Antipov Date: Mon, 14 Jan 2013 15:07:50 +0400 Subject: [PATCH] Fix compilation with GC_MARK_STACK == GC_USE_GCPROS_AS_BEFORE. * eval.c (eval_sub): Protect `form' from being GCed before its car and cdr becomes protected with the backtrace entry. --- src/ChangeLog | 6 ++++++ src/eval.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 098d3ae027e..2445027edd5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2013-01-14 Dmitry Antipov + + Fix compilation with GC_MARK_STACK == GC_USE_GCPROS_AS_BEFORE. + * eval.c (eval_sub): Protect `form' from being GCed before its + car and cdr becomes protected with the backtrace entry. + 2013-01-14 Dmitry Antipov Make Lisp_Save_Value more versatile storage for up to four objects. diff --git a/src/eval.c b/src/eval.c index c49f8e85c2f..030bf14bcea 100644 --- a/src/eval.c +++ b/src/eval.c @@ -1931,7 +1931,10 @@ eval_sub (Lisp_Object form) return form; QUIT; + + GCPRO1 (form); maybe_gc (); + UNGCPRO; if (++lisp_eval_depth > max_lisp_eval_depth) { -- 2.39.5