Re: [PATCH] Fix -fsanitize=thread -O0 handling of atomics (PR sanitizer/78158)

2017-03-21 Thread Richard Biener
On Mon, 20 Mar 2017, Jakub Jelinek wrote: > Hi! > > libtsan only handles the standard memory model values, so I've added > just in case some new unknown memory model is used bail outs (keeping > the __atomic_* builtins instead of transforming them to __tsan_atomic*). > Except that at -O0 (or if u

[PATCH] Fix -fsanitize=thread -O0 handling of atomics (PR sanitizer/78158)

2017-03-20 Thread Jakub Jelinek
Hi! libtsan only handles the standard memory model values, so I've added just in case some new unknown memory model is used bail outs (keeping the __atomic_* builtins instead of transforming them to __tsan_atomic*). Except that at -O0 (or if unlucky enough otherwise) if the memory model is variabl