Fixed a Scheme translation bug; cleaned compilation with GCC 4.
authorLudovic Courtes <ludovic.courtes@laas.fr>
Tue, 1 Nov 2005 21:29:04 +0000 (21:29 +0000)
committerLudovic Courtès <ludo@gnu.org>
Fri, 25 Apr 2008 17:09:30 +0000 (19:09 +0200)
commitb6368dbbb9af59e6c2df6b8cccc2651a2da8b725
tree6b9a374a3a920d6cbe7ddfe863f00a74258a6120
parent49edef60dc34fcdb40ba1df3b5136e88796870c0
Fixed a Scheme translation bug; cleaned compilation with GCC 4.

* module/language/scheme/translate.scm (trans-pair): In the `set!' case,
  when a procedure-with-setter is passed, call `trans:pair' with an
  actual pair.  This fixes a long-lasting bug which prevented compilation
  of `set!' statements with procedures-with-setter (this showed up when
  compiling `(system vm assemble)').

* module/system/base/compile.scm: Added `objcode->u8vector' to the
  `#:select' clause.

* module/system/base/syntax.scm: Cosmetic changes.

* module/system/vm/assemble.scm (preprocess): Removed debugging
  statements.

* src/frames.c: Cosmetic changes.

* src/frames.h (SCM_FRAME_SET_DYNAMIC_LINK): New.

* src/objcodes.c: Use `scm_t_uint8' instead of `char' when relevant.

* src/vm.c (vm_heapify_frames_1): Use `SCM_FRAME_SET_DYNAMIC_LINK ()'.

* src/vm_loader.c: Added casts to mute GCC 4 warnings.

* testsuite/run-vm-tests.scm (*scheme*): Renamed to `%scheme'.
  (run-test-from-file): Renamed to `compile/run-test-from-file'.
  (run-vm-tests): Run each test using both the VM and the interpreter;
  compare the results.

* testsuite/t-proc-with-setter.scm: Try out `get/set'.

* doc/Makefile.am (info_TEXINFOS): New.

* doc/guile-vm.texi: Added index entries and indices.

* doc/texinfo.tex: New file.

git-archimport-id: lcourtes@laas.fr--2005-mobile/guile-vm--mobile--0.6--patch-5
19 files changed:
doc/Makefile.am
doc/guile-vm.texi
doc/texinfo.tex [new file with mode: 0644]
module/language/scheme/translate.scm
module/system/base/compile.scm
module/system/base/syntax.scm
module/system/vm/assemble.scm
src/frames.c
src/frames.h
src/objcodes.c
src/programs.c
src/vm.c
src/vm_loader.c
testsuite/run-vm-tests.scm
testsuite/t-closure.scm
testsuite/t-closure2.scm
testsuite/t-closure3.scm
testsuite/t-do-loop.scm
testsuite/t-proc-with-setter.scm