From: | John Naylor <john(dot)naylor(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Use function attributes for SSE 4.2 even when targeting that ext |
Date: | 2025-04-01 05:06:59 |
Message-ID: | E1tzTpz-0023RS-1E@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(dot)ntt(at)gmail(dot)com> (plus members skimmer and bumblebee)
Diagnosed-by: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Tested-by: Todd Cook <cookt(at)blackduck(dot)com>
Discussion: https://postgr.es/m/CANWCAZZSxs3a1YRKehkgk2OHKbrVn+xZ+AWW8Co2R_f70NqqmA@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/af0c248557aecb335462d980cb7319bdf85a5c66
Modified Files
--------------
src/include/port/pg_crc32c.h | 6 ++++++
1 file changed, 6 insertions(+)
From | Date | Subject | |
---|---|---|---|
Next Message | John Naylor | 2025-04-01 06:48:07 | Re: pgsql: Inline CRC computation for small fixed-length input on x86 |
Previous Message | John Naylor | 2025-04-01 04:20:43 | Re: pgsql: Inline CRC computation for small fixed-length input on x86 |