Unable to bootstrap gcc snapshot of 20001211 on Dynix/ptx
Robert Lipe
robertlipe@usa.net
Mon Dec 18 19:29:00 GMT 2000
Joe Buck wrote:
> Janis Johnson writes:
>
> > Biswa posted a test case that showed that bcopy() from DYNIX/ptx V4.4.8
> > does not handle overlapping memory. Apparently it was following an
> > earlier standard that did not require it to handle such a case, but
> > DYNIX/ptx V4.6.0 follows UNIX 98 and bcopy() handles overlaps there.
>
> Ouch. I was going to suggest just getting rid of the bcopy calls
> and rely on libiberty to provide memcpy and memmove for systems that
> lack it. But libiberty appears to assume that it can implement memmove, on
> systems that don't have it, as a wrapper around bcopy.
But isn't a system far more likely to have memmove as described in ISO C
library ago than bcopy anyway? Replacing the calls to bcopy still seems
like a better path.
RJL
More information about the Gcc
mailing list