https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97229

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Created attachment 49298
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49298&action=edit
Reduced test-case

There's reduced test-case:

$ gcc pointer-cmp.c -fsanitize=address,pointer-compare &&
ASAN_OPTIONS="detect_invalid_pointer_pairs=2" perf record ./a.out
$ perf report --stdio
...
    95.22%  a.out    libasan.so.6.0.0    [.] __asan::GetGlobalsForAddress
     2.13%  a.out    libasan.so.6.0.0    [.] __sanitizer::internal_memcpy
     0.75%  a.out    libasan.so.6.0.0    [.] __sanitizer::BlockingMutex::Lock
     0.60%  a.out    libasan.so.6.0.0    [.] __sanitizer::BlockingMutex::Unlock

Reply via email to