For PowerPC instruction "addi", use constraint "b". Without "b", a variant of the tas() code miscompiles on macOS 10.4. This may also fix a compilation failure involving macOS 10.1. Today's compilers have been allocating acceptable registers with or without this change, but this future-proofs the code by precisely conveying the acceptable registers. Back-patch to 9.4 (all supported versions).
Reviewed by Tom Lane. Discussion: https://postgr.es/m/[email protected] Branch ------ REL9_4_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/930787c7fab98f14f1e4a98a201a7f7cef2e55bc Modified Files -------------- src/include/storage/s_lock.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
