]> granicus.if.org Git - clang/commit
Remove the hack that avoided mangling static functions in extern C contexts.
authorRafael Espindola <rafael.espindola@gmail.com>
Sat, 23 Feb 2013 00:26:28 +0000 (00:26 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sat, 23 Feb 2013 00:26:28 +0000 (00:26 +0000)
commit02fb50d54042982bccc04c276ad2342827c8fcd3
tree0f25371b407b04c83b0c0f1ca7afdea34990a5f3
parent7728cddd7866fadd07f1191eee40985e3cdbc6bf
Remove the hack that avoided mangling static functions in extern C contexts.

Weather we should give C language linkage to functions and variables with
internal linkage probably depends on how much code assumes it. The standard
says they should have no language linkage, but gcc and msvc assign them
C language linkage.

This commit removes the hack that was preventing the mangling on static
functions declare in extern C contexts. It is an experiment to see if we
can implement the rules in the standard.

If it turns out that many users depend on these functions and variables
having C language linkage, we should change isExternC instead and try
to convince the CWG to change the standard.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175937 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ItaniumMangle.cpp
lib/Sema/SemaOverload.cpp
test/CodeGenCXX/c-linkage.cpp
test/SemaCXX/linkage2.cpp