llvm-project/clang/lib
John McCall cbc038a6c3 ANSI C requires that a call to an unprototyped function type succeed
if the definition has a non-variadic prototype with compatible
parameters.  Therefore, the default rule for such calls must be to
use a non-variadic convention.  Achieve this by casting the callee to
the function type with which it is required to be compatible, unless
the target specifically opts out and insists that unprototyped calls
should use the variadic rules.  The only case of that I'm aware of is
the x86-64 convention, which passes arguments the same way in both
cases but also sets a small amount of extra information;  here we seek
to maintain compatibility with GCC, which does set this when calling
an unprototyped function.

Addresses PR10810 and PR10713.

llvm-svn: 140241
2011-09-21 08:08:30 +00:00
..
ARCMigrate Rename SourceLocation::getFileLocWithOffset -> getLocWithOffset. 2011-09-19 20:40:19 +00:00
AST Remove redundant break statements, and replace asserts with llvm_unreachable 2011-09-20 12:40:26 +00:00
Analysis Test commit 2011-09-20 17:25:59 +00:00
Basic In SourceManager::translateLineCol, handle the case where we are pointing 2011-09-20 22:14:54 +00:00
CodeGen ANSI C requires that a call to an unprototyped function type succeed 2011-09-21 08:08:30 +00:00
Driver Add case labels for Mips64 architectures. 2011-09-21 02:13:07 +00:00
Frontend Remove __WCHAR_UNSIGNED__ and anything that used it. 2011-09-20 18:05:01 +00:00
FrontendTool Eliminate the unused -create-module cc1-level option 2011-09-15 19:45:56 +00:00
Headers Tweak *mmintrin.h so that they don't make any bad assumptions about alignment (which probably has little effect in practice, but better to get it right). Make the load in _mm_loadh_pi and _mm_loadl_pi a single LLVM IR instruction to make optimizing easier for CodeGen. 2011-09-15 23:15:27 +00:00
Index remove unneeded llvm:: namespace qualifiers on some core types now that LLVM.h imports 2011-07-23 10:55:15 +00:00
Lex [libclang] When pointing at a macro expansion inside a macro argument, 2011-09-20 23:27:33 +00:00
Parse Fix a problem in digraph handling where "[:" might be treated as "<::" and 2011-09-20 20:03:50 +00:00
Rewrite Rename SourceLocation::getFileLocWithOffset -> getLocWithOffset. 2011-09-19 20:40:19 +00:00
Sema [microsoft] Move missing typename warning from -fms-extensions to -fms-compatibility. Also allow the missing typename warning at function scope. 2011-09-21 07:59:49 +00:00
Serialization Fix MSVC9 build by providing a full comparator object to lower_bound. 2011-09-21 06:42:26 +00:00
StaticAnalyzer [analyzer] Fix a bug where PathDiagnosticLocation did not generate a valid range and add asserts to check validity of locations early on. Ignore invalid ranges in PathDiagnosticPiece (they could be added by checker writers). 2011-09-21 00:35:58 +00:00
CMakeLists.txt The ARC Migration Tool. All the credit goes to Argyrios and Fariborz 2011-06-15 23:25:17 +00:00
Makefile The ARC Migration Tool. All the credit goes to Argyrios and Fariborz 2011-06-15 23:25:17 +00:00