Commit 7ed01296 authored by Marco Elver's avatar Marco Elver Committed by Miguel Ojeda
Browse files

Compiler Attributes: fix __has_attribute(__no_sanitize_coverage__) for GCC 4



Fix __has_attribute(__no_sanitize_coverage__) for GCC 4 by defining
__GCC4_has_attribute___no_sanitize_coverage__.

Fixes: 540540d0 ("kcov: add __no_sanitize_coverage to fix noinstr for all architectures")
Reported-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarMarco Elver <elver@google.com>
Signed-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
parent 62fb9874
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@
# define __GCC4_has_attribute___nonstring__           0
# define __GCC4_has_attribute___no_sanitize_address__ (__GNUC_MINOR__ >= 8)
# define __GCC4_has_attribute___no_sanitize_undefined__ (__GNUC_MINOR__ >= 9)
# define __GCC4_has_attribute___no_sanitize_coverage__ 0
# define __GCC4_has_attribute___fallthrough__         0
#endif