Fix unportable use of __builtin_constant_p
John Naylor <john.naylor@postgresql.org>
Author:
John Naylor <john.naylor@postgresql.org>
Date: 2026-04-06T02:30:01Z
Releases:
19 (unreleased)
Fix unportable use of __builtin_constant_p On MSVC Arm, USE_ARMV8_CRC32C is defined, but __builtin_constant_p is not available. Use pg_integer_constant_p and add appropriate guards. There is a similar potential hazard for the x86 path, but for now let's get the buildfarm green. Oversight in commit fbc57f2bc, per buildfarm member hoatzin.
Files
| Path | Change | +/− |
|---|---|---|
| src/include/port/pg_crc32c.h | modified | +9 −1 |