http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55309
--- Comment #17 from Kostya Serebryany <kcc at gcc dot gnu.org> 2013-02-06 11:18:28 UTC --- Trying this patch: % cat inc.cc void foo(int *a) { (*a)++; } % gcc -fsanitize=address -O2 inc.cc -S -o - | grep __asan_report call __asan_report_load4 call __asan_report_store4 % clang -fsanitize=address -O2 inc.cc -S -o - | grep __asan_report callq __asan_report_load4 % Is this test expected to work (have one __asan_error call) with this patch? (I've checked that the patch is applied correctly, on gcc/testsuite/c-c++-common/asan/no-redundant-instrumentation-1.c it reduces the number of calls from 16 to 5)