Builtin bzero? Please don't.

Richard Henderson rth@redhat.com
Thu Jan 10 15:23:00 GMT 2002


On Thu, Jan 10, 2002 at 11:15:20PM +0000, Joseph S. Myers wrote:
> 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.

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.

Can we distinguish a call to __builtin_bzero and bzero?  If so
this should be fairly easy.  Otherwise...


r~



More information about the Gcc-bugs mailing list