gcc: specialize atomics when old value not needed