aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley2012-07-11 01:14:27 -0500
committerJohn Wiegley2012-07-11 01:14:27 -0500
commitb41253a389afdffde3d2551e4c165f0ebbafdf89 (patch)
tree772126439a523aa0e2d961a232d7e25a3aae5e92 /src
parentd923b542aa2d115bb87e72e156be837cea752536 (diff)
downloademacs-b41253a389afdffde3d2551e4c165f0ebbafdf89.tar.gz
emacs-b41253a389afdffde3d2551e4c165f0ebbafdf89.zip
alloc.c (mark_memory): Guard the "no_address_safety_analysis" function
attribute, so we only use it if it exists in the compiler.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/alloc.c4
2 files changed, 9 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 8a6dc8644b8..64a7989a70f 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12012-07-11 John Wiegley <johnw@newartisans.com>
2
3 * alloc.c (mark_memory): Guard the "no_address_safety_analysis"
4 function attribute, so we only use it if it exists in the
5 compiler.
6
12012-07-11 Dmitry Antipov <dmantipov@yandex.ru> 72012-07-11 Dmitry Antipov <dmantipov@yandex.ru>
2 8
3 Avoid call to strlen in fast_c_string_match_ignore_case. 9 Avoid call to strlen in fast_c_string_match_ignore_case.
diff --git a/src/alloc.c b/src/alloc.c
index 89f2c5dbed1..ac200254b8c 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -4641,12 +4641,14 @@ mark_maybe_pointer (void *p)
4641 4641
4642static void 4642static void
4643mark_memory (void *start, void *end) 4643mark_memory (void *start, void *end)
4644#ifdef __clang__ 4644#if defined (__clang__) && defined (__has_feature)
4645#if __has_feature(address_sanitizer)
4645 /* Do not allow -faddress-sanitizer to check this function, since it 4646 /* Do not allow -faddress-sanitizer to check this function, since it
4646 crosses the function stack boundary, and thus would yield many 4647 crosses the function stack boundary, and thus would yield many
4647 false positives. */ 4648 false positives. */
4648 __attribute__((no_address_safety_analysis)) 4649 __attribute__((no_address_safety_analysis))
4649#endif 4650#endif
4651#endif
4650{ 4652{
4651 void **pp; 4653 void **pp;
4652 int i; 4654 int i;