Builtins and C++ and such
Alexandre Oliva
aoliva@redhat.com
Tue Mar 19 20:42:00 GMT 2002
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
More information about the Gcc
mailing list