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: David Holland <dholland at eecs dot harvard dot edu>
- To: rth at redhat dot com (Richard Henderson)
- Cc: jsm28 at cam dot ac dot uk (Joseph S. Myers), dholland at eecs dot harvard dot edu (David Holland), bug-gcc at gnu dot org
- Date: Thu, 10 Jan 2002 18:26:55 -0500 (EST)
- Subject: Re: Builtin bzero? Please don't.
> > > 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.
>
> Actually, what I think David is suggesting is that if we see a
> call to bzero, and we try to interpret it as a builtin, and we
> don't expand it inline, that we proceed with the original call
> to bzero, which would not be a namespace violation.
That wasn't what I was suggesting, actually, although it would resolve
the particular gripe I have. It would be more powerful to be able to
tell the backend somehow what to call when it wants to clear storage.
If it can only be one thing, I suppose it has to be memset, since
that's standard.
--
- David A. Holland | VINO project home page:
dholland@eecs.harvard.edu | http://www.eecs.harvard.edu/vino