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


>>>>> "Gabriel" == Gabriel Dos Reis <gdr@codesourcery.com> writes:

> I'm strongly of the opinion of Jason that, even though the ideal
> would be to have the library do most of the dirty work, the compiler
> ought to assist us through some extensions.

Actually, I disagree about the ideal.  I think the compiler is The Right
Place for this stuff.

> Here is a fourth suggestion.
> Suppose for a moment that the compiler is smart enought (or can be
> made smart) to replace a reference to a function by the
> referenced function where possible, then we could say:

>    void(&memcpy)(void*, const void*, size_t) = __builtin_memcpy;

Again, this would involve putting the library through contortions in order
to tell the compiler about itself.

Jason


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