This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: libchill/memmove.c won't compile
- To: Zack Weinberg <zack at wolery dot cumb dot org>
- Subject: Re: libchill/memmove.c won't compile
- From: Richard Earnshaw <rearnsha at arm dot com>
- Date: Tue, 30 May 2000 17:04:50 +0100
- Cc: gcc-bugs at gcc dot gnu dot org
- Cc: rearnsha at arm dot com
- Organization: ARM Ltd.
- Reply-To: rearnsha at arm dot com
> On Tue, May 30, 2000 at 03:00:18PM +0100, Richard Earnshaw wrote:
> >
> > [Arghh!, Maybe this time I've got all the headers right.. ]
> >
> > Zack,
> >
> > Your patch
> > 2000-05-29 Zack Weinberg <zack@wolery.cumb.org>
> >
> > * concatstr.c, exh.c: Include stdlib.h and string.h.
> > * delaycase.c, eqstr.c, memmove.c, printbuffer.c,
> > printevent.c, sendbuffer.c, waitbuffer.c: Include string.h.
> >
> > breaks a cross build on the ARM with Newlib, since the prototype for
> > memmove in string.h conflicts with the function definition in memove.c
> >
> > Why isn't the third argument of memmove (in libchill/memmove.c) of type
> > size_t as required by the standard?
>
> 'cos memmove.c didn't have size_t available. Please try this patch:
>
> * memmove.c: Include stddef.h. Change third arg's type to size_t.
Ok