Module Name: src Committed By: kamil Date: Sun Sep 22 23:23:12 UTC 2019
Modified Files: src/sys/sys: cdefs.h Log Message: Handle LSan/LLVM and LSan/GCC in __NO_LEAKS __has_feature(leak_sanitizer) was merged with Clang/LLVM today: https://reviews.llvm.org/D67719 GCC specific ifdef __SANITIZE_LEAK__ is pending in upstream review... https://gcc.gnu.org/ml/gcc-patches/2019-09/msg01270.html and can be rejected as GCC upstream does not see value in feature parity with LLVM sanitizers. For the time being this will be a NetBSD specific extension. To generate a diff of this commit: cvs rdiff -u -r1.145 -r1.146 src/sys/sys/cdefs.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/sys/cdefs.h diff -u src/sys/sys/cdefs.h:1.145 src/sys/sys/cdefs.h:1.146 --- src/sys/sys/cdefs.h:1.145 Sun Sep 22 23:13:10 2019 +++ src/sys/sys/cdefs.h Sun Sep 22 23:23:12 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: cdefs.h,v 1.145 2019/09/22 23:13:10 kamil Exp $ */ +/* $NetBSD: cdefs.h,v 1.146 2019/09/22 23:23:12 kamil Exp $ */ /* * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. @@ -345,7 +345,8 @@ #endif #if defined(__COVERITY__) || \ - __has_feature(address_sanitizer) || defined(__SANITIZE_ADDRESS__) + __has_feature(address_sanitizer) || defined(__SANITIZE_ADDRESS__) ||\ + __has_feature(leak_sanitizer) || defined(__SANITIZE_LEAK__) #define __NO_LEAKS #endif