Re: --with-llvm on 32-bit platforms?

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема Re: --with-llvm on 32-bit platforms?
Дата
Msg-id CA+hUKGLaNj7f47hTF5qLAmCYzz5yoR8PEz2OR_KNde2Jn6tLfg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: --with-llvm on 32-bit platforms?  (Thomas Munro <thomas.munro@gmail.com>)
Ответы Re: --with-llvm on 32-bit platforms?
Список pgsql-hackers
On Tue, Sep 16, 2025 at 12:51 PM Thomas Munro <thomas.munro@gmail.com> wrote:
> On Tue, Sep 16, 2025 at 12:05 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> > Thomas Munro <thomas.munro@gmail.com> writes:
> > > Hmm.  We use TypeSizeT in generated IR for Datum, which is obviously
> > > incorrect in this configuration.
> >
> > Oh!  Yeah, that is surely broken now.

This patch seems to work OK here.  The deform code is a little tricky
as you have to think carefully about which places need TypeDatum and
which need TypeSizeT in llvmjit_deform.c, since the v_offp variable
really is size_t.  Tested on Debian 13 with i386 packages installed.

More changes would be needed if Datum is changed into a struct.

Вложения

В списке pgsql-hackers по дате отправления: