Re: --with-llvm on 32-bit platforms? - Mailing list pgsql-hackers

From Thomas Munro
Subject Re: --with-llvm on 32-bit platforms?
Date
Msg-id CA+hUKGKmfUA3mDojQOffHbNPiQxm1p3ce_QYvJSEnVy61Wom9A@mail.gmail.com
Whole thread Raw
In response to Re: --with-llvm on 32-bit platforms?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: --with-llvm on 32-bit platforms?
List pgsql-hackers
On Tue, Sep 16, 2025 at 8:22 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Dmitry Mityugov <d.mityugov@postgrespro.ru> writes:
> > What's interesting is that when I add the following (quick and dirty)
> > assertion to DatumGetPointer on 32-bit Linux platforms,
>
> > DatumGetPointer(Datum X)
> > {
> >          Assert((X & 0xFFFFFFFF00000000) == 0);
> >          return (Pointer) (uintptr_t) X;
> > }
>
> > I get a failure in Postgres executable early on startup.
>
> Interesting, but again, how about a stack trace?

Hmm.  We use TypeSizeT in generated IR for Datum, which is obviously
incorrect in this configuration.



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Buffer locking is special (hints, checksums, AIO writes)
Next
From: Michael Paquier
Date:
Subject: Re: PgStat_HashKey padding issue when passed by reference