https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108659
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Wilco from comment #8) > Yes that sounds like a reasonable approach. I don't think so. Not all variables on which __atomic_* intrinsics are used are actually _Atomic, the vars can be embedded in const aggregates etc.