I wonder if somewhere in Postgres source "we" are relying on the GCC
"correct behaviour" regarding the read-modify-write of bitfield in
structures.
Take a read at this https://lwn.net/Articles/478657/
sorry if this was already mentioned.
Regards
Gaetano Mendola