From: Ivan Maidanski Date: Tue, 21 Nov 2017 08:03:28 +0000 (+0300) Subject: Support AddressSanitizer (GCC) X-Git-Tag: v8.0.0~503 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e8e90817b28f5043708797515281c58b2308872a;p=gc Support AddressSanitizer (GCC) * include/private/gcconfig.h [!__has_feature && __SANITIZE_ADDRESS__] (ADDRESS_SANITIZER): Define. --- diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h index 4b751461..dd849491 100644 --- a/include/private/gcconfig.h +++ b/include/private/gcconfig.h @@ -3130,7 +3130,12 @@ # if __has_feature(thread_sanitizer) && !defined(THREAD_SANITIZER) # define THREAD_SANITIZER # endif -#endif +#else +# ifdef __SANITIZE_ADDRESS__ + /* GCC v4.8+ */ +# define ADDRESS_SANITIZER +# endif +#endif /* !__has_feature */ #if defined(SPARC) # define ASM_CLEAR_CODE /* Stack clearing is crucial, and we */