From: "Herbert J. Skuhra" <herbert@mailbox.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: emacs-devel@gnu.org
Subject: Re: USE_LSB_TAG not supported on this platform
Date: Sun, 07 Feb 2016 17:52:43 +0100 [thread overview]
Message-ID: <86a8ncmpic.wl-herbert@mailbox.org> (raw)
In-Reply-To: <56B658E0.6090508@cs.ucla.edu>
On Sat, 06 Feb 2016 21:34:40 +0100, Paul Eggert wrote:
>
> Herbert J. Skuhra wrote:
> > INTPTR_MAX=0x7fffffff
> > EMACS_INT_MAX=0x7fffffffffffffffLL
> >
> > Before the commit mentioned above both are 0x7fffffff.
>
> Commit d6585a910ed3e9e0e43c093b5fbfeb6d56b703b4 should not have
> affected EMACS_INT_MAX, and I don't see how it did.
Before this commit I get:
(EMACS_INT_MAX=0x7fffffff, INTPTR_MAX=0x7fffffff, NONPOINTER_BITS=0)
After this commit:
(EMACS_INT_MAX=0x7fffffffffffffffLL, INTPTR_MAX=0x7fffffff, NONPOINTER_BITS=3)
I can fix the build by:
--- a/configure.ac
+++ b/configure.ac
@@ -2123,7 +2123,7 @@ esac
if test "${system_malloc}" != yes && test "${doug_lea_malloc}" != yes \
&& test "${UNEXEC_OBJ}" = unexelf.o && test "${hybrid_malloc}" != no; then
- hybrid_malloc=yes
+ hybrid_malloc=no
fi
(EMACS_INT_MAX=0x7fffffff, INTPTR_MAX=0x7fffffff, NONPOINTER_BITS=0)
This does not work on later master checkouts.
> I assume you are not configuring with --with-wide-int, so the reason
> EMACS_INT_MAX has that large value is due to the following tests in
> src/lisp.h:
Enabling "--with-wide-int" does indeed fix the build.
(EMACS_INT_MAX=0x7fffffffffffffffLL, INTPTR_MAX=0x7fffffff, NONPOINTER_BITS=3)
> Is the value of NONPOINTER_BITS 0 on your platform, or 3? If 0, is
> this correct? That is, does malloc ever return a pointer that, when
> treated as an integer, is not a multiple of 8? If malloc always
> returns a multiple of 8, then we should be able to work around the
> problem by setting NONPOINTER_BITS to 0 on your platform.
How can I tell?
Without "--with-wide-int" I also get
EMACS_INT_MAX=0x7fffffffffffffffLL, INTPTR_MAX=0x7fffffff, NONPOINTER_BITS=3
To be able to build master without "--with-wide-int" I have to apply:
@@ -73,7 +76,7 @@ DEFINE_GDB_SYMBOL_END (GCTYPEBITS)
2. We know malloc returns a multiple of 8. */
#if (defined alignas \
&& (defined GNU_MALLOC || defined DOUG_LEA_MALLOC || defined __GLIBC__ \
- || defined DARWIN_OS || defined __sun || defined __MINGW32__ \
+ || defined __FreeBSD__ || defined DARWIN_OS || defined __sun || defined __MINGW32__ \
|| defined CYGWIN))
# define NONPOINTER_BITS 0
#else
(EMACS_INT_MAX=0x7fffffff, INTPTR_MAX=0x7fffffff, NONPOINTER_BITS=0)
--
Herbert
next prev parent reply other threads:[~2016-02-07 16:52 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-04 8:32 USE_LSB_TAG not supported on this platform C. Baxter
2016-02-04 13:24 ` Stefan Monnier
2016-02-04 15:51 ` Paul Eggert
2016-02-04 22:29 ` Herbert J. Skuhra
2016-02-05 1:22 ` Paul Eggert
2016-02-05 9:45 ` Colin Baxter
2016-02-06 10:55 ` Herbert J. Skuhra
2016-02-06 16:04 ` Herbert J. Skuhra
2016-02-07 15:11 ` Wolfgang Jenkner
2016-02-07 19:14 ` Herbert J. Skuhra
2016-02-07 21:35 ` Herbert J. Skuhra
2016-02-08 19:45 ` Paul Eggert
2016-02-08 20:14 ` Eli Zaretskii
2016-02-09 8:39 ` Paul Eggert
2016-02-09 16:59 ` Eli Zaretskii
2016-02-09 17:37 ` Paul Eggert
2016-02-09 18:02 ` Eli Zaretskii
2016-02-10 19:29 ` Colin Baxter
2016-02-08 23:01 ` Herbert J. Skuhra
2016-02-09 1:10 ` Paul Eggert
2016-02-09 11:12 ` Herbert J. Skuhra
2016-02-09 23:37 ` Paul Eggert
2016-02-09 15:53 ` Wolfgang Jenkner
2016-02-09 23:33 ` Paul Eggert
2016-02-06 20:34 ` Paul Eggert
2016-02-07 16:52 ` Herbert J. Skuhra [this message]
2016-02-07 21:34 ` Paul Eggert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86a8ncmpic.wl-herbert@mailbox.org \
--to=herbert@mailbox.org \
--cc=eggert@cs.ucla.edu \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).