01f151e0ffba72bcad770bea5f563a9b68ca050e |
|
21-Sep-2011 |
John McCall <rjmccall@apple.com> |
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140241 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/functions.c
|
a0b7d2ed23c57c6fac4517aca22d2411ead698e4 |
|
28-Jun-2011 |
John McCall <rjmccall@apple.com> |
Merge this test into another. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133957 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/functions.c
|
784f21121a6c9418ebd86baa6814e36e1176c410 |
|
28-Apr-2010 |
John McCall <rjmccall@apple.com> |
Properly pass the address of a lazily-generated function declaration with incomplete type. Fixes PR6911. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102473 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/functions.c
|
1a4bb5cc1b545d7e359d20e30c0df54efd4b1b02 |
|
24-Feb-2010 |
John McCall <rjmccall@apple.com> |
Make this test portable to ABIs that use sret. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97035 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/functions.c
|
b7d35893186564bf8c4e706e5d05df06b23d2dc7 |
|
24-Feb-2010 |
John McCall <rjmccall@apple.com> |
Fix test case and convert fully to FileCheck. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97032 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/functions.c
|
0b0ef0a70b8010c66fad2603e4423ef1c1dc7015 |
|
24-Feb-2010 |
John McCall <rjmccall@apple.com> |
Canonicalize parameter and return types before computing ABI info. Eliminates a common source of oddities and, in theory, removes some redundant ABI computations. Also fixes a miscompile I introduced yesterday by refactoring some code and causing a slightly different code path to be taken that didn't perform *parameter* type canonicalization, just normal type canonicalization; this in turn caused a bit of ABI code to misfire because it was looking for 'double' or 'float' but received 'const float'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97030 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/functions.c
|
a5728872c7702ddd09537c95bc3cbd20e1f2fb09 |
|
15-Dec-2009 |
Daniel Dunbar <daniel@zuster.org> |
Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91446 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/functions.c
|
4fcfde4d5c8f25e40720972a5543d538a0dcb220 |
|
08-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Eliminate &&s in tests. - 'for i in $(find . -type f); do sed -e 's#\(RUN:.*[^ ]\) *&& *$#\1#g' $i | FileUpdate $i; done', for the curious. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86430 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/functions.c
|
1eb4433ac451dc16f4133a88af2d002ac26c58ef |
|
09-Sep-2009 |
Mike Stump <mrs@apple.com> |
Remove tabs, and whitespace cleanups. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81346 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/functions.c
|
c36541e7bfa69cc63e2668a986bc99117559c545 |
|
21-Jul-2009 |
Mike Stump <mrs@apple.com> |
Prep for new warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76638 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/functions.c
|
d6bebbfd510f3b495795b88aafd10ead3cb211e9 |
|
23-Jun-2009 |
Chris Lattner <sabre@nondot.org> |
fix PR4423. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73938 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/functions.c
|
bdb0132722082886558f31eccdba06ae1852c0ee |
|
05-May-2009 |
Chris Lattner <sabre@nondot.org> |
When defining a function whose type has no prototype, make an effort to go back and clean up existing uses of the bitcasted function. This is not just an optimization: it is required for correctness to get always inline functions to work, see testcases in function-attributes.c. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70971 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/functions.c
|
d7d5f0223bd30dfd618762349c6209dd1d5ea3e6 |
|
24-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Rename clang to clang-cc. Tests and drivers updated, still need to shuffle dirs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67602 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/functions.c
|
ff75e1db95a53c7606e0bb114cf9adc59ab3d7f6 |
|
22-Mar-2009 |
Chris Lattner <sabre@nondot.org> |
fix a fixme: non-proto struct returning function definitions should be compiled to something like: define void @bar(%struct.foo* noalias sret %agg.result) nounwind { instead of: define void @bar(%struct.foo* noalias sret %agg.result, ...) nounwind { git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67475 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/functions.c
|
d5d31801fc87239436fa349c89dce7797cf13537 |
|
19-Feb-2009 |
Daniel Dunbar <daniel@zuster.org> |
Don't emit K&R unprototyped function definitions as varargs. - <rdar://problem/6584606> clang/x86-64 - too many reg saves git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65032 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/functions.c
|
450da9832b31d9b2e90af7708d197e5b9e1af8c8 |
|
16-Feb-2009 |
Douglas Gregor <dgregor@apple.com> |
When merging from a function with a prototype to a function without a prototype, synthesize ParmVarDecls for prototype-less FunctionDecl. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64666 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/functions.c
|
05d2fb40859bbfc081ab08379452db876545bff6 |
|
31-Jul-2008 |
Chris Lattner <sabre@nondot.org> |
Fix a regression I introduced in r54107: http://llvm.org/viewvc/llvm-project?view=rev&revision=54107 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54242 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/functions.c
|
58c3f9ec11cbe852a518bf2f83af46f938b7b852 |
|
02-Dec-2007 |
Chris Lattner <sabre@nondot.org> |
implement codegen for functions whose function body type don't match their prototype. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44506 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CodeGen/functions.c
|