summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Darwin(ish): enable embedded compiler-rt builds on Darwin.Tim Northover2013-11-151-1/+3
| | | | | | | | This builds extra versions of compiler-rt targeting various unhosted targets. Only built on Darwin since even though they're not iOS or OSX, they share some quirks. llvm-svn: 194878
* PR17949: Fix crash if someone puts a namespace inside a class template.Richard Smith2013-11-154-8/+13
| | | | llvm-svn: 194872
* PR8455: Handle an attribute between a goto label and a variable declaration perRichard Smith2013-11-154-6/+78
| | | | | | | the GNU documentation: the attribute only appertains to the label if it is followed by a semicolon. Based on a patch by Aaron Ballman! llvm-svn: 194869
* ObjectiveC ARG. A positive test of my previous patch.Fariborz Jahanian2013-11-151-1/+16
| | | | | | // rdar://15454846 llvm-svn: 194864
* Fix typo in CGRecordLayoutBuilder.cpp: s/Field/Fields/ in commentHans Wennborg2013-11-151-1/+1
| | | | llvm-svn: 194863
* ObjectiveC ARC. Lookup type associated with objc_bridage atFariborz Jahanian2013-11-153-3/+53
| | | | | | | | the point of CF object type-cast and issue diagnostic if it is not a valid ObjectiveC class. // rdar//15454846. This is wip. llvm-svn: 194861
* These ACLE tests no longer need to cast the return value.Chad Rosier2013-11-151-8/+8
| | | | llvm-svn: 194854
* Diagnose C++11 attributes before fp_contract pragmas.Richard Smith2013-11-152-0/+6
| | | | llvm-svn: 194850
* Fix bogus diagnostic wording. There's no such thing as a compound expression.Richard Smith2013-11-152-3/+3
| | | | llvm-svn: 194849
* Revert "Using an invalid -O falls back on -O3 instead of an error"Alp Toker2013-11-157-20/+11
| | | | | | | | | | | | | | | | | | | | | | | | Trying to fix test failures since earlier today. One of the tests added in this commit is outputting test/Driver/clang_f_opts.s which the builders that build in-tree (eg. clang-native-arm-cortex-a9) are trying to run as a test case, causing failures. clang_f_opts.c: If -### doesn't emit the warning then this test probably shouldn't be in here in the first place. Frontend maybe? invalid-o-level.c: Running %clang_cc1 in the Driver tests doesn't make sense because -cc1 bypasses the driver. (I'm not reverting the commit that introduced this but please fix instead of keeping it this way.) Reverting to fix the build failures and also so that the tests can be thought out more thoroughly. This reverts commit r194817. llvm-svn: 194845
* clang-cl: Make the driver parse all(?) msvc flagsHans Wennborg2013-11-152-14/+166
| | | | | | | | | | | Even if we don't support a flag, we should be able to parse it to provide a better error message than the current default "error: no such file or directory: '/foo'" (which we should probably also tweak, btw). This also tries to clean up the test file a bit. llvm-svn: 194837
* Remove an unused local from r194827Alp Toker2013-11-151-1/+0
| | | | llvm-svn: 194835
* Darwin: Look for libc++ headers in include/, rather than lib/Justin Bogner2013-11-151-5/+7
| | | | | | | | | | | | Up until now we were expecting that when libc++ is installed alongside clang the headers would be in lib/, which was true if the configure build was used and false if the cmake build was. We've now corrected the configure build to install in include/, and with this change we'll be able to find the correct headers with both build systems. llvm-svn: 194834
* libc++: Install headers in include/, rather than lib/Justin Bogner2013-11-151-1/+1
| | | | | | | | | When using the configure build system, the libc++ headers were being installed in lib/, whereas cmake installs them in include/. Since include/ makes more sense for headers, we'll make both systems install headers there. llvm-svn: 194833
* ObjectiveC. Fixes a bogus warning of unused backingFariborz Jahanian2013-11-152-1/+35
| | | | | | | | ivar when property belongs to a super class and currnt class happens to have a method with same name as property. // rdar//15473432 llvm-svn: 194830
* Update contact information.Chad Rosier2013-11-151-1/+1
| | | | llvm-svn: 194829
* [-cxx-abi microsoft] Emit thunks for pointers to virtual member functionsHans Wennborg2013-11-156-47/+262
| | | | | | | | | | | | | | | | Instead of storing the vtable offset directly in the function pointer and doing a branch to check for virtualness at each call site, the MS ABI generates a thunk for calling the function at a specific vtable offset, and puts that in the function pointer. This patch adds support for emitting such thunks. However, it doesn't support pointers to virtual member functions that are variadic, have an incomplete aggregate return type or parameter, or are overriding a function in a virtual base class. Differential Revision: http://llvm-reviews.chandlerc.com/D2104 llvm-svn: 194827
* [ASan] Fix darwin-sanitizer-ld.c for iossim, which seems to use -lc++ ↵Alexander Potapenko2013-11-151-1/+1
| | | | | | instead of -lstdc++. llvm-svn: 194822
* [ASan] Link with libclang_rt.asan_iossim_dynamic.dylib when targeting the ↵Alexander Potapenko2013-11-152-2/+19
| | | | | | | | iOS simulator. Add a test. llvm-svn: 194820
* Using an invalid -O falls back on -O3 instead of an errorSylvestre Ledru2013-11-157-11/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Currently with clang: $ clang -O20 foo.c error: invalid value '20' in '-O20' With the patch: $ clang -O20 foo.c warning: optimization level '-O20' is unsupported; using '-O3' instead. 1 warning generated. This matches the gcc behavior (with a warning added) Pass all tests: Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. Testing Time: 94.14s Expected Passes : 6721 Expected Failures : 20 Unsupported Tests : 17 (which was not the case of http://llvm-reviews.chandlerc.com/D2125) Reviewers: chandlerc, rafael, rengolin, hfinkel Reviewed By: rengolin CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D2152 llvm-svn: 194817
* [ASan] If the iOS Simulator SDK is available, build the ASan iossim runtime ↵Alexander Potapenko2013-11-151-0/+4
| | | | | | using configure+make. llvm-svn: 194816
* Ignore test Inputs globally and remove redundant lit.local.cfg filesAlp Toker2013-11-157-6/+5
| | | | | | | | | | By adding a default config.excludes pattern we can avoid individual suppressions in subdirectories. This matches LLVM's lit.cfg which also excludes a few other common non-test filenames for consistency. llvm-svn: 194814
* Tests for core issue 216-223.Richard Smith2013-11-153-7/+119
| | | | llvm-svn: 194795
* When we hit a #include directive that maps to a module import, emit a tokenRichard Smith2013-11-157-9/+55
| | | | | | | | | | | | representing the module import rather than making the module immediately visible. This serves two goals: * It avoids making declarations in the module visible prematurely, if we walk past the #include during a tentative parse, for instance, and * It gives a diagnostic (although, admittedly, not a very nice one) if a header with a corresponding module is included anywhere other than at the top level. llvm-svn: 194782
* PR17533 and duplicates: don't compute the return type of an overloaded operatorRichard Smith2013-11-153-16/+39
| | | | | | | until after we've referenced the operator; otherwise, we might pick up a not-yet-deduced type. llvm-svn: 194775
* Don't reject dependent range-based for loops in constexpr functions. The loopRichard Smith2013-11-152-1/+14
| | | | | | variable isn't really uninitialized, it's just not initialized yet. llvm-svn: 194767
* Fix test failures after addrspacecast added.Matt Arsenault2013-11-152-7/+11
| | | | | | Bitcasts between address spaces are no longer allowed. llvm-svn: 194765
* [analyzer] Silence warnings coming from allocators used by std::basic_string.Jordan Rose2013-11-153-15/+55
| | | | | | | | | | | | This is similar to r194004: because we can't reason about the data structure invariants of std::basic_string, the analyzer decides it's possible for an allocator to be used to deallocate the string's inline storage. Just ignore this by walking up the stack, skipping past methods in classes with "allocator" in the name, and seeing if we reach std::basic_string that way. PR17866 llvm-svn: 194764
* [analyzer] Include bug column numbers in HTML output (in a comment).Jordan Rose2013-11-151-0/+4
| | | | | | | | | | This has no effect on user-visible output, but can be used by post-processing tools that work with the generated HTML, rather than using CmpRuns.py's interface to work with plists. Patch by György Orbán! llvm-svn: 194763
* Modern gcc is happy to constant evaluate __builtin_strlen in various casesRichard Smith2013-11-152-17/+81
| | | | | | | where we didn't. Extend our constant evaluation for __builtin_strlen to handle any constant array of chars, not just string literals, to match. llvm-svn: 194762
* R600: Add processor type for HawaiiTom Stellard2013-11-142-0/+3
| | | | llvm-svn: 194751
* PR 17916: Don't fail if xcrun is not present.Joerg Sonnenberger2013-11-141-5/+8
| | | | llvm-svn: 194745
* Fix typoDavid Peixotto2013-11-141-1/+1
| | | | llvm-svn: 194744
* Pass -Wa,-I and -Xassembler -I args to integrated assemblerDavid Peixotto2013-11-142-0/+39
| | | | | | | This patch adds -I to the arguments that are passed to the integrated assembler from -Wa, and -Xassembler args. llvm-svn: 194743
* Install clang-format's editor integrations in $PREFIX/share/clang/Hans Wennborg2013-11-141-0/+5
| | | | | | | | They were previously not part of the install target. Differential Revision: http://llvm-reviews.chandlerc.com/D2154 llvm-svn: 194741
* DR408: If a static data member of incomplete array type is declared in a classRichard Smith2013-11-143-1/+36
| | | | | | | | | | template, that member has a dependent type (even if we can see the definition of the member of the primary template), because the array size could change in a member specialization. Patch by Karthik Bhat! llvm-svn: 194740
* Makes A Microsoft Layout CodeGen Test ExplicitWarren Hunt2013-11-142-1/+11
| | | | | | | | | | This patch tests introduces a proper codegen test in place of the "codegen no longer crashes" test introduced in r193664. The test is also moved from layout to CodeGenCXX. Differential Revision: http://llvm-reviews.chandlerc.com/D2174 llvm-svn: 194739
* Add -Wdeprecated-writable-string in C++ to -Wc++11-compat, since it's ↵Richard Smith2013-11-143-2/+12
| | | | | | ill-formed in C++11. llvm-svn: 194736
* [AArch64] Add support for legacy AArch32 NEON scalar shift right by immediateChad Rosier2013-11-142-0/+35
| | | | | | and accumulate instructions. llvm-svn: 194732
* ObjectiveC migrator: This patch sets access propertyFariborz Jahanian2013-11-144-42/+44
| | | | | | attributes on 'readonly' properties. // rdar://15460787 llvm-svn: 194718
* [OpenCL] Make sure we put string literals in the constant address space.Joey Gouly2013-11-145-4/+38
| | | | llvm-svn: 194717
* [analyzer] Treat MSVC's _wassert as noreturn.Jordan Rose2013-11-142-0/+11
| | | | | | | | This makes sure the analyzer actually honors assert() in an MSVC project. Patch by Anders Montonen! llvm-svn: 194716
* [objcmt] Introduce "objcmt-white-list-dir-path=" option.Argyrios Kyrtzidis2013-11-1411-6/+84
| | | | | | | This options accepts a path to a directory, collects the filenames of the files it contains, and the migrator will only modify files with the same filename. llvm-svn: 194710
* [objcmt] -objcmt-atomic-property & -objcmt-ns-nonatomic-iosonly are ↵Argyrios Kyrtzidis2013-11-141-3/+7
| | | | | | | | companion flags. Ignore them when determining if some transformation was enabled. llvm-svn: 194709
* Move classes into anonymous namespaces.Benjamin Kramer2013-11-141-0/+4
| | | | llvm-svn: 194706
* [Mips] Add tests for MIPS/MIPS64 type defines and type limits macros. NoSimon Atanasyan2013-11-141-0/+214
| | | | | | functional changes - just reflection of the current state. llvm-svn: 194690
* Remove a test failure.Kevin Qin2013-11-141-4/+0
| | | | llvm-svn: 194678
* Add test case for AArch64 NEON poly64 intrinsic.Kevin Qin2013-11-141-0/+287
| | | | llvm-svn: 194674
* Add test cases for AArch64 NEON instruction set misc.Kevin Qin2013-11-141-0/+1951
| | | | llvm-svn: 194672
* Revert r194663 and r194647.Ted Kremenek2013-11-142-23/+0
| | | | | | Per feedback from Jordan Rose I realized this wasn't the right way to go. llvm-svn: 194664
OpenPOWER on IntegriCloud