This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
libchill/memmove.c
- To: gcc-bugs at gcc dot gnu dot org, zack at wolery dot cumb dot org
- Subject: libchill/memmove.c
- From: Brad Lucier <lucier at math dot purdue dot edu>
- Date: Tue, 30 May 2000 14:32:50 -0500 (EST)
- Cc: lucier at math dot purdue dot edu
libchill/memove.c was recently changed to include <string.h>.
On alphaev6-unknown-linux-gnu (RedHat 6.0), memmove is already declared
in string.h, and the prototype is different from the code in memmove.c,
causing a bootstrap failure:
../../../libchill/memmove.c: In function `memmove':
../../../libchill/memmove.c:58: argument `n' doesn't match prototype
/usr/include/string.h:42: prototype declaration
make[2]: *** [memmove.o] Error 1
I would think that the existence of memmove should be tested in the
configure script, or at least the following change should be made to
memmove.c:
RCS file: RCS/memmove.c,v
retrieving revision 1.1
diff -c -r1.1 memmove.c
*** memmove.c 2000/05/30 18:45:14 1.1
--- memmove.c 2000/05/30 19:21:23
***************
*** 54,60 ****
memmove (s1, s2, n)
void *s1;
const void *s2;
! unsigned int n;
{
char *sc1 = s1;
const char *sc2 = s2;
--- 54,60 ----
memmove (s1, s2, n)
void *s1;
const void *s2;
! size_t n;
{
char *sc1 = s1;
const char *sc2 = s2;
Brad Lucier