[patches] Alternatives for static functions in extern C contexts

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Feb 21 06:34:08 PST 2013


> My worry here is that nobody will actually benefit from this (your symbol
> tables are slightly larger! hooray!), but somebody out there might be
> *really* unhappy (you have to give all these functions external linkage!
> hooray!).  But maybe we'd get lucky and nobody would have a problem.

I think I agree. I don't see a rationale in the DR other than the
confusing naming of something being "extern C" but not extern.

Given that gcc and msvc give these functions C language linkage, the
only advantage would be to clang only codebases that could use
overloaded static functions in a extern "C" context.

Richard, are you ok with assign_c_language_linkage.patch?

> John.

Cheers,
Rafael



More information about the cfe-commits mailing list