patch to clean out savestring, copystr, mybzero and mybcopy

Jeffrey A Law law@cygnus.com
Tue Jan 12 00:26:00 GMT 1999


  In message < 199901120135.RAA14492@cygnus.com >you write:
  > > 	This patch cleans out some uses of savestring, copystr, mybzero
  > > and mybcopy, it instead uses xstrdup, or bzero/bcopy.  Okay to install?
  > 
  > While one can argue for using bzero vs memset,
  > I think bcopy should be replaced by memmove/memcpy, in all code
  > that runs on the "host", since we have the appropriate autoconf
  > support.
I'm not aware of any special advantage of memset over bzero.  The compiler
knows how to suitably optimize both.  Systems where the mem* functions are
orders of magnitude slower than the b* functions are probably long gone.


jeff



More information about the Gcc-patches mailing list