Go to file
Reid Kleckner 78af0708b7 Delete CC_Default and use the target default CC everywhere
Summary:
Makes functions with implicit calling convention compatible with
function types with a matching explicit calling convention.  This fixes
things like calls to qsort(), which has an explicit __cdecl attribute on
the comparator in Windows headers.

Clang will now infer the calling convention from the declarator.  There
are two cases when the CC must be adjusted during redeclaration:
1. When defining a non-inline static method.
2. When redeclaring a function with an implicit or mismatched
convention.

Fixes PR13457, and allows clang to compile CommandLine.cpp for the
Microsoft C++ ABI.

Excellent test cases provided by Alexander Zinenko!

Reviewers: rsmith

Differential Revision: http://llvm-reviews.chandlerc.com/D1231

llvm-svn: 189412
2013-08-27 23:08:25 +00:00
clang Delete CC_Default and use the target default CC everywhere 2013-08-27 23:08:25 +00:00
clang-tools-extra Temporarily revert r189363 as it seems to be failing to build. 2013-08-27 17:26:07 +00:00
compiler-rt Properly generate lists of exported symbols for sanitizer runtimes 2013-08-27 15:08:02 +00:00
debuginfo-tests Now that we get non-trivial value parameters locations correct, un-XFAIL these tests. 2013-06-19 22:07:11 +00:00
libclc Add mul_hi implementation [v2] 2013-08-19 18:31:49 +00:00
libcxx Marked #2163 as complete in previous commit instead of #2162. Corrected. 2013-08-27 20:25:06 +00:00
libcxxabi Propagate the removal of _LIBCPP_CANTTHROW (r189046) to libcxxabi. This fixes http://llvm.org/bugs/show_bug.cgi?id=16996. 2013-08-25 17:00:57 +00:00
lld [PECOFF] Add the entry symbol and /include symbols to dead strip root set. 2013-08-27 05:15:20 +00:00
lldb Fix 'platform shell' command for Linux host and remote lldb-platform connections 2013-08-27 21:01:01 +00:00
llvm Add xml files for msbuild integration 2013-08-27 23:07:17 +00:00
polly Remove unneeded comma and update formatting 2013-08-24 17:58:59 +00:00