summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/pragma-weak.c
Commit message (Collapse)AuthorAgeFilesLines
* IRGen: Add optnone attribute on function during O0Mehdi Amini2017-05-291-1/+1
| | | | | | | | | | | Amongst other, this will help LTO to correctly handle/honor files compiled with O0, helping debugging failures. It also seems in line with how we handle other options, like how -fnoinline adds the appropriate attribute as well. Differential Revision: https://reviews.llvm.org/D28404 llvm-svn: 304127
* Revert "Fix for merging decls in pragma weak Calling ↵Alexander Kornienko2015-12-031-9/+0
| | | | | | | | | | | | CheckFunctionDeclaration so that 2 decls for the 'weak' are merged. Differential Revision: http://reviews.llvm.org/D13048" This reverts commit r254143 which introduces a crash on the following input: f(char *); g(char *); #pragma weak f = g int g(char *p) {} llvm-svn: 254605
* Fix for merging decls in pragma weakAlexander Musman2015-11-261-0/+9
| | | | | | | Calling CheckFunctionDeclaration so that 2 decls for the 'weak' are merged. Differential Revision: http://reviews.llvm.org/D13048 llvm-svn: 254143
* Fix for assertion fail for pragma weak on typedef.Alexander Musman2015-09-181-2/+4
| | | | | | | | | | Example: typedef int __td3; #pragma weak td3 = __td3 Differential Revision: http://reviews.llvm.org/D12904 llvm-svn: 247975
* [opaque pointer type] update test cases for explicit pointee types on global ↵David Blaikie2015-09-111-12/+12
| | | | | | aliases llvm-svn: 247380
* Update for llvm change.Rafael Espindola2014-07-301-10/+10
| | | | llvm-svn: 214356
* Fix a parser crash when there are #pragmas in a context which requires a singleRichard Smith2013-10-281-0/+22
| | | | | | statement (after a case label, if, etc). Patch by Olivier Goffart! llvm-svn: 193545
* Treat aliases as definitions.Rafael Espindola2013-10-221-16/+0
| | | | | | | | | | | | | | This fixes pr17639. Before this patch clang would consider void foo(void) __attribute((alias("__foo"))); a declaration. It now correctly handles it as a definition. Initial patch by Alp Toker. I added support for variables. llvm-svn: 193200
* Make this test pass -verify.Rafael Espindola2013-10-211-2/+2
| | | | | | | | | Instead of using not, just drop the fastcall attribute which was causing an warning: calling convention 'fastcall' ignored for this target llvm-svn: 193110
* Don't hardcode the order of the aliases.Rafael Espindola2013-10-141-14/+14
| | | | llvm-svn: 192601
* CHECK-LABEL-ify some code gen tests to improve diagnostic experience when ↵Stephen Lin2013-08-151-13/+13
| | | | | | tests fail. llvm-svn: 188447
* Add 'not' to commands that are expected to fail.Rafael Espindola2013-07-041-1/+1
| | | | | | | This is at least good documentation, but also opens the possibility of using pipefail. llvm-svn: 185652
* Fix testcases to not rely upon target-* attributes.Bill Wendling2013-02-261-7/+5
| | | | llvm-svn: 176135
* Revert "Add more attributes from the command line to functions."Anna Zaks2013-02-251-5/+7
| | | | | | | | This reverts commit 176009. The commit is a likely cause of several buildbot failures. llvm-svn: 176044
* Add more attributes from the command line to functions.Bill Wendling2013-02-251-7/+5
| | | | | | | This is an ongoing process. Any command line option which a back-end cares about should be added here. llvm-svn: 176009
* Modify the tests to use attribute group references instead of listing theBill Wendling2013-02-201-3/+8
| | | | | | function attributes. llvm-svn: 175606
* Update the tests.Bill Wendling2013-01-311-3/+3
| | | | | | | This update coincides with r174110. That change ordered the attributes alphabetically. llvm-svn: 174111
* People put pragmas in crazy places; add more handling. PR14046.Eli Friedman2012-10-091-0/+9
| | | | | | | I think our general framework for parser pragmas needs a bit more work, but I'm not planning on working on it at the moment. llvm-svn: 165558
* Make sure the FunctionDecl's created by "#pragma weak" have correct ↵Eli Friedman2011-09-071-4/+11
| | | | | | ParmVarDecl's. PR10878. llvm-svn: 139224
* Fix PR8720 by printing an error message with a substring that the gcc ↵Rafael Espindola2010-12-071-1/+1
| | | | | | testsuite searches for. llvm-svn: 121137
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - 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). llvm-svn: 91446
* convert this to filecheck, hopefully it will fix PR4888. If nothingChris Lattner2009-09-081-36/+43
| | | | | | else it will make tests run faster and make 4888 easier to diagnose. llvm-svn: 81238
* Fix test case for Darwin10 (which sets ssp), and move to CodeGen/Daniel Dunbar2009-08-041-0/+158
llvm-svn: 78049
OpenPOWER on IntegriCloud