diff mbox

[committed] Fix [Bug sanitizer/70573] FAIL: c-c++-common/asan/halt_on_error-1.c

Message ID 797F65C9-0528-44FE-8DD4-DE3F8082BF0E@lps.ens.fr
State New
Headers show

Commit Message

Dominique d'Humières April 9, 2016, 9:31 a.m. UTC
I have committed the following patch for PR70573 (preapproved by Jakub Jelinek in bugzilla)

Dominique
diff mbox

Patch

Index: gcc/testsuite/ChangeLog
===================================================================
--- gcc/testsuite/ChangeLog	(revision 234847)
+++ gcc/testsuite/ChangeLog	(working copy)
@@ -1,3 +1,10 @@ 
+2016-04-09  Dominique d'Humieres  <dominiq@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  <cesar@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;