diff options
author | Andy Wingo <wingo@pobox.com> | 2018-10-10 10:02:55 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2018-10-10 10:02:55 +0200 |
commit | 4aa4a6d590eb118e1cfe16ee546495d6c00e61b8 (patch) | |
tree | 57917851579d93d6bbfc2c0acba83dcbc278a9dc | |
parent | e08d10af6786d729eff199760011df91ab49067d (diff) | |
download | guile-4aa4a6d590eb118e1cfe16ee546495d6c00e61b8.tar.gz |
Only enable JIT by default on x86-64v2.9.0
* acinclude.m4: Disable JIT by default on not-x86-64. Although I got
JIT mostly working on 32-bit x86, I got nondeterministic segfaults
deep in lightning, on that platform; perhaps indicating a bug in the
optimizer. After a day of poking and not solving the problem, I think
that I don't want the complexity of Lightning's node representation,
especially on platforms that get less testing. In the future we'll
use the lightning backends without the node layer.
* NEWS: Update.
-rw-r--r-- | NEWS | 5 | ||||
-rw-r--r-- | acinclude.m4 | 7 |
2 files changed, 9 insertions, 3 deletions
@@ -22,8 +22,9 @@ compilation will be enabled automatically and transparently. To disable JIT compilation, configure Guile with `--enable-jit=no' or `--disable-jit'. See `./configure --help' for more. -Guile uses an embedded copy of GNU lightning, providing support for JIT -on about a dozen platforms. +In this release, JIT compilation is enabled only on x86-64. In future +prereleases support will be added for all architectures supported by GNU +lightning. ** Lower-level bytecode diff --git a/acinclude.m4 b/acinclude.m4 index 085711454..9a2972f12 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -614,7 +614,12 @@ AC_DEFUN([GUILE_ENABLE_JIT], [ case "x$enable_jit" in xy*) enable_jit=yes ;; xn*) enable_jit=no ;; - xa* | x) enable_jit=$JIT_AVAILABLE ;; + xa* | x) + # For the time being, only enable JIT on x86-64. + case "$target_cpu" in + x86_64|amd64) enable_jit=yes ;; + *) enable_jit=no ;; + esac *) AC_MSG_ERROR(bad value $enable_jit for --enable-jit) ;; esac AC_MSG_RESULT($enable_jit) |