]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Use function attributes for SSE 4.2 even when targeting that extension
authorJohn Naylor <john.naylor@postgresql.org>
Tue, 1 Apr 2025 05:01:58 +0000 (12:01 +0700)
committerJohn Naylor <john.naylor@postgresql.org>
Tue, 1 Apr 2025 05:01:58 +0000 (12:01 +0700)
commitaf0c248557aecb335462d980cb7319bdf85a5c66
tree485a2fe57e46f881f0d965222e2d665c7e89ba88
parent3dbdf86c6364d6b8470fa4067096062cea62405a
Use function attributes for SSE 4.2 even when targeting that extension

On Red Hat 9 systems (or similar), the packaged gcc targets x86-64-v2,
but clang does not. This has caused build failures in the wake of
commit e2809e3a1 when building --with-llvm.

The most expedient fix is to use the same function attributes for
the inlined function as we do for the global function.

Reported-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com> (plus members skimmer and bumblebee)
Diagnosed-by: Tom Lane <tgl@sss.pgh.pa.us>
Tested-by: Todd Cook <cookt@blackduck.com>
Discussion: https://postgr.es/m/CANWCAZZSxs3a1YRKehkgk2OHKbrVn+xZ+AWW8Co2R_f70NqqmA@mail.gmail.com
src/include/port/pg_crc32c.h