broken JIT support on Fedora 40

Pavel Stehule <pavel.stehule@gmail.com>

From: Pavel Stehule <pavel.stehule@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2024-03-06T06:53:53Z
Lists: pgsql-hackers
Hi

after today update, the build with --with-llvm produces broken code, and
make check fails with crash

    Upgrade    hwdata-0.380-1.fc40.noarch
@updates-testing
    Upgraded   hwdata-0.379-1.fc40.noarch                           @@System
    Upgrade    llvm-18.1.0~rc4-1.fc40.x86_64
 @updates-testing
    Upgraded   llvm-17.0.6-6.fc40.x86_64                            @@System
    Upgrade    llvm-devel-18.1.0~rc4-1.fc40.x86_64
 @updates-testing
    Upgraded   llvm-devel-17.0.6-6.fc40.x86_64                      @@System
    Upgrade    llvm-googletest-18.1.0~rc4-1.fc40.x86_64
@updates-testing
    Upgraded   llvm-googletest-17.0.6-6.fc40.x86_64                 @@System
    Upgrade    llvm-libs-18.1.0~rc4-1.fc40.i686
@updates-testing
    Upgraded   llvm-libs-17.0.6-6.fc40.i686                         @@System
    Upgrade    llvm-libs-18.1.0~rc4-1.fc40.x86_64
@updates-testing
    Upgraded   llvm-libs-17.0.6-6.fc40.x86_64                       @@System
    Upgrade    llvm-static-18.1.0~rc4-1.fc40.x86_64
@updates-testing
    Upgraded   llvm-static-17.0.6-6.fc40.x86_64                     @@System
    Upgrade    llvm-test-18.1.0~rc4-1.fc40.x86_64
@updates-testing
    Instalovat llvm17-libs-17.0.6-7.fc40.i686
@updates-testing
    Instalovat llvm17-libs-17.0.6-7.fc40.x86_64
@updates-testing

Regards

Pavel

Commits

  1. Run LLVM verify pass on IR in assert builds.

  2. Fix illegal attribute propagation in LLVM JIT.

  3. Track LLVM 18 changes.

  4. jit: Changes for LLVM 17.