This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] Don't clear DECL_BUILT_IN_CLASS/DECL_FUNCTION_CODE when redeclaring a builtin if types match
I can see both sides to this, but I tend to agree with Jakub. Code that
really wants to override the builtin will need to use -fno-builtin in
other translation units, so it might as well use it in the translation
unit with the definition for consistency. Yes, this is likely to
confuse people who want to override builtins, but that's going to be
tricky to get right in any case.
The other option would be to add an attribute so glibc can mark the
inlines as "still builtin".
Jason