summaryrefslogtreecommitdiffstats
path: root/clang/test
Commit message (Collapse)AuthorAgeFilesLines
...
* [OpenMP] Add capture for threadprivate variables used in copyin clauseSamuel Antao2015-07-271-2/+257
| | | | | | if TLS is enabled in OpenMP code generation. llvm-svn: 243277
* Setting ARM dynamic linker name from commandlineRenato Golin2015-07-271-0/+7
| | | | | | | | | | Currently trigger to select hard-float linker is only based of -gnueabihf appearing in target triplet, but we should also select it when hardfloat is requested via cmdline. Patch by Khem Raj. llvm-svn: 243262
* [clang-cl] Handle -O correctlyDavid Majnemer2015-07-272-7/+23
| | | | | | | | | | | | | | | We had multiple bugs here: - We didn't support multiple optimization options in one argument. e.g. -O2y- - We didn't correctly expand -O[12dx] to their respective options. - We treated -O1 as clang -O1 instead of clang -Os. - We treated -Ox as clang -O3 instead of clang -O2. In fact, cl's -Ox option is *less* powerful than cl's -O2 option despite -Ox described as "Full Optimization". This fixes PR24003. llvm-svn: 243261
* [modules] Add an assert for redeclarations that we never added to their redeclRichard Smith2015-07-271-1/+1
| | | | | | | | | | | | | | | chain and fix the cases where it fires. * Handle the __va_list_tag as a predefined decl. Previously we failed to merge sometimes it because it's not visible to name lookup. (In passing, remove redundant __va_list_tag typedefs that we were creating for some ABIs. These didn't affect the mangling or representation of the type.) * For Decls derived from Redeclarable that are not in fact redeclarable (implicit params, function params, ObjC type parameters), remove them from the list of expected redeclarable decls. llvm-svn: 243259
* [Targets] Define _M_AMD64 and _M_X64 to a more appropriate valueDavid Majnemer2015-07-261-2/+2
| | | | | | We used to define them to 1, we should have defined them to 100. llvm-svn: 243255
* [MS Extensions] Remove support for the i128 integer literal suffixDavid Majnemer2015-07-263-23/+2
| | | | | | | | | | | | | There is currently no support in MSVC for using i128 as an integer literal suffix. In fact, there appears to be no evidence that they have ever supported this feature in any of their compilers. This was an over generalization of their actual feature and is a nasty source of bugs. Why is it a source of bugs? Because most code in clang expects that evaluation of an integer constant expression won't give them something that 'long long' can't represent. Instead of providing a meaningful feature, i128 gives us cute ways of exploding the compiler. llvm-svn: 243243
* This test failed on ninja-x64-msvc-RA-centos6.Yaron Keren2015-07-261-1/+5
| | | | | | | We could probably get this and the previous three disabled in r243237 working on these builders if MSYS was updated to current MSYS2. llvm-svn: 243238
* Revert three tests enabled on r243236, they fail on clang-x86-win2008-selfhost.Yaron Keren2015-07-263-0/+9
| | | | llvm-svn: 243237
* Enable passing clang tests on Windows/MSYS.Yaron Keren2015-07-268-21/+3
| | | | llvm-svn: 243236
* Fix test running under mingw.Yaron Keren2015-07-261-3/+3
| | | | llvm-svn: 243235
* Try to make the buildbots happyDavid Majnemer2015-07-261-1/+1
| | | | | | | This test was missing a triple causing it to error out on windows targets. They accept a much smaller alignment value. llvm-svn: 243234
* [Sema] The alignment of an object has an upper bound from the object file formatDavid Majnemer2015-07-261-1/+1
| | | | | | | Don't use the spelling of the alignment attribute to determine whether or not an alignment amount makes sense. llvm-svn: 243233
* Enable clang tests requiring "clang-driver" on mingw.Yaron Keren2015-07-251-1/+1
| | | | | | At least on my mingw system they do pass, let's see what the bots think. llvm-svn: 243224
* [clang-cl] Add fallback support for /ZlDavid Majnemer2015-07-251-1/+2
| | | | llvm-svn: 243207
* [CodeGen] Don't UBSan-ize the argument to __builtin_frame_addressDavid Majnemer2015-07-251-0/+7
| | | | | | | | | | | | | __builtin_frame_address requires its argument to be a constant expression which already implies that it cannot have undefined behavior. However, we used EmitScalarExpr to emit the argument causing UBSan to try to check for overflow. Instead, use the constant expression emission system. This fixes PR24256. llvm-svn: 243206
* [SemaTemplate] Detect instantiation of unparsed exceptions.Davide Italiano2015-07-251-0/+17
| | | | | | | | This fixes the clang crash reported in PR24000. Differential Revision: http://reviews.llvm.org/D11341 llvm-svn: 243196
* Fix test case.Akira Hatanaka2015-07-251-1/+1
| | | | | | | This is a follow-up to r243185, which made changes to pass subtarget feature "+reserve-x18" instead of backend option "-aarch64-reserve-x18". llvm-svn: 243189
* Base the sys-root/mingw/include path on sysroot and not on /usr.Yaron Keren2015-07-241-1/+1
| | | | | | Thanks to Richard Smith for pointing this out! llvm-svn: 243144
* Correct x86_64 Android fp128 mangled nameChih-Hung Hsieh2015-07-241-0/+22
| | | | | | | | | | These changes are for Android x86_64 targets to be compatible with current Android g++. https://llvm.org/bugs/show_bug.cgi?id=23897 Use 'g' and 'Cg' for "long double" and "long double _Complex" mangled type names. Differential Revision: http://reviews.llvm.org/D11466 llvm-svn: 243133
* [test] Attempt to fix failing test in non-darwin bots.Argyrios Kyrtzidis2015-07-241-2/+2
| | | | llvm-svn: 243120
* [code-completion] Strip outer nullability annotations when completing method ↵Argyrios Kyrtzidis2015-07-242-6/+8
| | | | | | | | | | | | implementations. The outer nullability is transferred from the declaration to the implementation so including them is redundant. The inner ones are not transferred so they are kept to match the exact types. When we transfer the inner ones as well adding them in the implementation will become redundant and we should strip those as well. rdar://21737451 llvm-svn: 243119
* Try to appease clang buildbot by forcing libstdc++ in mingw.cpp test.Yaron Keren2015-07-241-6/+6
| | | | llvm-svn: 243101
* Add extensive tests for the mingw toolchain and remove trailing slash from Arch.Yaron Keren2015-07-2430-39/+54
| | | | | | | | Address Richard Smith comments: remove the trailing seperator from the Arch variable, implement six mingw_* trees under tools/clangtest/Driver/Inputs and merge linux and Windows tests into a universal test that uses these trees. llvm-svn: 243098
* [clang-cl] Implement support for the /Zl flagDavid Majnemer2015-07-241-0/+9
| | | | | | | | | The flag allows users to specify that they do not want the object file to have any implicit /defaultlib directives. This fixes PR24236. llvm-svn: 243097
* [AST] Perform additional canonicalization for DependentSizedArrayTypeDavid Majnemer2015-07-241-0/+11
| | | | | | | | | | We treated DependentSizedArrayTypes with the same element type but differing size expressions as equivalently canonical. This would lead to bizarre behavior during template instantiation. This fixes PR24212. llvm-svn: 243093
* Cleanup ObjCInterfaceDecl lookup for ObjC literalsAlex Denisov2015-07-245-15/+15
| | | | llvm-svn: 243092
* Generating available_externally vtables for outline virtual functionsPiotr Padlewski2015-07-242-6/+144
| | | | | | | | | | | | | | Generating available_externally vtables for optimizations purposes. Unfortunatelly ItaniumABI doesn't guarantee that we will be able to refer to virtual inline method by name. But when we don't have any inline virtual methods, and key function is not defined in this TU, we can generate that there will be vtable and mark it as available_externally. This is patch will help devirtualize better. Differential Revision: http://reviews.llvm.org/D11441 llvm-svn: 243090
* [Static Analyzer] Some tests do not turn on core checkers. Running the ↵Gabor Horvath2015-07-244-4/+4
| | | | | | | | analyzers without the core checkers is not supported. Differential Revision: http://reviews.llvm.org/D11432 llvm-svn: 243088
* Fix the cc1as crash when it outputs assemblySteven Wu2015-07-241-0/+3
| | | | | | | | In clang cc1as_main, when the output file type is “asm”, AsmStreamer owns a formatted_raw_ostream which has a reference to FDOS (raw_ostream), so AsmStreamer must be closed before FDOS is closed. llvm-svn: 243085
* Fix the equal-vector-size rule for reinterpret_casts in C++John McCall2015-07-232-2/+28
| | | | | | | | | | | | | to consider the storage size of the vector instead of its sizeof. In other words, ban <3 x int> to <4 x int> casts, which produced invalid IR anyway. Also, attempt to be a little more rigorous, or at least explicit, about when enums are allowed in these casts. rdar://21901132 llvm-svn: 243069
* InstrProf: Fix a typo in the test for r243066Justin Bogner2015-07-231-1/+1
| | | | llvm-svn: 243068
* InstrProf: Don't extend coverage regions into the catch keywordJustin Bogner2015-07-231-0/+24
| | | | | | | | The catch keyword isn't really part of a region, so it's fairly meaningless to extend into it. This was usually harmless, but it could crash when catch blocks involved macros in strange ways. llvm-svn: 243066
* [Compiler-RT] Remove dependency on libgcc_s/ehRenato Golin2015-07-231-4/+4
| | | | | | | | | | | | | | Currently, for --rtlib=compiler-rt on GNU systems, we're assuming that one has libgcc_s and libgcc_eh as low-level libraries, which when used in conjunction with -lunwind or -lc++abi, breaks that assumption. My original fix was wrong, and this patch reverts it to prepare for a new flag to choose the unwinder/C++ libraries. For the time being, people can use "-lgcc_s -lgcc_eh" or "-lunwind -lc++abi" or any combination they need explicitly. llvm-svn: 243025
* Add missing files for objc_boxable feature.Alex Denisov2015-07-2312-0/+811
| | | | | | Original patch [r240761] is missing all new files because of committer's mistake. llvm-svn: 243018
* [X86][AVX512F] Add FP scalar intrinsicsAsaf Badouh2015-07-231-0/+300
| | | | | | | | intrinsics for: add/sub/mul/div/min/max in their FP scalar versions Differential Revision: http://reviews.llvm.org/D11418 llvm-svn: 243009
* [X86][AVX512BW] add madd and maddubs intrinsicsAsaf Badouh2015-07-231-0/+30
| | | | | | Differential Revision: http://reviews.llvm.org/D11420 llvm-svn: 242986
* Add test to verify we emit warning when the deprecated virtual function is ↵Davide Italiano2015-07-231-0/+6
| | | | | | | | overloaded. Suggested by Richard Smith. llvm-svn: 242980
* Downgrade error about adding 'dllimport' to used free function to warning ↵Hans Wennborg2015-07-221-1/+1
| | | | | | | | (PR24215) The code will still work as it can reference the function via its thunk. llvm-svn: 242973
* [MS Compat] Allow _Atomic(Type) and 'struct _Atomic' to coexistDavid Majnemer2015-07-221-4/+11
| | | | | | | | | | | | | | | | | | | | | | MSVC 2013 ships, as part of its STL implementation, a class named '_Atomic'. This is unfortunate because this keyword is in conflict with the C11 keyword with the same name. Our solution was to disable this keyword when targeting MSVC 2013 and reenable it for 2015. However, this makes it impossible for clang's headers to make use of _Atomic. This is problematic in the case of libc++ as it makes heavy use of this keyword. Let the keywordness of _Atomic float under certain circumstances: the body of a class named _Atomic, or a class with a base specifier named _Atomic, will not have the keyword variant of _Atomic for the duration of the class body. This is sufficient to allow us to correctly handle _Atomic in the STL while permitting us to use _Atomic as a keyword everywhere else. Differential Revision: http://reviews.llvm.org/D11233 llvm-svn: 242970
* Pass -I options to integrates and external assemblersRenato Golin2015-07-221-0/+37
| | | | | | | | Fixes PR21000. Patch by Artem Belevich. llvm-svn: 242904
* [CONCEPTS] Add diagnostics: non-defining function; non-namespace scopeHubert Tong2015-07-221-0/+17
| | | | | | | | | | | | | | | | | | | | | Summary: Create diagnostic for function concept declaration which is not a definition. Create diagnostic for concept declaration which isn't in namespace scope. Create associated tests. Reviewers: rsmith, faisalv, fraggamuffin, hubert.reinterpretcast Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D11027 Patch by Nathan Wilson! llvm-svn: 242899
* [modules] Change module manager visitation order to be a bit more stable whenRichard Smith2015-07-221-3/+8
| | | | | | | | | | | more modules are added: visit modules depth-first rather than breadth-first. The visitation is still (approximately) oldest-to-newest, and still guarantees that a module is visited before anything it imports, so modules that are imported by others sometimes need to jump to a later position in the visitation order when more modules are loaded, but independent module trees don't interfere with each other any more. llvm-svn: 242863
* [Sema] Diagnose use of declaration correctly.Davide Italiano2015-07-222-5/+11
| | | | | | | | | | | | | Before we skipped that for virtual functions not fully qualified (r81507). This commit basically reverts this to the older behaviour, which seems more consistent. We now also correctly consider ill-formed calls to deleted member functions, which were silently passed before in some cases. The review contains the whole discussion. PR: 20268 Differential Revision: http://reviews.llvm.org/D11334 llvm-svn: 242857
* [modules] In C++, stop serializing and deserializing a list of declarations inRichard Smith2015-07-213-11/+9
| | | | | | | | | the identifier table. This is redundant, since the TU-scope lookups are also serialized as part of the TU DeclContext, and wasteful in a number of ways. We still emit the decls for PCH / preamble builds, since for those we want identical results, not merely semantically equivalent ones. llvm-svn: 242855
* Change a test to follow the formatting of the rest of the tests in the file.Richard Trieu2015-07-211-6/+11
| | | | | | No functional change. llvm-svn: 242854
* ARM: actually define __ARM_ARCH_7S__ for the armv7s sliceTim Northover2015-07-211-1/+8
| | | | | | | We ended up with the wrong predefine after the recent TargetParser shuffle, and I accidentally solidified it with a test. This should fix it. llvm-svn: 242841
* [modules] Produce an error if -cc1 wants to implicitly build a module and noRichard Smith2015-07-211-0/+5
| | | | | | | module cache has been provided, rather than creating one in the current directory. llvm-svn: 242819
* [X86][AVX512F] add FP arithmetic intrinsicsAsaf Badouh2015-07-211-0/+201
| | | | | | | | | add/div/mul/sub include rounding versions Differential Revision: http://reviews.llvm.org/D11354 llvm-svn: 242790
* Commit for http://reviews.llvm.org/D10765Michael Wong2015-07-213-0/+86
| | | | | | | for OpenMP 4 target data directive parsing and sema. This commit is on behalf of Kelvin Li. llvm-svn: 242785
* Fix mingw toolchain to honor sysroot on Linux and add tests.Yaron Keren2015-07-212-0/+39
| | | | | | | | It should now support three mingw distributions running on Windows and three Linux distributions. The include directories for each are listed in the comments. llvm-svn: 242766
OpenPOWER on IntegriCloud