model-writtenrun 8071 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- The thread began with Noah Misch announcing assembly implementations of PPC compare_exchange and fetch_add for all compilers, following the approach used by s_lock.h and arch-x86.h #1.
- Nearly a year later, Christoph Berg reported that building pg-cron on PPC with warnings treated as errors exposed an unsigned comparison against PG_INT16_MIN, and Noah proposed signed casts for both operand widths #2 #3.
- Noah posted the signed-comparison fix with boundary tests and a second patch enabling 64-bit assembly atomics under GCC, which does not define the existing __64BIT__ guard; he initially planned neither fix for back-patching #4.
- Tom Lane reviewed both patches, tested the comparison fix on an Apple PPC machine, and verified its assembly output; he advocated back-patching, with Christoph Berg and Michael Paquier also favoring fixes in older branches #5 #6 #7.
- Noah committed the GCC 64-bit guard fix unchanged as f5c1167b17 and the comparison fix with an additional obsolete-comment removal as 88ea7a1188, both from #4 and both back-patched to PostgreSQL 13.
- In his closing message, Noah explained that Tom's testing prompted removal of the misleading constant-detection comment and confirmed both fixes were pushed; the comparison fix changed generated code only in regress.o, while he accepted the modest code-generation risk of enabling GCC's 64-bit assembly path #8.