pgsql: Adapt expression JIT to stdbool.h introduction.

Поиск
Список
Период
Сортировка
От Andres Freund
Тема pgsql: Adapt expression JIT to stdbool.h introduction.
Дата
Msg-id E1ezFNG-0003sW-1Q@gemulon.postgresql.org
обсуждение исходный текст
Список 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(-)


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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: pgsql: Use stdbool.h if suitable
Следующее
От: Andres Freund
Дата:
Сообщение: Re: pgsql: Use stdbool.h if suitable