https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110799
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The data race is harmless as we don't use the value. && (flag_sanitize & SANITIZE_THREAD) == 0 is not right, it should be && !sanitize_flags_p (SANITIZE_THREAD) or so.