1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00
guile/module
Ludovic Courtès a0b9d86638 Tree-IL-to-CPS compiler delays calls to 'target-most-positive-fixnum'.
Fixes a bug whereby, for example, "guild compile --target=i686-linux-gnu"
running on x86_64 would generate invalid code for 'bytevector-u32-native-set!'
because 'target-most-positive-fixnum' was called from the top-level
when (language tree-il compile-cps) was loaded.

Consequently, the .go files under prebuilt/ would be invalid, leading to
build failures on 32-bit platforms.

This issue became apparent with cb8cabe85f.

* module/language/tree-il/compile-cps.scm (bytevector-ref-converter)[tag]:
Turn into a lambda so that 'target-most-positive-fixnum' is called in
the right context.
(bytevector-set-converter)[integer-unboxer]: Likewise.
2020-06-19 16:00:29 +02:00
..
ice-9 Update match's no-matching-pattern code to use "throw" 2020-05-17 22:26:17 +02:00
language Tree-IL-to-CPS compiler delays calls to 'target-most-positive-fixnum'. 2020-06-19 16:00:29 +02:00
oop goops: Fix 'instance?' to work on objects that aren't structs. 2018-08-07 12:05:31 +02:00
rnrs rnrs: Export '&assertion' from (rnrs conditions). 2020-01-21 17:56:13 +01:00
scheme Support R7RS define-library 2020-01-12 20:31:47 +01:00
scripts Delay loading CPS unless CPS compiler used 2020-05-12 09:54:19 +02:00
srfi srfi-1: Rewrite 'assoc' in Scheme. 2020-06-17 17:59:35 +02:00
sxml Remove duplicate definitions of call/ec' and let/ec'. 2013-04-06 15:40:19 +02:00
system Change -O1 compiler to use baseline and also resolve primitives 2020-06-01 21:15:39 +02:00
texinfo texinfo: Add basic support for @w{...}. 2020-06-18 00:30:30 +02:00
web web: Accept URI host names consisting only of hex digits. 2020-06-18 17:06:29 +02:00
Makefile.am Another minor module compile order tweak 2020-05-13 09:39:41 +02:00
rnrs.scm Define top-level bindings for aux syntax: else, =>, _, ... 2019-09-12 21:50:51 +02:00
statprof.scm Statprof reports primitive names 2020-06-04 11:46:34 +02:00
texinfo.scm texinfo: Add basic support for @w{...}. 2020-06-18 00:30:30 +02:00