https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98737
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 52170 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52170&action=edit gcc12-pr98737-canon.patch Untested patch to fix up if users misuse the fetch_op or op_fetch atomic when they should be using the other one.