Add compiler warning for possibly unbound variables.
authorLudovic Courtès <ludo@gnu.org>
Tue, 6 Oct 2009 21:39:56 +0000 (23:39 +0200)
committerLudovic Courtès <ludo@gnu.org>
Tue, 6 Oct 2009 21:41:39 +0000 (23:41 +0200)
commitf67ddf9dbfec851676806a2f3dff7eae539ac499
tree47ecc80ac2c2e169f36763f03e5d5cae5fc33ce4
parent43eb8acadae88d4b56d0e54fd0870a025bd5259c
Add compiler warning for possibly unbound variables.

* module/language/tree-il/analyze.scm (<toplevel-info>): New record
  type.
  (env-module, report-possibly-unbound-variables): New procedures.

* module/language/tree-il/compile-glil.scm (%warning-passes): Add
  `unbound-variable'.

* module/system/base/message.scm (%warning-types): Likewise.

* test-suite/tests/tree-il.test (read-and-compile, %opts-w-unbound):
  New.
  ("warnings")["unbound variable"]: New test prefix.
module/language/tree-il/analyze.scm
module/language/tree-il/compile-glil.scm
module/system/base/message.scm
test-suite/tests/tree-il.test