https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125411
Drea Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2026-05-21
Severity|normal |enhancement
Ever confirmed|0 |1
--- Comment #2 from Drea Pinski <pinskia at gcc dot gnu.org> ---
It is not exactly a dup but very much closely related.
GCC does NOT optimize almost at all atomics.
I am not sure if we will ever do it but maybe one day.