mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-23 12:00:21 +02:00
fix misallocation of some <fix> procedures
* module/language/tree-il/analyze.scm (analyze-lexicals): When stepping into a non-tail form, we know that labels allocation will be invalid, so use an empty labels set. Fixes http://debbugs.gnu.org/9769. * test-suite/tests/tree-il.test ("labels allocation"): Add a test.
This commit is contained in:
parent
3e54fdfc21
commit
aa9c198588
2 changed files with 14 additions and 1 deletions
|
@ -171,7 +171,7 @@
|
|||
|
||||
;; returns variables referenced in expr
|
||||
(define (analyze! x proc labels-in-proc tail? tail-call-args)
|
||||
(define (step y) (analyze! y proc labels-in-proc #f #f))
|
||||
(define (step y) (analyze! y proc '() #f #f))
|
||||
(define (step-tail y) (analyze! y proc labels-in-proc tail? #f))
|
||||
(define (step-tail-call y args) (analyze! y proc labels-in-proc #f
|
||||
(and tail? args)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue