https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110799
Alexander Monakov <amonakov at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amonakov at gcc dot gnu.org --- Comment #5 from Alexander Monakov <amonakov at gcc dot gnu.org> --- (In reply to Richard Biener from comment #1) > We consider introducing load data races OK, what's the difference here? > There are other passes that would do similar things but in practice the > loads would be considered to possibly trap so the real-world impact might be > limited? What are the examples of other transforms that can introduce data races? This trips Valgrind's data race detector (valgrind --tool=helgrind) too. So I don't think checking SANITIZE_THREAD is the correct approach.