pgsql: Adapt expression JIT to stdbool.h introduction.

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Adapt expression JIT to stdbool.h introduction.
Date: 2018-03-23 05:36:22
Message-ID: E1ezFNG-0003sW-1Q@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Adapt expression JIT to stdbool.h introduction.

The LLVM JIT provider uses clang to synchronize types between normal C
code and runtime generated code. Clang represents stdbool.h style
booleans in return values & parameters differently from booleans
stored in variables.

Thus the expression compilation code from 2a0faed9d needs to be
adapted to 9a95a77d9. Instead of hardcoding i8 as the type for
booleans (which already was wrong on some edge case platforms!), use
postgres' notion of a boolean as used for storage and for parameters.

Per buildfarm animal xenodermus.

Author: Andres Freund

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2111a48a0c5e5198a68cba0c8fb82c4f61be5928

Modified Files
--------------
src/backend/jit/llvm/llvmjit.c | 31 ++++++++-
src/backend/jit/llvm/llvmjit_expr.c | 126 ++++++++++++++++++-----------------
src/backend/jit/llvm/llvmjit_types.c | 16 ++++-
src/include/jit/llvmjit.h | 5 +-
src/include/jit/llvmjit_emit.h | 18 +++++
5 files changed, 132 insertions(+), 64 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2018-03-23 06:22:32 Re: pgsql: Use stdbool.h if suitable
Previous Message Andres Freund 2018-03-23 05:22:33 Re: pgsql: Use stdbool.h if suitable