This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]