From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Philipp Stephani
Newsgroups: gmane.emacs.devel
Subject: Re: san_ignore_object not found at link time
Date: Sat, 1 Aug 2020 20:35:02 +0200
Message-ID:
References: <20200801141014.51E78C21C82@raman-glaptop.localdomain>
<83wo2ictyz.fsf@gnu.org> <83tuxmctmo.fsf@gnu.org>
<20200801153823.GA55369@breton.holly.idiocy.org>
<83k0yicl01.fsf@gnu.org>
<83h7tmcj45.fsf@gnu.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
logging-data="29221"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: Alan Third , Emacs developers ,
raman
To: Eli Zaretskii
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Aug 01 20:36:07 2020
Return-path:
Envelope-to: ged-emacs-devel@m.gmane-mx.org
Original-Received: from lists.gnu.org ([209.51.188.17])
by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.92)
(envelope-from )
id 1k1wMY-0007U0-Hn
for ged-emacs-devel@m.gmane-mx.org; Sat, 01 Aug 2020 20:36:06 +0200
Original-Received: from localhost ([::1]:44186 helo=lists1p.gnu.org)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from )
id 1k1wMX-00020C-J9
for ged-emacs-devel@m.gmane-mx.org; Sat, 01 Aug 2020 14:36:05 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41558)
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1k1wLl-0001TG-OU
for emacs-devel@gnu.org; Sat, 01 Aug 2020 14:35:17 -0400
Original-Received: from mail-oi1-x243.google.com ([2607:f8b0:4864:20::243]:41105)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.90_1) (envelope-from )
id 1k1wLk-0008QT-2w; Sat, 01 Aug 2020 14:35:17 -0400
Original-Received: by mail-oi1-x243.google.com with SMTP id b22so3801148oic.8;
Sat, 01 Aug 2020 11:35:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=/oqyRN7COC2b4HjHrVkebUgUxPxwhiWt5slthxu1XOQ=;
b=uXszdC8lF2Df9cpoBAScjlBJZ4LjWuWEEUrtiKLmse1NHxCWdCmokeYtBCOz5RG90R
M4To30m8DMMmuk9CQ3w8EGtRsFKgYiSM55yBJsufdB2M2gKJvzF06+b0qdk4H6zinzmJ
iT9HEDliyleyZgQuNKE0kL5PVQZkHL8WUAYppVIAMWOpyKhRoKs8Yo35ZjiWfTj/i7DS
Kky+YyCCfCFPC3S7TD7BcrT5zij9uEt6ajnf3hpPux/fY+ge6g2uuRIiDnJK3JuqLqHO
xNJBQHY3cWD/jpRhQQKcX23IEATFYmnGa2T6dwXbMZYdtMx8fI+8l+JLP+MVlWLMq2PB
Pmzg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=/oqyRN7COC2b4HjHrVkebUgUxPxwhiWt5slthxu1XOQ=;
b=fdF9H5UnRE8nAqlYODVB3uBGEPikX4vsr58WqrAMxL9czTXLkZ9SOwuUHeNi6dUB8V
tSk2kkfeI53qagJ0Gyp4SmuRs01S7x3IzNWPvqkQYhsbI9gxBja55Y8RXkS9SwA5SLZ7
MWfd/Qrx8w0VfoF1cGcZ13wDIGU54ihw51myJAcclJLdA2vs/YhtLeg6VEC9/t25SOf+
7ZWYGNrYpGg6UumrLQ84/hP11Z4pjNv+Ky7G1q8AjMVVRRhb/V2vfA8ssDYc7ucvi9Gb
FKx+TIbrjDa/3w2dUk2Ns5GkvBHcdWuNrcVTqesUbnjIQhw0Oz67tn/H8vX6tfoZc/4a
/c4w==
X-Gm-Message-State: AOAM5313RQCEC08AqGP6OyphzP4ub9cRHHr9L3hcf5rjGPDo5gjMiaEX
5GCl+1aet0f5j1xBbutswsUDtJAZ7gg0EPDQa5TrLQ==
X-Google-Smtp-Source: ABdhPJy1TLQUFjEsxbPOL5GgILX3rxeoQkFMu6TJx6GY9cgC2sx9q0pmz4DYf8otcSkhUCr6WrG/Ow/FGXq7GuPu1FQ=
X-Received: by 2002:aca:b884:: with SMTP id i126mr7384489oif.65.1596306913775;
Sat, 01 Aug 2020 11:35:13 -0700 (PDT)
In-Reply-To: <83h7tmcj45.fsf@gnu.org>
Received-SPF: pass client-ip=2607:f8b0:4864:20::243;
envelope-from=p.stephani2@gmail.com; helo=mail-oi1-x243.google.com
X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache.
That's all we know.
X-Spam_score_int: -17
X-Spam_score: -1.8
X-Spam_bar: -
X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: "Emacs development discussions."
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org
Original-Sender: "Emacs-devel"
Xref: news.gmane.io gmane.emacs.devel:253391
Archived-At:
Am Sa., 1. Aug. 2020 um 20:32 Uhr schrieb Eli Zaretskii :
>
> > From: Philipp Stephani
> > Date: Sat, 1 Aug 2020 20:29:29 +0200
> > Cc: Alan Third , raman ,
> > Emacs developers
> >
> > > 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.
>
> The pointer is there, you just cannot safely extract it by casting to
> a narrower data type. You need to explicitly mask the MSBs by
> shifting or some other bit fiddling.
IIUC casting between unsigned integer types is guaranteed to have the
same effect.