This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [testsuite,patch] Replace __builtin_bzero with __builtin_memset
- From: "Richard Guenther" <richard dot guenther at gmail dot com>
- To: FX <fxcoudert at gmail dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, "Danny Smith" <dannysmith at users dot sourceforge dot net>
- Date: Tue, 5 Feb 2008 12:24:13 +0100
- Subject: Re: [testsuite,patch] Replace __builtin_bzero with __builtin_memset
- References: <19c433eb0801300203o6a6c1bf4y40c940c81c59c071@mail.gmail.com> <19c433eb0802050311o735a01d4qdf741d3ae99e48ba@mail.gmail.com>
On Feb 5, 2008 12:11 PM, FX <fxcoudert@gmail.com> wrote:
> ping
Ok.
>
> > 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/
>