This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[testsuite,patch] Replace __builtin_bzero with __builtin_memset
- From: FX <fxcoudert at gmail dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Cc: "Danny Smith" <dannysmith at users dot sourceforge dot net>
- Date: Wed, 30 Jan 2008 10:03:07 +0000
- Subject: [testsuite,patch] Replace __builtin_bzero with __builtin_memset
Patch below replaces __builtin_bzero() with __builtin_memset() in the
gcc.c-torture/execute/multi-ix.c testcase. On mingw, we don't have a
library function bzero() and the testcase fails at -O0. OK to commit?
FX
2008-01-30 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
PR testsuite/33946
* gcc.c-torture/execute/multi-ix.c: Call memset instead of
bzero.
Index: gcc/testsuite/gcc.c-torture/execute/multi-ix.c
===================================================================
--- gcc/testsuite/gcc.c-torture/execute/multi-ix.c (revision 131883)
+++ gcc/testsuite/gcc.c-torture/execute/multi-ix.c (working copy)
@@ -171,7 +171,7 @@
while (n--)
{
int *a = va_arg (list, int *);
- __builtin_bzero (a, sizeof (l));
+ __builtin_memset (a, 0, sizeof (l));
}
va_end (list);
}
--
FX Coudert
http://www.homepages.ucl.ac.uk/~uccafco/