This is the mail archive of the
mailing list for the GCC project.
Re: bcopy -> memcpy/memmove transition proposal
- To: Per Bothner <bothner at cygnus dot com>
- Subject: Re: bcopy -> memcpy/memmove transition proposal
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sat, 19 Sep 1998 20:24:07 -0600
- cc: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>, egcs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <199809191817.LAA10496@cygnus.com>you write:
> > If you do "foo = memcpy()" I think you lose if
> > sizeof(int)!=sizeof(ptr) and no prototype exists.
> The GNU coding standards recommends against doing that, and I concur.
Right, but these things do slip through once in a while and do we want
to take the chance of generating incorrect (and bloody difficult to find)
code) in such situations?
> This is certainly not necessary for using the mem* functions.
True, but there's several files from libiberty that gcc is using
obstack, getopt, cplus-dem, pexecute, vfprintf, choose-temp, mkstemp,
and alloca. I think Kaveh is argueing that instead of creating another
hack that we should bite the bullet and link in libiberty (dealing
with the host/build issues along the way).