Re: [PATCH] kcov: add __no_sanitize_coverage to fix noinstr for all architectures

From: Miguel Ojeda
Date: Tue May 25 2021 - 14:25:38 EST


On Tue, May 25, 2021 at 7:59 PM Marco Elver <elver@xxxxxxxxxx> wrote:
>
> +#if defined(CONFIG_KCOV) && CONFIG_CLANG_VERSION >= 130000

Is there any reason why Clang does not implement
`__has_attribute(__no_sanitize_coverage__)` like GCC? That way we can
merge both (perhaps even in `compiler_attributes.h`).

Cheers,
Miguel