emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: san_ignore_object not found at link time


From: Philipp Stephani
Subject: Re: san_ignore_object not found at link time
Date: Sat, 1 Aug 2020 20:29:29 +0200

Am Sa., 1. Aug. 2020 um 19:51 Uhr schrieb Eli Zaretskii <eliz@gnu.org>:
>
> > From: Philipp Stephani <p.stephani2@gmail.com>
> > Date: Sat, 1 Aug 2020 19:32:40 +0200
> >
> > I've pushed commit 06310cf912 which should hopefully fix this, could
> > you please try again?
>
> I now get a compilation warning:
>
>   alloc.c: In function 'mark_maybe_object':
>   alloc.c:4641:14: warning: cast to pointer from integer of different size 
> [-Wint-to-pointer-cast]
>    4641 |   void *po = (char *) ((intptr_t) (char *) XLP (obj)
>         |              ^
>
> This is a 32-bit build --with-wide-int, in case it matters, where
> EMACS_INT is a 64-bit data type.

This is due to the unrelated commit a2323c7ccb. (I just happened to
push both commits at the same time.)
It looks like LISP_WORD_TAG in a wide int build is a 64-bit number, so
that the entire expression gets widened to a 64-bit number. However,
since it's cast back to a pointer, the value has to fit in 32 bits.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]