summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Test fixAlexey Bataev2014-06-301-4/+4
| | | | llvm-svn: 212026
* Fixed incompatibility in CodeGen/captured-statements-nested.c with MSVCAlexey Bataev2014-06-301-1/+1
| | | | llvm-svn: 212025
* Fixed CodeGen/captured-statements-nested.c testAlexey Bataev2014-06-301-26/+23
| | | | llvm-svn: 212024
* [Driver][Mips] Fix test cases - make ABI name and target triple consistent.Simon Atanasyan2014-06-302-4/+4
| | | | | | No functional changes. llvm-svn: 212023
* [Driver][Mips] Check rejecting of invalid MIPS ABI names in the test.Simon Atanasyan2014-06-301-2/+13
| | | | | | No functional changes. llvm-svn: 212022
* Disable CodeGen/captured-statements-nested.cAlexey Bataev2014-06-301-0/+1
| | | | llvm-svn: 212018
* Fixed CodeGen/captured-statements-nested.c testAlexey Bataev2014-06-301-20/+19
| | | | llvm-svn: 212016
* Disable CodeGen/captured-statements-nested.cAlexey Bataev2014-06-301-1/+1
| | | | llvm-svn: 212014
* Temp XFAIL CodeGen/captured-statements-nested.c to fix the testAlexey Bataev2014-06-301-0/+1
| | | | llvm-svn: 212013
* Using of variable length arrays in captured statements and OpenMP constructs.Alexey Bataev2014-06-306-23/+159
| | | | | | Differential Revision: http://reviews.llvm.org/D4067 llvm-svn: 212010
* test: move test from CodeGen to SemaSaleem Abdulrasool2014-06-301-1/+2
| | | | | | | Move test from CodeGen to Sema to more accurately reflect what is being tested as pointed out by Alp. llvm-svn: 212009
* Remove some incorrect test suppressionsAlp Toker2014-06-308-9/+1
| | | | | | | | | These don't actually require any registered backend to run. This commit tests the water with a handful of fixes for what is a more widespread problem. llvm-svn: 212008
* CodeGenAction::ExecuteAction(): check for invalid LLVM source locationsAlp Toker2014-06-301-5/+11
| | | | | | | | | | | | | Add sign checks to deal with the fact that IR parser line/column pairs are signed integers and sometimes invalid. The crash path is potentially triggered by corrupt '.bc' files in practice, though I don't have a binary input test case that can be checked-in right now. (Unfortunately the backend itself crashes on various ill-formed '.bc' inputs so this bandage isn't as helpful as it appears yet.) llvm-svn: 212007
* Extract an isReservedName() functionAlp Toker2014-06-301-18/+18
| | | | | | | | | | | | | | We'll want to share the implementation if anything else decides to check for reserved names in future, so make this little snippet of code more discoverable. Also remove the __va_list_tag and __builtin_va_list special-case checks. They're leftovers from before when the reserved name logic was added. No change in functionality. llvm-svn: 212006
* Basic: correct the va_list type on Windows on ARMSaleem Abdulrasool2014-06-292-0/+19
| | | | | | | | | Windows on ARM defines va_list as a typedef for char *. Although the semantics of argument passing for variadic functions matches AAPCS VFP, the wrapped struct __va_list type is unused. This makes the intrinsic definition for va_list match that of Visual Studio. llvm-svn: 212004
* Fix a stray semi-colon. (Found by a pedantic warning)Chandler Carruth2014-06-291-1/+1
| | | | llvm-svn: 212003
* Add a matcher for SubstNonTypeTemplateParmExpr.Alexander Kornienko2014-06-292-1/+25
| | | | | | | | | | | | Reviewers: klimek, djasper Reviewed By: djasper Subscribers: klimek, aemerson, cfe-commits Differential Revision: http://reviews.llvm.org/D4327 llvm-svn: 212001
* [Mips] Fix MIPS ABI name in the test. The name "64" is accepted by both gccSimon Atanasyan2014-06-291-1/+1
| | | | | | and Clang drivers but internally LLVM/Clang use the name "n64". llvm-svn: 211999
* Revert r211866, r211895 and r211995, "Driver: use GNU::Link for the ↵NAKAMURA Takumi2014-06-299-283/+21
| | | | | | | | | | | Generic_GCC toolchain". It broke users of Generic_GCC, cygwin and mingw32. It reverts commits as follows: r211866: "Driver: use GNU::Link for the Generic_GCC toolchain" r211895: "Replace GetProgramPath("ld") with GetLinkerPath()." r211995: "Driver: add a cygwin linker tool" llvm-svn: 211998
* LibclangTest.cpp: s/uint/unsigned/. I think 'uint' is not a standard type.NAKAMURA Takumi2014-06-291-3/+3
| | | | llvm-svn: 211997
* clang/test/CodeGenCXX/windows-itanium-exceptions.cpp: Add REQUIRES:asserts ↵NAKAMURA Takumi2014-06-291-0/+1
| | | | | | for now. llvm-svn: 211996
* Driver: add a cygwin linker toolSaleem Abdulrasool2014-06-297-0/+255
| | | | | | | | | This adds a linker tool for the Windows cygwin environment. This linker invocation is significantly different from the generic ld invocation. It requires additional parameters as well as does not accept some normal parameters. This should fix self-hosting on Cygwin. llvm-svn: 211995
* test: add a test for windows itanium exceptionsSaleem Abdulrasool2014-06-281-0/+46
| | | | | | | | Some time ago, I noticed that try would get resolved incorrectly for Windows Itanium targets. Add an explicit test to exsure that exceptions are handled correctly for Windows Itanium environments. llvm-svn: 211992
* Basic: fix handling for Windows Itanium environmentSaleem Abdulrasool2014-06-282-0/+16
| | | | | | | This corrects the handling for i686-windows-itanium. This environment is nearly identical to Windows MSVC, except it uses the itanium ABI for C++. llvm-svn: 211991
* Basic: whitespace cleanupSaleem Abdulrasool2014-06-281-3/+0
| | | | | | Remove unnecessary separation of anonymous namespace. NFC. llvm-svn: 211990
* Extend -Wtautological-undefined-compare and -Wundefined-bool-conversion toRichard Trieu2014-06-284-12/+185
| | | | | | | trigger on taking the address of a reference that is returned from a function call. llvm-svn: 211989
* Import MutableArrayRef into clang namespace.Craig Topper2014-06-2816-32/+34
| | | | llvm-svn: 211988
* Remove llvm:: from uses of ArrayRef.Craig Topper2014-06-2830-60/+59
| | | | llvm-svn: 211987
* [Driver][Mips] Fix else-after-return.Simon Atanasyan2014-06-281-4/+6
| | | | | | No functional changes. llvm-svn: 211984
* [Driver][Mips] Remove redundant brackets.Simon Atanasyan2014-06-281-1/+1
| | | | | | No functional changes. llvm-svn: 211983
* [Driver][Mips] Remove redundant abstract/override function.Simon Atanasyan2014-06-281-1/+0
| | | | | | No functional changes. llvm-svn: 211982
* Get arm_acle tests from r211962 workingAlp Toker2014-06-282-4/+3
| | | | llvm-svn: 211979
* Extend -Wdynamic-class-memaccess to records containing dynamic classesReid Kleckner2014-06-273-20/+58
| | | | | | | | | | Reviewers: rtrieu Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D4325 llvm-svn: 211972
* Introduce arm_acle.h supporting existing LLVM builtin intrinsicsYi Kong2014-06-276-0/+294
| | | | | | | | | | | | | | Summary: This patch introduces ACLE header file, implementing extensions that can be directly mapped to existing Clang intrinsics. It implements for both AArch32 and AArch64. Reviewers: t.p.northover, compnerd, rengolin Reviewed By: compnerd, rengolin Subscribers: rnk, echristo, compnerd, aemerson, mroth, cfe-commits Differential Revision: http://reviews.llvm.org/D4296 llvm-svn: 211962
* Remove 'const' from MemoryBuffers used through the SourceManagerDavid Blaikie2014-06-2712-76/+63
| | | | | | | | | | | | | | This removes a const_cast added in r211884 that occurred due to an inconsistency in how MemoryBuffers are handled between some parts of clang and LLVM. MemoryBuffers are immutable and the general convention in the LLVM project is to omit const from immutable types as it's simply redundant/verbose (see llvm::Type, for example). While this change doesn't remove "const" from /every/ MemoryBuffer, it at least makes this chain of ownership/usage consistent. llvm-svn: 211915
* Add reparse test for libclangBen Langmuir2014-06-271-0/+89
| | | | | | Adapted from a reproducer by Dan Schmidt, thanks! llvm-svn: 211910
* clang-cl: Map /EHs- to -fno-exceptionsReid Kleckner2014-06-274-6/+80
| | | | | | | | | | | | | | | This isn't 100% compatible with MSVC, but it's close enough. MSVC's /EH flag doesn't really control exceptions so much as how to clean up after an exception is thrown. The upshot is that cl.exe /EHs- will compile try, throw, and catch statements with a warning, but clang-cl will reject such constructs with a hard error. We can't compile such EH constructs anyway, but this may matter to consumers of the AST. Reviewers: hans Differential Revision: http://reviews.llvm.org/D4317 llvm-svn: 211909
* CodeGen: Fix a typo in getThreadLocalWrapperLinkageDavid Majnemer2014-06-271-1/+1
| | | | | | The description had a misspelling. No functionality change. llvm-svn: 211908
* Fix a bug in my previous patch by restoring the behavior that the fatalChandler Carruth2014-06-271-1/+14
| | | | | | | | | | | | | | error handler is only registered once. To avoid the use of std::call_once (the obvious way to do this) I've wrapped everything up into a managed static and done the work in a constructor. Silly, but it should be effective. Some out-of-tree libclang users reported this to me, and I've asked them to put together a test case which exhibits this behavior, but I wanted to fix things ASAP since the nature of the fix is straight forward. llvm-svn: 211905
* This fixes libclang to cope with the now compile-time multithreadedChandler Carruth2014-06-271-13/+5
| | | | | | | | | selection re-enabled in r211900 in LLVM. The approach (unlike r211121) doesn't rely on std::mutex or std::call_once to avoid breaknig cygwin bots. llvm-svn: 211901
* [ARM] Fix AAPCS non-compliance caused by very large structsOliver Stannard2014-06-272-3/+12
| | | | | | | | | | | | | | This is a fix to the code in clang which inserts padding arguments to ensure that the ARM backend can emit AAPCS-VFP compliant code. This code needs to track the number of registers which have been allocated in order to do this. When passing a very large struct (>64 bytes) by value, clang emits IR which takes a pointer to the struct, but the backend converts this back to passing the struct in registers and on the stack. The bug was that this was being considered by clang to only use one register, meaning that there were situations in which padding arguments were incorrectly emitted by clang. llvm-svn: 211898
* Replace GetProgramPath("ld") with GetLinkerPath().Logan Chien2014-06-271-1/+1
| | | | llvm-svn: 211895
* [ARM-BE] Generate correct NEON intrinsics for big endian systems.James Molloy2014-06-273-64/+192
| | | | | | | | | | | | | The NEON intrinsics in arm_neon.h are designed to work on vectors "as-if" loaded by (V)LDR. We load vectors "as-if" (V)LD1, so the intrinsics are currently incorrect. This patch adds big-endian versions of the intrinsics that does the "obvious but dumb" thing of reversing all vector inputs and all vector outputs. This will produce extra REVs, but we trust the optimizer to remove them. llvm-svn: 211893
* Don't check clang binary name, as it can be different in some test setups.Alexander Kornienko2014-06-273-44/+44
| | | | | | | | | | | | | | Summary: This unbreaks our internal build after these tests were turned on in r211738. Reviewers: chandlerc Reviewed By: chandlerc Subscribers: benlangmuir, cfe-commits Differential Revision: http://reviews.llvm.org/D4311 llvm-svn: 211887
* [OPENMP] Parsing and sema analysis for 'copyprivate' clause.Alexey Bataev2014-06-2718-51/+525
| | | | llvm-svn: 211886
* const_cast the memory MemoryBuffer following LLVM r211883Alp Toker2014-06-271-1/+2
| | | | llvm-svn: 211884
* Driver: Pass -ivfsoverlay to module crashdumpsJustin Bogner2014-06-272-1/+10
| | | | | | | | When we create a crashdump involving modules, we build a VFS to reproduce the problem with. This updates the reproduction script to use that VFS. llvm-svn: 211876
* Add a FIXME for an unfortunate issue in ConvertBackendLocation()Alp Toker2014-06-271-1/+3
| | | | | | | This function is copying the entire file contents into memory repeatedly and allocating new file IDs *each time* a source location is processed. llvm-svn: 211874
* Driver: use GNU::Link for the Generic_GCC toolchainSaleem Abdulrasool2014-06-274-21/+28
| | | | | | | | | | | | | | | | | This changes the behaviour of the driver for linking to match that of the Generic_GCC::Assemble. The default link should use "ld" rather than "gcc" for the linker as gcc does. This avoids the unnecessary round-tripping through gcc. It also is much more reasonable behaviour from the user's perspective. This should have been updated with SVN r195554 which changed the behaviour of Generic_GCC::Assemble. The gcc_forward test needs to be updated to mark the fact that -march is a flag for GCC not ld. This was updated as a typo fix, but added a check for a flag that is not a link flag. The bindings test covers the change for testing, and thus no new test was added. llvm-svn: 211866
* CodeGenAction: don't duplicate entire .ll/.bc files into memoryAlp Toker2014-06-271-6/+1
| | | | | | Requires supporting changes from LLVM r211861. llvm-svn: 211862
OpenPOWER on IntegriCloud