summaryrefslogtreecommitdiffstats
path: root/clang/test/Headers
Commit message (Collapse)AuthorAgeFilesLines
...
* [clang tests] Added require ppc64-registered-target to ↵Michael Gottesman2012-10-311-0/+1
| | | | | | Headers/altivec-header.c to ensure it only runs on ppc64. llvm-svn: 167162
* Add "static" to some functions in altivec.c where it was missing.Ulrich Weigand2012-10-311-0/+11
| | | | llvm-svn: 167148
* Prior to adding the new "expected-no-diagnostics" directive to ↵Andy Gibbs2012-10-195-0/+5
| | | | | | VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. llvm-svn: 166280
* Use %clang_cc1 so that the test works even if the target isn't available.Jordan Rose2012-09-271-8/+8
| | | | | | | | | Xcode-style clang builds only support Xcode's architectures, so mips isn't available and the driver tries to use gcc instead. cc1 will go ahead and do -fsyntax-only for any platform it knows about even if it can't actually compile. llvm-svn: 164742
* Make our mini-stdint.h platform-independent by using predefined macros.Jordan Rose2012-09-261-7/+11
| | | | | | | | This also adds a definition for uint64_t, which was causing build failures on some platforms. (I'm actually surprised this didn't happen on more builders, but maybe the search paths are different.) llvm-svn: 164706
* Fix build failure and enhance the testcase for unwind.h.Logan Chien2012-09-262-3/+31
| | | | llvm-svn: 164683
* Run test in a freestanding environment so it doesn't accidentally pick up ↵Benjamin Kramer2012-09-261-4/+3
| | | | | | | | system headers for the wrong target. While there add a test that verifies that the header parses in C++ mode. llvm-svn: 164679
* Add struct keyword before _Unwind_Context.Logan Chien2012-09-261-0/+6
| | | | | | | | In the C programming language, we have to add the "struct" keyword. Otherwise, the compiler will emit error message. llvm-svn: 164665
* Remove the 'intrin.h' builtin header file and its tests for now.Chandler Carruth2012-05-071-11/+0
| | | | | | | | | After discussion with several people, including Doug Gregor, we've decided to change our approach here. If you have questions about this header file, the commit removing it, etc., please reach out to me off-list. llvm-svn: 156322
* Let NULL and MSVC headers coexist better.Nico Weber2012-04-241-0/+16
| | | | | | Fixes the two issues mentioned in PR12146. llvm-svn: 155490
* Introduce an initial sketch of a MSVC compatible 'intrin.h' builtinChandler Carruth2012-04-241-0/+11
| | | | | | | | | | | header, along with a stub test to make sure it compiles in the appropriate modes. Thanks to Aaron Ballman for working with me to figure out the initial strategy here, and to Nico for reviewing and pestering me to actually commit it. llvm-svn: 155425
* Fix tests that weren't actually verifying anything.David Blaikie2012-04-151-1/+1
| | | | | | | | | | | | | | Passing -verify to clang without -cc1 or -Xclang silently passes (with a printed warning, but lit doesn't care about that). This change adds -cc1 or, as is necessary in one case, -Xclang to fix this so that these tests are actually verifying as intended. I'd like to change the driver so this kind of mistake could not be made, but I'm not entirely sure how. Further, since the driver only warns about unknown flags in general, we could have similar bugs with a misspellings of arguments that would be nice to find. llvm-svn: 154776
* rename -ccc-host-triple into -targetSebastian Pop2012-01-201-1/+1
| | | | llvm-svn: 148582
* Revert r148138; it's causing test failures.Eli Friedman2012-01-131-1/+1
| | | | llvm-svn: 148141
* rename -ccc-host-triple into -targetSebastian Pop2012-01-131-1/+1
| | | | llvm-svn: 148138
* Headers: wmmintrin.h only needs xmmintrin.h.Daniel Dunbar2011-12-061-0/+4
| | | | | | | - Fixes <rdar://problem/10261246> clang -maes option is not sufficient to include <wmmintrin.h> llvm-svn: 145939
* Remove __WCHAR_UNSIGNED__ and anything that used it.Eric Christopher2011-09-201-6/+0
| | | | llvm-svn: 140155
* Remove WCHAR_MIN and WCHAR_MAX from limits.h. According to posix and c99Eric Christopher2011-09-081-1/+1
| | | | | | | | these should be in stdint.h - and they already are. Fixes rdar://10097036. llvm-svn: 139332
* Use -ffreestanding with clang_cc1 to make the test picks the clang builtin ↵Francois Pichet2011-07-221-2/+2
| | | | | | include. llvm-svn: 135766
* Fix test on MSVC: since the test includes a system header it cannot use ↵Francois Pichet2011-07-221-2/+2
| | | | | | clang_cc1. llvm-svn: 135763
* Add a missing test for the limits on wcharAlexis Hunt2011-07-211-0/+15
| | | | llvm-svn: 135708
* Attempt to fix linux buildbots by adding -ffreestanding for arm_neon tests.Bob Wilson2010-12-021-3/+3
| | | | | | | The arm_neon.h header includes stdint.h and it picks up the system header without -ffreestanding. llvm-svn: 120716
* Add a test for calling a Neon intrinsic macro with the wrong vector type.Bob Wilson2010-12-021-5/+0
| | | | | | | | This does not work so well with the -fno-lax-vector-conversions option for testing the arm_neon.h header but that is a really useful test, so I split this out to a separate Sema test to check for the warning. llvm-svn: 120694
* Test use of arm_neon.h with -fno-lax-vector-conversions.Bob Wilson2010-12-021-0/+1
| | | | llvm-svn: 120642
* Add a testcase for Radar 8228022.Bob Wilson2010-12-021-0/+9
| | | | | | | Make sure the -Wvector-conversions does not cause unnecessary warnings when using Neon intrinsics with the correct types. llvm-svn: 120634
* Undo part of my previous commit to mm_malloc.h, going back to the use ofChandler Carruth2010-11-221-7/+3
| | | | | | | | | | | | | | stdlib.h. There were numerous problems with forward declaring 'malloc' and 'free', but the most important is that these are reserved by POSIX and may be implemented via a function-like macro. As suggested by Dale Johannesen, I'm instead guarding the only include of this in our builtin headers with __STDC_HOSTED__, and I've removed the include of the header from the test suite. I'll discuss with folks whether we want to have a hosted section of the test suite or not, and add it (and perhaps other tests) back there if that's the direction. llvm-svn: 119958
* Linux still needs these hacks.Bill Wendling2010-10-201-0/+5
| | | | llvm-svn: 116888
* Now that mm_malloc.h was rewritten to *not* include errno.h (seeBill Wendling2010-10-191-5/+0
| | | | | | | http://llvm.org/viewvc/llvm-project?rev=116771&view=rev) we can get rid of these hacks. llvm-svn: 116853
* Define _Bool, bool, true, and false macros in <stdbool.h> when we'reDouglas Gregor2010-09-291-0/+14
| | | | | | in a GNU-compatible C++ dialect. Fixes <rdar://problem/8477819>. llvm-svn: 115028
* Disallow direct inclusion of avxintrin.h. Users should include immintrin.h ↵Benjamin Kramer2010-08-201-24/+7
| | | | | | instead. This matches GCC's behavior. llvm-svn: 111692
* Add AVX intrinsics headerBruno Cardoso Lopes2010-08-041-0/+4
| | | | llvm-svn: 110253
* Headers: Define __INT64_TYPE__ in terms of getInt64Type(), which isn't alwaysDaniel Dunbar2010-06-301-0/+4
| | | | | | | | 'long'. The practical upshot is so that the uint64_t we define in our stdint.h ends up being compatible with that defined by gcc (at least on Darwin), which otherwise could lead to type incompatibilities with other system headers. llvm-svn: 107255
* tests: Use %clangxx when using driver for C++, in case C++ support is disabled.Daniel Dunbar2010-06-291-1/+1
| | | | llvm-svn: 107153
* Make sure we don't include mm_malloc.h in this test, it includes errno.h whichDaniel Dunbar2010-03-261-1/+6
| | | | | | we aren't always able to find on Win32. llvm-svn: 99649
* Spell -triple correctly for %clang, not %clang_cc1.Daniel Dunbar2010-03-261-1/+1
| | | | llvm-svn: 99634
* i386-apple-darwin10 implies sse2, this option shouldn't be needed.Chris Lattner2010-03-261-1/+1
| | | | llvm-svn: 99627
* xmmintrin just requires sse2, not sse3.Chris Lattner2010-03-261-1/+1
| | | | llvm-svn: 99623
* move a test to a more appropriate directoryChris Lattner2010-03-221-0/+32
| | | | llvm-svn: 99200
* hopefully fix this on non-sse2 hosts. Shouldn't an apple-darwin10 Chris Lattner2010-03-221-1/+1
| | | | | | triple imply sse2? llvm-svn: 99197
* fix PR6658: inline isn't a keyword in C89 mode, use __inline__ instead.Chris Lattner2010-03-221-0/+5
| | | | llvm-svn: 99190
* Add test cases for r98003 and r98006.Ted Kremenek2010-03-081-0/+28
llvm-svn: 98008
OpenPOWER on IntegriCloud