alloc.c (mark_memory): Do not check with -faddress-sanitizer when
authorJohn Wiegley <jwiegley@gmail.com>
Wed, 27 Jun 2012 03:49:35 +0000 (22:49 -0500)
committerJohn Wiegley <jwiegley@gmail.com>
Wed, 27 Jun 2012 03:49:35 +0000 (22:49 -0500)
building with Clang.

src/ChangeLog
src/alloc.c

index 9b412fd..d0e226d 100644 (file)
@@ -1,3 +1,8 @@
+2012-06-26  John Wiegley  <johnw@newartisans.com>
+
+       * alloc.c (mark_memory): Do not check with -faddress-sanitizer
+       when building with Clang.
+
 2012-06-26  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * eval.c (Fapply): Allow calling it with a single argument.
index 7f9574d..e1fd479 100644 (file)
@@ -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;