diff options
author | Andy Wingo <wingo@pobox.com> | 2021-01-07 10:15:32 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2021-01-07 10:26:33 +0100 |
commit | 9d5978a756008b536fbb13e6de67ae0b4741b161 (patch) | |
tree | e658ccc1991cc8745eee59b0a1ecb1b7e1793a8a /module/ice-9/boot-9.scm | |
parent | 64c89458e6b4fcc834ed86bf0d6606a5a1044e7e (diff) | |
download | guile-9d5978a756008b536fbb13e6de67ae0b4741b161.tar.gz |
New warnings: -Wuse-before-definition, -Wnon-idempotent-definition
* module/ice-9/boot-9.scm (%auto-compilation-options): Add
use-before-definition and non-idempotent-definition.
* module/language/tree-il/analyze.scm (<use-before-def-info>): New
analysis info.
(make-use-before-definition-analysis): New function.
(goops-toplevel-definition): Move down.
(unbound-variable-analysis, macro-use-before-definition): Remove, as
they are subsumed by use-before-def. There are some deprecated
bindings though.
(make-analyzer): Rework to allow for use-before-def analysis to handle
multiple
* module/system/base/message.scm (%warning-types): Add handlers for the
new warning types.
* test-suite/tests/tree-il.test: Add tests.
* doc/ref/api-evaluation.texi (Compilation): Update.
Diffstat (limited to 'module/ice-9/boot-9.scm')
-rw-r--r-- | module/ice-9/boot-9.scm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/ice-9/boot-9.scm b/module/ice-9/boot-9.scm index 0d37f3d48..89595f3f7 100644 --- a/module/ice-9/boot-9.scm +++ b/module/ice-9/boot-9.scm @@ -1,6 +1,6 @@ ;;; -*- mode: scheme; coding: utf-8; -*- -;;;; Copyright (C) 1995-2014, 2016-2020 Free Software Foundation, Inc. +;;;; Copyright (C) 1995-2014, 2016-2021 Free Software Foundation, Inc. ;;;; ;;;; This library is free software; you can redistribute it and/or ;;;; modify it under the terms of the GNU Lesser General Public @@ -4200,9 +4200,9 @@ but it fails to load." (define %auto-compilation-options ;; Default `compile-file' option when auto-compiling. - '(#:warnings (unbound-variable shadowed-toplevel - macro-use-before-definition arity-mismatch - format duplicate-case-datum bad-case-datum))) + '(#:warnings (shadowed-toplevel use-before-definition arity-mismatch + format duplicate-case-datum bad-case-datum + non-idempotent-definition))) (define* (load-in-vicinity dir file-name #:optional reader) "Load source file FILE-NAME in vicinity of directory DIR. Use a |