Commit 8a1e7f5c authored by Marius Gerbershagen's avatar Marius Gerbershagen

cmp: don't mark all lexical variables as crossing function boundaries

    The compiler refactor of commit
    7ec2f4a9 introduced an error where
    all lexical variables where marked to cross function boundaries,
    leading them to be stored in volatile variables on the stack.
parent 57a0346a
......@@ -241,8 +241,9 @@
((SPECIAL GLOBAL))
((CLOSURE))
((LEXICAL)
(setf (var-ref-clb var) t
(var-loc var) 'OBJECT))
(when cfb
(setf (var-ref-clb var) t
(var-loc var) 'OBJECT)))
(t
(when cfb
(cmperr "Variable ~A declared of C type cannot be referenced across function boundaries."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment