I wrote:
> So about like this, then.
After actually testing (by removing the ARM stanza on a macOS machine),
it seems that placement doesn't work, because of the default definition
of S_UNLOCK at the bottom of the "#if defined(__GNUC__)" stuff. Putting
it inside that test works, and seems like it should be fine, since this
is a GCC-ism.
regards, tom lane