Subject: Re: CVS commit: basesrc
To: None <firstname.lastname@example.org>
From: Chris G. Demetriou <email@example.com>
Date: 10/08/2000 18:57:44
> On Sun, 8 Oct 2000, Simon Burge wrote:
> > Modified Files:
> > basesrc/usr.bin/sort: sort.h
> > Log Message:
> > Include <string.h> to get prototype for memcpy(). Fixed compile problems
> > on alpha (and other LP64 archs?).
> > XXX: Can't gcc be fixed so that it doesn't auto-prototype mem*()??
> We also see a lot of this in pkgsrc
> (ftp://jumbo.hamachi.org/pub/NetBSD/pkgstat/last/broken.html), and it
> makes me wonder a bit why this only bites on 64bit archs...
i'd guess because it's because the default return type of 'int' is
"compatible enough" in gcc's mind with the builtin fn's return value
-- a pointer -- on 32 bit archs.
on 64 bit archs, obviously it's not.
never dug into gcc to be sure tho.