This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]