"fix" <let>-bound lambda expressions too
authorAndy Wingo <wingo@pobox.com>
Wed, 12 Aug 2009 18:44:30 +0000 (20:44 +0200)
committerAndy Wingo <wingo@pobox.com>
Wed, 12 Aug 2009 19:29:08 +0000 (21:29 +0200)
commitaaae0d5ab3d0a867b7005d1a6bf38dc345195a93
tree2fb7383fb400036b60974aa95c9f76843503b33f
parenteca29b020267c477bddc3f9df6f087f461f7c8b9
"fix" <let>-bound lambda expressions too

* module/language/tree-il/compile-glil.scm (compile-glil): Compute
  warnings before optimizing, as unreferenced variables will be
  optimized out.

* libguile/_scm.h: Fix C99 comment.

* module/language/tree-il/fix-letrec.scm (partition-vars): Also analyze
  let-bound vars.
  (fix-letrec!): Fix a bug whereby a set! to an unreffed var would be
  called for value, not effect. Also "fix" <let>-bound lambda
  expressions -- really speeds up pmatch.

* test-suite/tests/tree-il.test ("lexical sets", "the or hack"): Update
  to take into account the new optimizations.
libguile/_scm.h
module/language/tree-il/compile-glil.scm
module/language/tree-il/fix-letrec.scm
test-suite/tests/tree-il.test