https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67575
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2015-09-14 Ever confirmed|0 |1 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Actually I was wrong, it was discussed but the discussion about having it: > TSAN will badly need similar optimization pass to what ASAN needs (after > deferring expansion of the shadow memory checks), e.g. var++ right now > results in __tsan_read4 (&var); followed soon by __tsan_write4 (&var);. > With no intervening calls (we could ignore many string/memory builtins > I guess) and no intervening atomics it should be fine to just use > __tsan_write4 (&var); for that, right? Right. https://gcc.gnu.org/ml/gcc-patches/2012-11/msg02430.html