This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gcc-in-cxx] Use plain inline, not extern inline, for C++
On Fri, Mar 6, 2009 at 4:32 PM, Ian Lance Taylor <iant@google.com> wrote:
>> How about using the attribute gnu_inline for 4.3 and above?
>
> This is what we should do for C, yes. ÂFor C++ I think plain inline will
> still be correct.
Plain inline in C++ is creates vague linkage unlike GNU89 which does
not emit the function if not used. I think we should use this
attribute for both C and C++. This function is only used when
compiling with GCC anyways.
Thanks,
Andrew PInski