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.


 > > > 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


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