* bug#43845: toplevel definition in module: another compiler optimization bug
@ 2020-10-07 12:08 Jan Nieuwenhuizen
0 siblings, 0 replies; only message in thread
From: Jan Nieuwenhuizen @ 2020-10-07 12:08 UTC (permalink / raw)
To: 43845
[-- Attachment #1: Type: text/plain, Size: 1156 bytes --]
Hi!
This morning I found another bug while porting Mes to Guile-3. It looks
similar to #43831; compilation with -O2 shows wrong behaviour.
Also, this works on Guile-2.2.
To reproduce:
--8<---------------cut here---------------start------------->8---
14:02:54 janneke@dundal:~/tmp/bug2 [env]
$ guile --no-auto-compile -L . script.scm
dumping0: foo
14:03:06 janneke@dundal:~/tmp/bug2 [env]
$ guild compile -O1 -o mescc.go mescc.scm
wrote `mescc.go'
14:03:33 janneke@dundal:~/tmp/bug2 [env]
$ guile --no-auto-compile -L . -C . script.scm
dumping0: foo
14:03:42 janneke@dundal:~/tmp/bug2 [env]
$ guild compile -O2 -o mescc.go mescc.scm
wrote `mescc.go'
14:03:49 janneke@dundal:~/tmp/bug2 [env]
$ guile --no-auto-compile -L . -C . script.scm
dumping0: foo
Backtrace:
1 (primitive-load "/home/janneke/tmp/bug2/script.scm")
In mescc.scm:
27:4 0 (with-output-to-file _ #<procedure 7f5effc15388 at mescc.scm:35:6 _>)
mescc.scm:27:4: In procedure with-output-to-file:
Throw to key `looping' with args `()'.
[1]14:03:52 janneke@dundal:~/tmp/bug2 [env]
$
--8<---------------cut here---------------end--------------->8---
Greetings,
Janneke
[-- Attachment #2: script.scm --]
[-- Type: application/octet-stream, Size: 853 bytes --]
[-- Attachment #3: mescc.scm --]
[-- Type: application/octet-stream, Size: 1312 bytes --]
[-- Attachment #4: Type: text/plain, Size: 152 bytes --]
--
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-07 12:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-07 12:08 bug#43845: toplevel definition in module: another compiler optimization bug Jan Nieuwenhuizen
unofficial mirror of bug-guile@gnu.org
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://yhetil.org/guile-bugs/0 guile-bugs/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 guile-bugs guile-bugs/ https://yhetil.org/guile-bugs \
bug-guile@gnu.org
public-inbox-index guile-bugs
Example config snippet for mirrors.
Newsgroups are available over NNTP:
nntp://news.yhetil.org/yhetil.lisp.guile.bugs
nntp://news.gmane.io/gmane.lisp.guile.bugs
AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git