https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107963
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Fangrui Song from comment #3) > GCC doesn't implement -fsanitize=memory. > In the absence of it, __attribute__((disable_sanitizer_instrumentation)) is > like __attribute__((no_sanitize("all"))). > > When -fsanitize=memory is implemented, the two attribute will be different. Why do you think GCC will implement no_sanitize that way. It already didn't implement no_sanitize that way for -fsanitize=thread too.