This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Builtin bzero? Please don't.
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: David Holland <dholland at eecs dot harvard dot edu>
- Cc: Richard Henderson <rth at redhat dot com>, <bug-gcc at gnu dot org>
- Date: Thu, 10 Jan 2002 23:15:20 +0000 (GMT)
- Subject: Re: Builtin bzero? Please don't.
On Thu, 10 Jan 2002, David Holland wrote:
> and that still looks like a pessimization to me. Perhaps there should
> be a way to tell clear_storage to emit bzero calls instead of memset
> calls?
Obviously that would have to be __bzero because of namespace rules. I
would like a way for the C library to communicate such information as
available functions that can be called from built-in functions, and the
correct value of __STDC_ISO_10646__, to the compiler - probably by an
implicitly included header <stdc-macros.h> that the compiler includes if
it exists, which defines __STDC_ISO_10646__ (a library property, but which
must be defined throughout a translation unit to the same value if it is
defined) and includes #pragmas to identify available library functions.
--
Joseph S. Myers
jsm28@cam.ac.uk