diff options
author | John Wiegley <jwiegley@gmail.com> | 2012-06-26 22:49:35 -0500 |
---|---|---|
committer | John Wiegley <jwiegley@gmail.com> | 2012-06-26 22:49:35 -0500 |
commit | ed6b35106553c615b210a12b51a7ebb57aaa82e4 (patch) | |
tree | 1fb6428bc308fb1e83e38b30775f0bdb93ed8777 /src/alloc.c | |
parent | 65400531235c557072dbdb2a793bc892df009f82 (diff) | |
download | emacs-ed6b35106553c615b210a12b51a7ebb57aaa82e4.tar.gz emacs-ed6b35106553c615b210a12b51a7ebb57aaa82e4.tar.bz2 emacs-ed6b35106553c615b210a12b51a7ebb57aaa82e4.zip |
alloc.c (mark_memory): Do not check with -faddress-sanitizer when
building with Clang.
Diffstat (limited to 'src/alloc.c')
-rw-r--r-- | src/alloc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c index 7f9574d43d1..e1fd479699a 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -4621,6 +4621,12 @@ mark_maybe_pointer (void *p) static void mark_memory (void *start, void *end) +#ifdef __clang__ + /* Do not allow -faddress-sanitizer to check this function, since it + crosses the function stack boundary, and thus would yield many + false positives. */ + __attribute__((no_address_safety_analysis)) +#endif { void **pp; int i; |