I have committed the following patch for PR70573 (preapproved by Jakub Jelinek 
in bugzilla)

Dominique

Index: gcc/testsuite/ChangeLog
===================================================================
--- gcc/testsuite/ChangeLog     (revision 234847)
+++ gcc/testsuite/ChangeLog     (working copy)
@@ -1,3 +1,10 @@
+2016-04-09  Dominique d'Humieres  <domi...@lps.ens.fr>
+
+       PR sanitizer/70573
+       * c-c++-common/asan/halt_on_error-1.c: Replace memset
+       with __builtin_memset
+       * c-c++-common/asan/halt_on_error-2.c: Likewise.
+
 2016-04-08  Cesar Philippidis  <ce...@codesourcery.com>
 
        PR lto/70289
Index: gcc/testsuite/c-c++-common/asan/halt_on_error-1.c
===================================================================
--- gcc/testsuite/c-c++-common/asan/halt_on_error-1.c   (revision 234847)
+++ gcc/testsuite/c-c++-common/asan/halt_on_error-1.c   (working copy)
@@ -9,7 +9,7 @@
 
 int main() {
   char x[10];
-  memset(x, 0, ten + 1);
+  __builtin_memset(x, 0, ten + 1);
   asm volatile ("" : : : "memory");
   volatile int res = x[ten];
   x[ten] = res + 3;
Index: gcc/testsuite/c-c++-common/asan/halt_on_error-2.c
===================================================================
--- gcc/testsuite/c-c++-common/asan/halt_on_error-2.c   (revision 234847)
+++ gcc/testsuite/c-c++-common/asan/halt_on_error-2.c   (working copy)
@@ -10,7 +10,7 @@
 
 int main() {
   char x[10];
-  memset(x, 0, ten + 1);
+  __builtin_memset(x, 0, ten + 1);
   asm volatile ("" : : : "memory");
   volatile int res = x[ten];
   x[ten] = res + 3;


Reply via email to