diff options
author | Andy Wingo <wingo@pobox.com> | 2011-02-10 10:40:57 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2011-02-10 10:40:57 +0100 |
commit | 7112a34d56ff0611220b0e9f024ad0fffbe3cdad (patch) | |
tree | 522a87bd04e712ccc97dff68bdd614e80271c6d0 /libguile/eval.c | |
parent | cd4f274c622511ac9b45cd16d6e6a542bd07464c (diff) | |
download | guile-7112a34d56ff0611220b0e9f024ad0fffbe3cdad.tar.gz |
volatile locals in bootstrap evaluator
* libguile/eval.c (eval): For SCM_M_PROMPT, mark the locals needed after
a longjmp as volatile. Perhaps related to bug 32340.
Diffstat (limited to 'libguile/eval.c')
-rw-r--r-- | libguile/eval.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libguile/eval.c b/libguile/eval.c index 785217825..6f2020ebc 100644 --- a/libguile/eval.c +++ b/libguile/eval.c @@ -408,7 +408,10 @@ eval (SCM x, SCM env) case SCM_M_PROMPT: { - SCM vm, prompt, handler, res; + SCM vm, res; + /* We need the prompt and handler values after a longjmp case, + so make sure they are volatile. */ + volatile SCM handler, prompt; vm = scm_the_vm (); prompt = scm_c_make_prompt (eval (CAR (mx), env), SCM_VM_DATA (vm)->fp, |