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

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I think the right fix is to add the
&& !lookup_attribute ("no_sanitize_address", DECL_ATTRIBUTES
(current_function_decl)) check next to the && ASAN_STACK checks (perhaps even
put
(flag_sanitize & SANITIZE_ADDRESS)
&& ASAN_STACK
&& !lookup_attribute ("no_sanitize_address",
                      DECL_ATTRIBUTES (current_function_decl))
into a special small inline predicate in that file and use it in the 4 places.

Reply via email to