]> granicus.if.org Git - clang/commit
Tighten diagnostics for calling conventions on variadic functions
authorHans Wennborg <hans@hanshq.net>
Wed, 9 Oct 2013 18:10:25 +0000 (18:10 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 9 Oct 2013 18:10:25 +0000 (18:10 +0000)
commit45d3950e373412f395413c81a0310e8090508608
treebb2b0d5a1132b1ff9304cd987955d622baf73dbb
parent9fe529f15723018a2fecdcc35611210f92ed2b82
Tighten diagnostics for calling conventions on variadic functions

Follow-up from r192240.

This makes it an error to use callee-cleanup conventions on variadic
functions, except for __fastcall and __stdcall, which we ignore with
a warning for GCC and MSVC compatibility.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192308 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Specifiers.h
lib/Sema/SemaType.cpp
test/CodeGen/microsoft-call-conv.c
test/Sema/callingconv.c
test/Sema/mrtd.c
test/SemaCXX/calling-conv-compat.cpp