[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 9d11f12 2/3: --with-wide-int is a no-op on 64-bit hosts
From: |
Paul Eggert |
Subject: |
master 9d11f12 2/3: --with-wide-int is a no-op on 64-bit hosts |
Date: |
Wed, 27 May 2020 12:51:20 -0400 (EDT) |
branch: master
commit 9d11f127f15cc4dafcdb825dcfc6e495d729a069
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>
--with-wide-int is a no-op on 64-bit hosts
* configure.ac: Clarify wording for --with-wide-int help.
* src/pdumper.c (dump_vectorlike_generic):
Do the eassert even if --with-wide-int was specified unnecessarily.
---
configure.ac | 6 +++++-
src/pdumper.c | 2 +-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 719eb74..b1b8c84 100644
--- a/configure.ac
+++ b/configure.ac
@@ -414,7 +414,11 @@ this option's value should be 'yes', 'no', 'lucid',
'athena', 'motif', 'gtk',
with_x_toolkit=$val
])
-OPTION_DEFAULT_OFF([wide-int], [prefer wide Emacs integers (typically 62-bit);
allows buffer and string size up to 2GB on 32-bit hosts, at the cost of 10% to
30% slowdown of Lisp interpreter and larger memory footprint])
+OPTION_DEFAULT_OFF([wide-int],
+ [prefer wide Emacs integers (typically 62-bit);
+ on 32-bit hosts, this allows buffer and string size up to 2GB,
+ at the cost of 10% to 30% slowdown of Lisp interpreter
+ and larger memory footprint])
if test "$with_wide_int" = yes; then
AC_DEFINE([WIDE_EMACS_INT], 1, [Use long long for EMACS_INT if available.])
fi
diff --git a/src/pdumper.c b/src/pdumper.c
index 63424c5..bac6900 100644
--- a/src/pdumper.c
+++ b/src/pdumper.c
@@ -2603,7 +2603,7 @@ dump_vectorlike_generic (struct dump_context *ctx,
Lisp_Object out;
const Lisp_Object *vslot = &v->contents[i];
/* In the wide case, we're always misaligned. */
-#ifndef WIDE_EMACS_INT
+#if INTPTR_MAX == EMACS_INT_MAX
eassert (ctx->offset % sizeof (out) == 0);
#endif
dump_object_start (ctx, &out, sizeof (out));