This is the mail archive of the gcc@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: Builtins and C++ and such


On Mar 19, 2002, Mark Mitchell <mark@codesourcery.com> wrote:

> (Somebody still has to tell me we can't just do this in headers for C++,
> which is the language with the performance regression...)

Lemme try:

- std::memcpy and ::memcpy are supposed to be the same function

- defining std::memcpy as an inline function that calls
  __builtin_memcpy would breaks this since C defines ::memcpy

- defining an extern "C" inline ::memcpy would break the ODR since
  it's already defined in libc

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


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