llvm-project/clang/test/Driver
Roman Lebedev b69ba22773 [clang][ubsan] Implicit Conversion Sanitizer - integer truncation - clang part
Summary:
C and C++ are interesting languages. They are statically typed, but weakly.
The implicit conversions are allowed. This is nice, allows to write code
while balancing between getting drowned in everything being convertible,
and nothing being convertible. As usual, this comes with a price:

```
unsigned char store = 0;

bool consume(unsigned int val);

void test(unsigned long val) {
  if (consume(val)) {
    // the 'val' is `unsigned long`, but `consume()` takes `unsigned int`.
    // If their bit widths are different on this platform, the implicit
    // truncation happens. And if that `unsigned long` had a value bigger
    // than UINT_MAX, then you may or may not have a bug.

    // Similarly, integer addition happens on `int`s, so `store` will
    // be promoted to an `int`, the sum calculated (0+768=768),
    // and the result demoted to `unsigned char`, and stored to `store`.
    // In this case, the `store` will still be 0. Again, not always intended.
    store = store + 768; // before addition, 'store' was promoted to int.
  }

  // But yes, sometimes this is intentional.
  // You can either make the conversion explicit
  (void)consume((unsigned int)val);
  // or mask the value so no bits will be *implicitly* lost.
  (void)consume((~((unsigned int)0)) & val);
}
```

Yes, there is a `-Wconversion`` diagnostic group, but first, it is kinda
noisy, since it warns on everything (unlike sanitizers, warning on an
actual issues), and second, there are cases where it does **not** warn.
So a Sanitizer is needed. I don't have any motivational numbers, but i know
i had this kind of problem 10-20 times, and it was never easy to track down.

The logic to detect whether an truncation has happened is pretty simple
if you think about it - https://godbolt.org/g/NEzXbb - basically, just
extend (using the new, not original!, signedness) the 'truncated' value
back to it's original width, and equality-compare it with the original value.

The most non-trivial thing here is the logic to detect whether this
`ImplicitCastExpr` AST node is **actually** an implicit conversion, //or//
part of an explicit cast. Because the explicit casts are modeled as an outer
`ExplicitCastExpr` with some `ImplicitCastExpr`'s as **direct** children.
https://godbolt.org/g/eE1GkJ

Nowadays, we can just use the new `part_of_explicit_cast` flag, which is set
on all the implicitly-added `ImplicitCastExpr`'s of an `ExplicitCastExpr`.
So if that flag is **not** set, then it is an actual implicit conversion.

As you may have noted, this isn't just named `-fsanitize=implicit-integer-truncation`.
There are potentially some more implicit conversions to be warned about.
Namely, implicit conversions that result in sign change; implicit conversion
between different floating point types, or between fp and an integer,
when again, that conversion is lossy.

One thing i know isn't handled is bitfields.

This is a clang part.
The compiler-rt part is D48959.

Fixes [[ https://bugs.llvm.org/show_bug.cgi?id=21530 | PR21530 ]], [[ https://bugs.llvm.org/show_bug.cgi?id=37552 | PR37552 ]], [[ https://bugs.llvm.org/show_bug.cgi?id=35409 | PR35409 ]].
Partially fixes [[ https://bugs.llvm.org/show_bug.cgi?id=9821 | PR9821 ]].
Fixes https://github.com/google/sanitizers/issues/940. (other than sign-changing implicit conversions)

Reviewers: rjmccall, rsmith, samsonov, pcc, vsk, eugenis, efriedma, kcc, erichkeane

Reviewed By: rsmith, vsk, erichkeane

Subscribers: erichkeane, klimek, #sanitizers, aaron.ballman, RKSimon, dtzWill, filcab, danielaustin, ygribov, dvyukov, milianw, mclow.lists, cfe-commits, regehr

Tags: #sanitizers

Differential Revision: https://reviews.llvm.org/D48958

llvm-svn: 338288
2018-07-30 18:58:30 +00:00
..
Inputs Add a .keep file to prevent svn from skipping over an empty folder. 2018-07-24 06:49:27 +00:00
XRay [XRay][clang] Make -fxray-modes= additive 2018-04-13 05:59:57 +00:00
B-opt.c Fix tests with CLANG_DEFAULT_LINKER 2017-01-08 10:04:07 +00:00
O.c
Ofast.c
Wp-args.c
Xarch.c
Xlinker-args.c Handle '-r' option properly 2015-09-10 22:31:45 +00:00
aarch64-cpus.c [Driver,AArch64] Add support for -mcpu=native. 2018-07-06 10:49:59 +00:00
aarch64-dotprod.c [ARM][AArch64] Cortex-A75 and Cortex-A55 tests 2017-08-21 08:52:45 +00:00
aarch64-features.c
aarch64-fix-cortex-a53-835769.c Remove -cc1 option "-backend-option". 2018-04-12 22:21:36 +00:00
aarch64-fixed-x18.c Revert "[AArch64] Unconditionally pass subtarget feature reserve-x18 on Darwin." 2015-11-13 23:07:31 +00:00
aarch64-fixed-x20.c [AArch64] Support reserving x20 register 2018-06-12 20:00:50 +00:00
aarch64-mgeneral_regs_only.c
aarch64-outliner.c [MachineOutliner] Properly pass -moutline along to the toolchain 2018-07-06 22:24:56 +00:00
aarch64-ras.c [ARM][AArch64] Cortex-A75 and Cortex-A55 tests 2017-08-21 08:52:45 +00:00
aarch64-rcpc.s [ARM][AArch64] Cortex-A75 and Cortex-A55 tests 2017-08-21 08:52:45 +00:00
aarch64-rdm.c [Driver][AArch64] Add tests for RDM feature. 2017-08-24 14:32:55 +00:00
addrsig.c Re-land r337333, "Teach Clang to emit address-significance tables.", 2018-07-18 00:27:07 +00:00
altivec-asm.S
amdgcn-toolchain-pic.cl Add -no-canonical-prefixes to allow different build modes. 2018-02-15 13:50:07 +00:00
amdgpu-features.c AMDGPU: Remove amdgpu-debugger-reserve-regs feature 2018-06-21 20:27:47 +00:00
amdgpu-macros.cl AMDGPU: Add Vega12 and Vega20 2018-04-30 19:08:27 +00:00
amdgpu-mcpu.cl AMDGPU: Add Vega12 and Vega20 2018-04-30 19:08:27 +00:00
amdgpu-toolchain-opencl.cl [AMDGPU] Implement infrastructure to set options in AMDGPUToolChain 2017-09-05 10:24:38 +00:00
amdgpu-toolchain.c AMDGPU: Switch default dwarf version to 2 2018-07-20 20:46:25 +00:00
analyze.c
analyzer-target-enabled-checkers.cpp [analyzer] Add checker modeling gtest APIs. 2016-12-19 22:50:31 +00:00
ananas.c ananas: Add shared library support 2018-01-09 09:18:14 +00:00
android-aarch64-link.cpp Use linker flag --fix-cortex-a53-843419 on Android ARM64 compilation. 2016-10-25 21:44:35 +00:00
android-ndk-standalone.cpp [Driver] Reland "Android triples are not aliases for other triples." 2018-04-25 21:26:06 +00:00
android-pie.c Don't use -pie in relocatable link. 2018-03-09 19:35:16 +00:00
android-standalone.cpp [driver][mips] Support MIPS targets in modern Android NDK 2016-07-19 07:09:48 +00:00
apple-kext-mkernel.c Remove -cc1 option "-backend-option". 2018-04-12 22:21:36 +00:00
appletvos-version-min.c [Darwin] Fix deployment target detection 2016-01-12 23:47:59 +00:00
arc-exceptions.m
arc.c [test] Don't use "UNSUPPORTED" in FileCheck prefixes 2016-04-02 05:29:00 +00:00
arch-armv7k.c ARMv7k: simplify logic for deciding sjlj-exceptions. 2016-01-27 22:14:02 +00:00
arch-specific-libdir-rpath.c [Driver] Wire up the -f[no-]rtlib-add-rpath flag and tests 2018-04-02 23:36:14 +00:00
arch-specific-libdir.c Fix arch-specific-libdir tests on Windows 2017-03-14 18:24:41 +00:00
arch.c
arclite-link.c Fix which Darwin versions have ObjC runtime with full subscripting support. 2018-02-26 23:10:23 +00:00
arm-abi.c Set ABIs correctly for OpenBSD/arm; soft float and aapcs-linux. 2017-02-28 03:20:26 +00:00
arm-alignment.c [ARM] Add Clang targeting for ARMv8-M Baseline/Mainline 2016-03-03 13:52:22 +00:00
arm-arch-darwin.c
arm-compiler-rt.c Revert "Driver: use the canonical static library naming" 2016-08-31 19:27:07 +00:00
arm-cortex-cpus.c [PATCH 2/2] [test] Add support for Samsung Exynos M4 (NFC) 2018-06-06 18:58:01 +00:00
arm-default-build-attributes.s Driver must return non-zero code on errors in command line 2017-05-24 14:57:17 +00:00
arm-dotprod.c [ARM] disable FPU features when using soft floating point. 2018-02-19 12:40:26 +00:00
arm-execute-only.c Remove unused CHECK lines leftover from r306928. 2018-03-30 18:39:28 +00:00
arm-features.c [ARM] Add Clang targeting for ARMv8-M Baseline/Mainline 2016-03-03 13:52:22 +00:00
arm-fixed-r9.c [ARM] Pass subtarget feature "+reserve-r9" instead of passing backend 2015-07-21 01:41:08 +00:00
arm-float-abi.c [ARM] Error out if float-ab=hard and abi=apcs-gnu on macho platforms. 2015-08-26 19:00:11 +00:00
arm-hwdiv.c
arm-ias-Wa.s When running clang with an arm triple such as '--target=thumbv7m-none-eabi' 2015-10-28 10:10:03 +00:00
arm-implicit-it.s [ARM] Pass -mimplcit-it= to integrated assembler 2016-07-27 08:54:13 +00:00
arm-long-calls.c [ARM] Pass subtarget feature "+long-calls" instead of passing backend option 2015-07-07 06:42:05 +00:00
arm-mfpu.c [ARM] disable FPU features when using soft floating point. 2018-02-19 12:40:26 +00:00
arm-multilibs.c Driver: add multilibs for ARM EB 2015-12-11 06:20:59 +00:00
arm-no-movt.c Add -fno-movt frontend option, to disable movt/movw on ARM 2016-01-06 07:42:18 +00:00
arm-no-neg-immediates.c [ARM] Add a driver option for +no-neg-immediates 2017-03-27 15:34:52 +00:00
arm-ras.c [ARM][AArch64] Cortex-A75 and Cortex-A55 tests 2017-08-21 08:52:45 +00:00
arm-restrict-it.c Remove -cc1 option "-backend-option". 2018-04-12 22:21:36 +00:00
arm-target-as-mthumb.s [ARM] For assembler files recognize -Xassembler or -Wa, -mthumb 2017-11-20 13:43:55 +00:00
arm-thumb-only-cores.c [Driver] Error if ARM mode was selected explicitly for M-profile CPUs. 2017-08-04 10:40:18 +00:00
arm-wchar_t-defaults.c Driver: default to `unsigned int` `wchar_t` for ARM 2017-10-29 06:01:14 +00:00
arm-xscale.c Add a clang test for r257376 (Ensure -mcpu=xscale works for arm targets). 2016-01-12 19:40:55 +00:00
arm64-as.s
arm64-darwinpcs.c
armv8-crc.c
as-default-dwarf.s Always pass a -dwarf-version argument to integrated as. 2015-10-13 16:22:51 +00:00
as-dwarf-cie.s cc1as: Don't crash when CIE is requested and no DWARF version is specified. 2016-04-19 20:31:19 +00:00
as-mcpu.c [Driver] Turns out the GNU assembler does support falkor/saphira. 2017-11-29 16:42:44 +00:00
as-options.s Pass -I options to integrates and external assemblers 2015-07-22 15:32:36 +00:00
asan.c hwasan: add -fsanitize=kernel-hwaddress flag 2018-04-13 18:05:21 +00:00
ast.c
at_file.c Update test after LLVM r267556. 2016-04-26 13:54:29 +00:00
at_file.c.args Update test after LLVM r267556. 2016-04-26 13:54:29 +00:00
at_file.c.args.utf16le
at_file_missing.c Try to get at_file_missing.c passing after LLVM r267556. 2016-04-26 20:40:23 +00:00
at_file_win.c driver: Add a `--rsp-quoting` flag to pick response file quoting. 2016-04-25 21:15:49 +00:00
at_file_win.c.args driver: Add a `--rsp-quoting` flag to pick response file quoting. 2016-04-25 21:15:49 +00:00
autocomplete.c [OpenCL] Added -std/-cl-std=c++ 2018-04-12 14:17:04 +00:00
autolink_integrated_as.c
avr-mmcu.c [Driver] Add a missing -no-canonical-prefixes to test. 2017-04-20 19:06:24 +00:00
avr-toolchain.c No canonical-prefixes match in avr-toolchain.c. 2017-01-05 10:06:58 +00:00
baremetal.cpp For Windows, allow .exe extension in a test. 2017-10-06 17:12:28 +00:00
biarch.c Handle ARMv6KZ naming 2015-11-16 14:05:48 +00:00
bindings.c Pedantically rename all Tool subclasses to be nouns, not verbs. NFC 2015-06-23 20:42:09 +00:00
cc-log-diagnostics.c
cc-print-options.c
cc1-response-files.c Make '-disable-llvm-optzns' an alias for '-disable-llvm-passes'. 2016-12-23 00:23:01 +00:00
ccc-as-cpp.c
ccc-host-triple-no-integrated-as.c
cl-cc-flags.c Add default calling convention support for regcall. 2017-11-02 21:08:00 +00:00
cl-diagnostics.c Fix cl-diagnostics.c test by hardcoding the version of MSVC to mimic 2017-05-31 20:07:36 +00:00
cl-eh.cpp [clang-cl] /EHc should not have an effect on /EHa 2016-02-29 01:40:30 +00:00
cl-fallback.c clang-cl: Pass /Zc:threadSafeInit through to MSVC with /fallback (PR30948) 2016-11-09 00:56:42 +00:00
cl-include.c Attempt to fix cl-include.c on Windows. 2018-02-28 20:58:06 +00:00
cl-inputs.c Erase REQUIRES: shell-preserves-root from more tests, see r242312. 2015-07-15 19:42:18 +00:00
cl-link-at-file.c Update clang-cl driver for MSVC 2017. 2017-03-15 16:07:35 +00:00
cl-link.c [Driver] Don't force .exe suffix for lld 2017-06-06 02:06:28 +00:00
cl-options.c [clang-cl] Expose -fblocks and -fno-builtin as driver flags 2018-07-23 21:29:43 +00:00
cl-outputs.c Driver must return non-zero code on errors in command line 2017-05-24 14:57:17 +00:00
cl-pch-errorhandling.cpp [clang-cl] Fix PCH tests to use x86_64 as target 2016-08-02 13:53:00 +00:00
cl-pch-search.cpp [clang-cl, PCH] Implement support for MS-style PCH through headers 2018-07-05 17:22:13 +00:00
cl-pch-showincludes.cpp test: adjust the target for some Windows tests 2018-01-23 17:05:57 +00:00
cl-pch.c [clang-cl] Fix test that shouldn't be running on non-x86 2016-10-20 17:41:08 +00:00
cl-pch.cpp [clang-cl, PCH] Implement support for MS-style PCH through headers 2018-07-05 17:22:13 +00:00
cl-response-file.c Use the AddAllArgs overload which accepts an ArrayRef of OptSpecifier. 2015-07-29 18:39:14 +00:00
cl-runtime-flags.c Re-apply r267784, r267824 and r267830. 2016-04-28 17:09:37 +00:00
cl-x86-flags.c Don't let test write to the source dir after r323426. 2018-01-25 21:49:03 +00:00
cl-zc.cpp [clang-cl] Ignore /Zc:ternary, clang behaves this way already 2017-05-31 14:50:28 +00:00
cl.c Erase REQUIRES: shell-preserves-root from more tests, see r242312. 2015-07-15 19:42:18 +00:00
claim-unused.c
clang-c-as-cxx.c
clang-exception-flags.cpp
clang-g-opts.c [Driver][Darwin] Use Host Triple to infer target os version 2018-07-03 04:15:49 +00:00
clang-offload-bundler.c Fix clang-offload-bundler test. 2016-10-11 16:06:32 +00:00
clang-offload-bundler.c.o [Driver][OpenMP][CUDA] Add capability to bundle object files in sections of the host binary format. 2016-08-24 15:39:07 +00:00
clang-s-opts.s
clang-translation.c [Driver] Disable uwtable by default in -ffreestanding mode 2017-09-12 22:51:53 +00:00
clang-translation.cppm Modules: Fix implicit output file for .cppm to .pcm instead of stdout 2018-06-14 23:09:06 +00:00
clang_cpp.c
clang_f_opts.c [clang]: Add support for "-fno-delete-null-pointer-checks" 2018-07-19 00:44:52 +00:00
clang_f_opts.h
clang_wrapv_opts.c
cloudabi.c Don't enable PIE on i686-unknown-cloudabi. 2016-08-11 20:03:22 +00:00
cloudabi.cpp Don't enable PIE on i686-unknown-cloudabi. 2016-08-11 20:03:22 +00:00
code-model.c
codeview-column-info.c [Driver] Don't add -dwarf-column-info when using -gcodeview on non-msvc targets 2018-05-08 20:55:23 +00:00
color-diagnostics.c
compilation_database.c [clang] Get rid of "%T" expansions 2017-08-15 19:47:06 +00:00
complete-member-pointers.cpp Protect a clang-cl file path with --. 2018-05-30 04:08:34 +00:00
compress-noias.c Revert "Revert r305164/5/7." 2017-06-23 15:34:16 +00:00
compress.c Revert "Revert r305164/5/7." 2017-06-23 15:34:16 +00:00
config-file-errs.c Enable configuration files in clang 2018-01-01 13:27:01 +00:00
config-file.c [Driver] Don't warn about unused inputs in config files 2018-05-04 06:05:58 +00:00
config-file2.c Fix typos in clang 2018-04-06 15:14:32 +00:00
config-file3.c [Driver] Fix implicit config files from prefixed symlinks 2018-04-25 21:23:59 +00:00
config-file4.c This test fails if there is no integrated assembler, so change the -c option to -S as it is not important to the test and allows it to pass when there is no integrated assembler. 2018-05-01 23:32:09 +00:00
constructors.c Request init/fini array on FreeBSD 12 and later 2018-06-29 19:18:17 +00:00
coroutines.c [coroutines] Rename driver flag -fcoroutines to -fcoroutines-ts 2016-10-02 03:31:58 +00:00
coroutines.cpp [coroutines] Rename driver flag -fcoroutines to -fcoroutines-ts 2016-10-02 03:31:58 +00:00
coverage-ld.c Fix tests with CLANG_DEFAULT_LINKER 2017-01-08 10:04:07 +00:00
coverage.c Fix coverage test on Windows bot 2017-11-17 21:55:23 +00:00
coverage_no_integrated_as.c Add -fprofile-dir= to clang. 2016-08-31 23:04:32 +00:00
cpath.c [clang] Get rid of "%T" expansions 2017-08-15 19:47:06 +00:00
cpp-precomp.c
crash-diagnostics-dir.c Update crash diagnostics test to avoid attempting to write into various 2018-07-10 01:01:38 +00:00
crash-report-crashfile.m [Driver] Add compiler option to generate a reproducer 2017-04-12 21:46:20 +00:00
crash-report-header.h Re-apply r334418 "Enable crash recovery tests on Windows, globs work in the lit internal shell now" 2018-06-12 11:51:22 +00:00
crash-report-modules.m Disable clang crash-report-modules.m test on Windows again 2018-07-20 22:36:33 +00:00
crash-report-null.test
crash-report-spaces.c Re-apply r334418 "Enable crash recovery tests on Windows, globs work in the lit internal shell now" 2018-06-12 11:51:22 +00:00
crash-report.c Re-apply r334418 "Enable crash recovery tests on Windows, globs work in the lit internal shell now" 2018-06-12 11:51:22 +00:00
cross-linux.c Fix tests with CLANG_DEFAULT_LINKER 2017-01-08 10:04:07 +00:00
cuda-arch-translation.cu [CUDA] Add amdgpu sub archs 2018-04-04 21:19:27 +00:00
cuda-bad-arch.cu [HIP] Diagnose unsupported host triple 2018-05-11 19:14:34 +00:00
cuda-bail-out.cu [Driver] Make clang/cc conforms to UNIX standard 2017-11-10 01:32:47 +00:00
cuda-bindings.cu [Driver][OpenMP] Add support to create jobs for unbundling actions. 2016-10-27 18:14:55 +00:00
cuda-constructor-alias.cu [CUDA] Add -target to cuda-constructor-alias.cu test so it doesn't fail on Mac. 2016-01-25 22:52:31 +00:00
cuda-detect-path.cu [CUDA] Detect installation in PATH 2018-01-31 08:26:51 +00:00
cuda-detect.cu [CUDA] Detect installation in PATH 2018-01-31 08:26:51 +00:00
cuda-dwarf-2.cu [DEBUGINFO] Disable unsupported debug info options for NVPTX target. 2018-07-27 19:45:14 +00:00
cuda-external-tools.cu [NVPTX] Emit debug info in DWARF-2 by default for Cuda devices. 2018-04-18 16:31:09 +00:00
cuda-macosx.cu [CUDA] Driver changes to support CUDA compilation on MacOS. 2016-11-18 00:41:22 +00:00
cuda-march.cu A follow-up fixing on cuda-march.cu: Don't match clang to other place. 2016-06-16 13:27:02 +00:00
cuda-no-pgo-or-coverage.cu [FileCheck] Add -allow-deprecated-dag-overlap to failing clang tests 2018-07-11 20:26:20 +00:00
cuda-no-sanitizers.cu [CUDA] Fix faulty test from rL288448 2016-12-02 02:04:43 +00:00
cuda-no-stack-protector.cu [CUDA] Don't pass -stack-protector to NVPTX compilations. 2017-02-19 19:05:32 +00:00
cuda-not-found.cu [CUDA] Detect installation in PATH 2018-01-31 08:26:51 +00:00
cuda-options.cu [CUDA] Added --[no-]cuda-include-ptx=sm_XX|all option. 2018-04-10 18:38:22 +00:00
cuda-output-asm.cu Remove check for -o option in offloading actions builder. 2016-10-27 01:08:58 +00:00
cuda-phases.cu Add action builder for HIP 2018-05-30 00:49:10 +00:00
cuda-ptxas-path.cu [CUDA] Add --ptxas-path= flag. 2016-12-15 18:44:57 +00:00
cuda-simple.cu [CUDA] Updated CUDA tests that must run w/o CUDA installation. 2016-08-02 23:43:04 +00:00
cuda-unsupported-debug-options.cu [DEBUG_INFO] Fix tests, NFC. 2018-07-27 20:16:44 +00:00
cuda-unused-arg-warning.cu [CUDA] Add --cuda-compile-host-device, which overrides --cuda-host-only and --cuda-device-only. 2016-04-19 02:27:07 +00:00
cuda-version-check.cu [CUDA] Detect installation in PATH 2018-01-31 08:26:51 +00:00
cuda-windows.cu [Driver] Driver changes to support CUDA compilation on Windows. 2017-01-05 16:52:29 +00:00
cxa-atexit.cpp [Driver] Don't enable "-fregister-global-dtors-with-atexit" by default 2018-04-27 01:42:33 +00:00
darwin-arch-default.c
darwin-as.c
darwin-asan-nofortify.c [Driver] Sanitizer support based on runtime library presence 2018-07-20 23:34:39 +00:00
darwin-debug-flags.c Update Clang for D20147 ("DebugInfo: New metadata representation for global variables.") 2016-09-13 01:13:19 +00:00
darwin-dsymutil.c Pedantically rename all Tool subclasses to be nouns, not verbs. NFC 2015-06-23 20:42:09 +00:00
darwin-embedded.c ARM: make Darwin's "-arch armv7em" default to hard-float. 2016-04-13 17:08:51 +00:00
darwin-infer-simulator-sdkroot.c [driver][darwin] Do not infer -simulator environment for OS version env vars 2018-04-25 22:23:26 +00:00
darwin-iphone-defaults.m IRGen: Add optnone attribute on function during O0 2017-05-29 05:38:20 +00:00
darwin-ld-dedup.c [Driver][Darwin] Pass -no_deduplicate to ld64 2016-10-21 01:49:14 +00:00
darwin-ld-demangle.c
darwin-ld-lto.c [clang] Get rid of "%T" expansions 2017-08-15 19:47:06 +00:00
darwin-ld-pthread.c Driver: Do not warn about unused -pthread when linking on darwin 2017-02-03 23:09:31 +00:00
darwin-ld.c [MachineOutliner] Properly pass -moutline along to the toolchain 2018-07-06 22:24:56 +00:00
darwin-max-type-align.c
darwin-multiarch-arm.c Fix the unit test darwin-multiarch-arm.c for windows 2016-11-14 17:09:39 +00:00
darwin-objc-defaults.m
darwin-objc-options.m
darwin-sanitizer-ld.c [Driver] Sanitizer support based on runtime library presence 2018-07-20 23:34:39 +00:00
darwin-sdk-vs-os-version.c Recommit [driver][macOS] Pick the system version for the 2017-07-07 10:41:19 +00:00
darwin-sdkroot.c Split test/Driver/darwin-sdkroot.c into two tests 2018-04-04 02:11:20 +00:00
darwin-simulator-macro.c [driver] Set the 'simulator' environment for Darwin when compiling for 2017-12-07 19:04:10 +00:00
darwin-stdlib.cpp XFAIL Driver/darwin-stdlib.cpp if CLANG_DEFAULT_CXX_STDLIB is set 2016-09-29 07:43:08 +00:00
darwin-verify-debug.c Pedantically rename all Tool subclasses to be nouns, not verbs. NFC 2015-06-23 20:42:09 +00:00
darwin-version.c Fix typos in clang 2018-04-06 15:14:32 +00:00
darwin-xarch.c
debug-comp-dir.S
debug-main-file.S
debug-options-as.c Stop messing with the 'g' group of options in CompilerInvocation. 2015-10-08 04:24:12 +00:00
debug-options.c [DebugInfo] Error out when enabling -fdebug-types-section on non-ELF target. 2018-07-23 17:50:15 +00:00
debug-prefix-map.S Support -fdebug-prefix-map for assembler source (pass to cc1as). This 2018-07-10 15:15:24 +00:00
debug-prefix-map.c Support Debug Info path remapping 2015-10-12 20:21:08 +00:00
debug-unsupported.c
debug.c
default-image-name.c
default-toolchain.c
defsym.s [clang] Fix D26214: Move error handling out of MC and to the callers. 2016-12-06 02:49:16 +00:00
denormal-fp-math.c Guard flag –fdenormal-fp-math with –fno-fast-math. 2016-10-13 13:22:01 +00:00
diagnostics.c
disable-llvm.c Another fix for r291850 because there are apparently targets which add 2017-01-13 02:47:34 +00:00
dragonfly.c Fix C++ support on recent DragonFly BSD releases 2015-12-27 10:01:44 +00:00
dyld-prefix.c Driver: support exherbo's multiarch support 2016-05-23 02:17:28 +00:00
dynamic-linker.c Driver: adjust linker invocation for GNUTools 2016-02-07 06:03:38 +00:00
eabi.c [EABI] Add Clang support for -meabi flag 2015-11-09 12:40:41 +00:00
elfiamcu-header-search.c Add -fsyntax-only to fix failure in read-only directories. 2015-12-16 19:52:05 +00:00
embed-bitcode.c Fix test/Driver/embed-bitcode.c on non-Darwin host by setting the target explicitly 2017-01-24 18:49:49 +00:00
emulated-tls.cpp [Driver] Pass -f[no-]emulated-tls and set up ExplicitEmulatedTLS 2018-03-01 22:26:19 +00:00
env.c Enable passing clang tests on Windows/MSYS. 2015-07-26 04:36:39 +00:00
esan.c [EfficiencySanitizer] [MIPS64] Enables esan clang driver options for MIPS64 2016-09-07 12:23:15 +00:00
exceptions.m
fast-math.c [Driver, CodeGen] rename options to disable an FP cast optimization 2018-04-30 18:19:03 +00:00
fatal-warnings.c
fcomment-block-commands.c
flags.c Add flag to request Clang is ABI-compatible with older versions of itself 2017-08-26 01:04:35 +00:00
fno-escaping-block-tail-calls.c [Driver] Pass Default=false to hasFlag. 2018-03-10 05:55:21 +00:00
fno-rtti-data.cpp Driver: hoist `-fno-rtti-data` to a driver flag 2018-03-01 19:13:43 +00:00
fopenmp.c [Driver] Unify linking of OpenMP runtime. NFCI. 2017-04-19 13:55:39 +00:00
fortran.f95 Make sure we claim arguments that are going to be passed to a gcc tool, 2016-01-07 09:03:42 +00:00
fpack-struct.c
fparse-all-comments.c
fplugin.c Add -fplugin=name.so option to the driver 2015-09-23 13:55:40 +00:00
frame-pointer-elim.c For NetBSD, unwind data is emitted by default, so also enable frame 2018-07-17 12:38:57 +00:00
frame-pointer.c [RISCV] Fix logic to check if frame pointer should be used 2018-04-12 19:31:37 +00:00
freebsd-mips-as.c [mips] Use more conservative default CPUs for MIPS on FreeBSD. 2018-06-26 19:48:05 +00:00
freebsd.c [mips][ias] Enable IAS by default for OpenBSD / FreeBSD mips64/mips64el. 2018-06-29 19:03:03 +00:00
freebsd.cpp Make FreeBSD and NetBSD use CLANG_DEFAULT_CXX_STDLIB 2016-03-14 14:34:04 +00:00
fsanitize-blacklist.c Relax a FileCheck pattern to make it pass on Windows. 2018-05-07 21:40:53 +00:00
fsanitize-coverage.c hwasan: add -fsanitize=kernel-hwaddress flag 2018-04-13 18:05:21 +00:00
fsanitize-object-size.c [Driver] Conform warn_drv_object_size_disabled_O0 to DefaultWarnNoError 2018-07-12 19:53:15 +00:00
fsanitize.c [clang][ubsan] Implicit Conversion Sanitizer - integer truncation - clang part 2018-07-30 18:58:30 +00:00
fsjlj-exceptions.c Driver: make it easier to select the SjLj EH model 2016-06-10 20:12:00 +00:00
fubsan-strip-path-components.cpp [ubsan] Add -fsanitize-undefined-strip-path-components=N 2016-05-12 16:51:36 +00:00
fuchsia.c Support for multiarch runtimes layout 2018-06-28 03:11:52 +00:00
fuchsia.cpp Support for multiarch runtimes layout 2018-06-28 03:11:52 +00:00
function-alignment.c Implement proper support for `-falign-functions` 2018-04-19 23:14:57 +00:00
function-sections.c
fuse-ld-windows.c [Driver] Allow using a canonical form of '-fuse-ld=' when cross-compiling on Windows. 2018-02-27 02:51:30 +00:00
fuse-ld.c Vary Windows toolchain selection by -fuse-ld 2017-11-06 21:18:05 +00:00
fuzzer.c [Driver] Sanitizer support based on runtime library presence 2018-07-20 23:34:39 +00:00
fveclib.c
gcc-toolchain.cpp tests: Add explicit -stdlib=libstdc++ to tests that require it 2016-02-12 07:48:28 +00:00
gcc-version-debug.c
gcc_forward.c [Driver] Don't forward -m[no-]unaligned-access options to GCC when assembling/linking 2018-04-11 14:20:37 +00:00
gfortran.f90 Driver must return non-zero code on errors in command line 2017-05-24 14:57:17 +00:00
global-isel.c [Driver] Add an -fexperimental-isel driver option to enable/disable GlobalISel. 2018-01-26 00:27:22 +00:00
gnu-runtime.m
gold-lto-new-pass-man.c Enabling new pass manager in LTO (and thinLTO) link step. 2017-10-05 01:50:48 +00:00
gold-lto-samplepgo.c Add -plugin-opt=sample-profile for thinLTO build. 2017-01-04 00:33:23 +00:00
gold-lto-sections.c Pass -ffunction-sections/-fdata-sections along to gold-plugin 2016-10-13 18:05:53 +00:00
gold-lto.c Revert "Revert "Revert "Revert "Fix LLVMgold plugin name/path for non-Linux."""" 2017-08-22 21:05:01 +00:00
hexagon-hvx.c Fix typos in clang 2018-04-06 15:14:32 +00:00
hexagon-long-calls.c Handle -mlong-calls on Hexagon 2016-08-30 13:57:50 +00:00
hexagon-memops.c [Hexagon] Add driver options for subtarget features 2018-05-15 18:15:59 +00:00
hexagon-nvj.c [Hexagon] Add driver options for subtarget features 2018-05-15 18:15:59 +00:00
hexagon-nvs.c [Hexagon] Add driver options for subtarget features 2018-05-15 18:15:59 +00:00
hexagon-packets.c [Hexagon] Clang side of r327302 in LLVM 2018-03-13 13:30:43 +00:00
hexagon-toolchain-elf.c [Hexagon] Add -ffixed-r19 driver option and translate it to +reserved-r19 2018-02-28 20:31:55 +00:00
hexagon-vectorize.c [Hexagon] Emit a warning when -fvectorize is given without -mhvx 2018-04-16 19:11:17 +00:00
hip-binding.hip [HIP] Fix unbundling 2018-06-06 19:44:10 +00:00
hip-device-libs.hip [HIP] Fix ordering of device-libs linking 2018-06-27 19:51:42 +00:00
hip-inputs.hip [HIP] Set proper triple and offload kind for the toolchain 2018-05-11 19:21:39 +00:00
hip-toolchain.hip Attempt to fix regression due to r337791 2018-07-24 02:12:24 +00:00
ident_md.c
immediate-options.c [Driver] Add option to print the resource directory 2017-04-04 21:46:50 +00:00
implicit-function-as-error.c watchOS & tvOS: add a few more tests. 2015-11-02 21:14:48 +00:00
include-default-header.cl Fix up testcase to: 2017-03-15 23:41:58 +00:00
incompatible_sysroot.c Stab in the dark to fix the PS4 bot 2016-04-30 05:27:17 +00:00
incremental-linker-compatible.c [clang-cl] Add support for /Brepro 2015-12-21 22:09:34 +00:00
index-header-map.c
inhibit-downstream-commands.c
inline-asm.c
instrprof-ld.c Fix tests with CLANG_DEFAULT_LINKER 2017-01-08 10:04:07 +00:00
integrated-as.c
integrated-as.s test: add explicit triples to the invocation 2016-12-26 04:00:54 +00:00
ios-simulator-arcruntime.c Watch and TV OS: wire up basic ABI choices 2015-10-30 16:30:36 +00:00
ios-version-min.c Fix the test added in r240710. 2015-06-25 23:21:11 +00:00
krait-cpu.c
lanai-toolchain.c [lanai] Add Lanai backend to clang driver. 2016-03-28 21:02:54 +00:00
lanai-unknown-unknown.cpp Recommit r324107 again. 2018-02-07 22:15:33 +00:00
le32-toolchain.c
le32-unknown-nacl.cpp Recommit r324107 again. 2018-02-07 22:15:33 +00:00
le64-unknown-unknown.cpp Recommit r324107 again. 2018-02-07 22:15:33 +00:00
linker-opts.c [clang] Get rid of "%T" expansions 2017-08-15 19:47:06 +00:00
linux-as.c [PowerPC] Pass CPU to assembler with -no-integrated-as 2017-07-27 08:58:28 +00:00
linux-header-search.cpp Support for multiarch runtimes layout 2018-06-28 03:11:52 +00:00
linux-ld.c For x86_64, gcc 7.2 under Amazon Linux AMI sets its path to x86_64-amazon-linux. 2018-07-24 06:07:22 +00:00
linux-per-target-runtime-dir.c Fix test that was failing on Windows due to too many backslashes 2018-06-28 14:16:13 +00:00
lit.local.cfg Enable .hip files for test/Driver 2018-07-24 01:03:44 +00:00
lto-dwo.c Add an option to support debug fission on implicit ThinLTO. 2018-06-25 23:05:27 +00:00
lto-jobs.c [LTO] Add -flto-jobs=N to control backend parallelism 2016-09-23 20:38:09 +00:00
lto-plugin-darwin.c Degeneralize more tests. 2017-08-22 21:16:22 +00:00
lto-plugin-linux.c Degeneralize more tests. 2017-08-22 21:16:22 +00:00
lto-plugin-windows.c Degeneralize more tests. 2017-08-22 21:16:22 +00:00
lto-unit.c [PS4] Disable LTO unit features under ThinLTO, like for Darwin. 2017-07-13 21:25:47 +00:00
lto.c Revert "Revert "Revert "Revert "Fix LLVMgold plugin name/path for non-Linux."""" 2017-08-22 21:05:01 +00:00
lto.cu [CUDA] add REQUIRES fields for CUDA variants of LTO tests. 2018-03-22 16:47:41 +00:00
m_and_mm.c Ignore return value in test. 2017-06-16 19:29:20 +00:00
macho-embedded.c
masm.c Attempt to fix test/Driver/masm.c on the ARM bots. 2018-01-17 16:03:08 +00:00
masm.s Support -masm= flag for x86 assembly targets. 2016-07-18 18:44:51 +00:00
mbig-obj.c Use -### so the mbig-obj.c test passes when there is no registered x86 target 2017-01-04 18:50:51 +00:00
mg.c
mglobal-merge.c Remove -cc1 option "-backend-option". 2018-04-12 22:21:36 +00:00
miamcu-opt.c Support setting default value for -rtlib at build time 2016-07-27 08:15:54 +00:00
miamcu-opt.cpp Support setting default value for -rtlib at build time 2016-07-27 08:15:54 +00:00
mingw-libgcc.c [MinGW, CrossWindows] Allow passing -static together with -shared 2018-02-27 19:42:19 +00:00
mingw-msvcrt.c [MinGW] Treat any -lucrt* as replacing -lmsvcrt 2018-07-10 10:46:45 +00:00
mingw-sysroot.cpp [test] Add a testcase for MinGW sysroot detections from SVN r330244. NFC. 2018-04-25 21:24:04 +00:00
mingw-windowsapp.c [MinGW] Skip adding default win32 api libraries if -lwindowsapp is specified 2018-07-10 10:46:51 +00:00
mingw.cpp [GCC] Match a GCC version with a patch suffix without a third version component 2018-04-24 08:50:11 +00:00
mips-abi.c [mips] Add missing mips-registered-target to mips test. 2017-08-11 15:23:23 +00:00
mips-abicalls-error.c [mips] Improve handling of -fno-[pic/PIC] option 2018-05-07 14:30:49 +00:00
mips-abicalls-warning.c [mips] Improve handling of -fno-[pic/PIC] option 2018-05-07 14:30:49 +00:00
mips-as.c [mips] Improve handling of -fno-[pic/PIC] option 2018-05-07 14:30:49 +00:00
mips-cs.cpp Fix clang tests 2016-10-18 19:22:20 +00:00
mips-eleb.c
mips-features.c [mips] Add '-mvirt', '-mno-virt', '-mginv', '-mno-ginv' options 2018-07-11 12:45:25 +00:00
mips-float.c
mips-fsf.cpp Fix clang tests 2016-10-18 19:22:20 +00:00
mips-gpopt-warning.c [mips] Fix typo (missed space) in the warning message 2017-08-04 08:25:15 +00:00
mips-ias-Wa.s [mips] Added support for -Wa,-mips32 and similar. 2016-01-14 13:01:48 +00:00
mips-img-v2.cpp Fix clang tests 2016-10-18 19:22:20 +00:00
mips-img.cpp Fix clang tests 2016-10-18 19:22:20 +00:00
mips-indirect-branch.c [mips] Spectre variant two mitigation for MIPSR2 2018-02-21 00:05:05 +00:00
mips-integrated-as.s [mips] Don't propagate -mfpxx by default if soft/single float were also set. 2015-06-16 13:54:13 +00:00
mips-mabs-warning.c [mips] Introducing option -mabs=[legacy/2008] 2017-08-24 16:06:30 +00:00
mips-mti-linux.c Fix tests with CLANG_DEFAULT_LINKER 2017-01-08 10:04:07 +00:00
mips-mti.cpp [driver][mips] Specify stdlib used in the tests explicitly 2016-05-26 11:32:19 +00:00
mips-reduced-toolchain.cpp
mipsel-nacl-defines.cpp Revert "Basic: match GCC behaviour for SuS macro" 2017-02-07 19:00:06 +00:00
modules-cache-path.m
modules-ts.cpp P0629R0: Switch to latest proposal for distinguishing module interface from implementation. 2017-04-21 22:39:18 +00:00
modules.m [Modules] Turn on system header validation for implicit modules 2018-04-18 06:07:49 +00:00
modules.mm [modules] Rename -fmodule-maps to -fimplicit-module-maps (and likewise for 2015-06-16 00:20:23 +00:00
montavista-gcc-toolchain.c [Driver] Make -print-libgcc-file-name print compiler-rt lib when used 2016-10-10 12:23:40 +00:00
mprefer-vector-width.c [Driver][CodeGen] Add -mprefer-vector-width driver option and attribute during CodeGen. 2017-12-11 21:09:19 +00:00
mrecip.c add the -mrecip driver flag and process its options (3rd try) 2015-06-11 14:53:41 +00:00
ms-bitfields.c Mark clang/test/Driver/ms-bitfields.c as REQUIRES:clang-driver. 2015-11-12 22:25:38 +00:00
msan.c Teach Clang about the PPC64 memory sanitizer implementation. 2015-06-25 10:35:19 +00:00
msc-version.c Fix msc-version.c test to handle _MSC_VER=1910 2017-03-03 00:08:55 +00:00
msvc-compiler-rt.c [Driver] Enable --rtlib option for MSVC target 2016-03-14 11:19:43 +00:00
msvc-link.c Driver: support -L for MSVC toolchain under the GNU driver 2016-07-01 15:36:31 +00:00
msvc-triple.c Add more tests for MSVC version handling. 2016-12-07 23:39:44 +00:00
msvc_forward.c
myriad-toolchain.c [Myriad] Remove invalidated -elf flag for MoviAsm 2018-01-08 20:36:08 +00:00
nacl-direct.c Adapt tests after making mcpu=generic the default for armv7-a and armv8-a. 2017-06-01 07:31:50 +00:00
netbsd.c Support linking static PIE binaries on NetBSD 2018-07-12 21:21:29 +00:00
netbsd.cpp Extend NetBSD/AArch64 to cover Big Endian as well. 2017-01-09 11:22:14 +00:00
nios2-cpu.c Reapply "Frontend support for Nios2 target" 2017-06-27 09:48:24 +00:00
no-arc-exception-silence.m [Driver] Prevent no-arc-exception-silence.m test from writing output. 2017-01-25 12:55:53 +00:00
no-canonical-prefixes.c Don't let test/Driver/no-canonical-prefixes.c form a symlink cycle the second time it runs. 2018-06-18 18:50:35 +00:00
no-integrated-as-win.c
no-integrated-as.c
no-integrated-as.s Bring back r250262: PS4 toolchain 2015-10-14 12:25:43 +00:00
no-objc-arr.m
no-objc-default-synthesize-properties.m
no-sibling-calls.c
nodefaultlib.c Fix rewrite of reserved library name in case of -nodefaultlibs 2015-11-24 16:07:21 +00:00
noexecstack.c
noinline.c [Clang] Remove unwanted --check-prefix=CHECK from unit tests. NFC. 2016-04-20 01:02:18 +00:00
nostdincxx.cpp
nostdlib.c Reland r311836 - [Driver] Use arch type to find compiler-rt libraries (on Linux) 2017-08-28 20:29:52 +00:00
nostdlibinc.c
nostdlibxx.cpp Introduce -nostdlib++ flag to disable linking the C++ standard library. 2017-07-25 18:02:57 +00:00
nozlibcompress.c test: fix negative test case 2017-06-23 16:52:49 +00:00
objc++-cpp-output.mm
objc-cpp-output.m
objc-sdk-migration-options.m
objc-weak.m [driver][darwin] Take the OS version specified in "-target" as the target 2017-12-19 19:05:04 +00:00
offloading-interoperability.c Allow .exe extension to ld to fix test with mingw. 2016-08-01 10:14:54 +00:00
openbsd.c Fix the test 2018-07-22 22:04:28 +00:00
opencl.cl [OpenCL] Added -std/-cl-std=c++ 2018-04-12 14:17:04 +00:00
openmp-offload-gpu.c [DEBUGINFO] Disable unsupported debug info options for NVPTX target. 2018-07-27 19:45:14 +00:00
openmp-offload.c [test] Pass in fixed triple for openmp-offload.c 2017-10-04 13:54:09 +00:00
openmp-unsupported-debug-options.c [DEBUG_INFO] Fix tests, NFC. 2018-07-27 20:16:44 +00:00
opt-record.c [clang] -foptimization-record-file= should imply -fsave-optimization-record 2017-12-19 17:16:45 +00:00
option-aliases.c
output-file-cleanup.c [Driver] Make clang/cc conforms to UNIX standard 2017-11-10 01:32:47 +00:00
output-file-is-dir.c
parse-progname.c [clang] Get rid of "%T" expansions 2017-08-15 19:47:06 +00:00
pch-deps.c
phases.c
pic.c [mips] Prevent PIC to be set to level 2 2018-04-16 10:21:24 +00:00
ppc-abi.c Use PIC relocation mode by default for PowerPC64 ELF 2016-12-15 00:02:57 +00:00
ppc-dependent-options.cpp [Power9] Builtins for ELF v.2 ABI conformance - front end portion 2016-09-27 10:45:22 +00:00
ppc-endian.c [Driver] Use llvm::Triple methods to handle -EL and -EB. 2015-07-06 23:59:45 +00:00
ppc-f128-support-check.c [PowerPC] The __float128 type should only be available on Power9 2018-06-13 16:05:05 +00:00
ppc-features.cpp [PowerPC] Option for secure plt mode 2018-04-11 12:24:44 +00:00
prefixed-tools.c Fix tests with CLANG_DEFAULT_LINKER 2017-01-08 10:04:07 +00:00
preprocess-multiple.c
preprocessor.c
preserve-as-comments.c Replace preserve-as-comments CodeGen test with driver test 2016-07-28 00:36:34 +00:00
preserve-uselistorder.c
print-empty-prog-name.c Driver: fix an assertion with `-print-prog-name=` 2018-05-01 18:40:42 +00:00
print-libgcc-file-name-clangrt.c Reland r311836 - [Driver] Use arch type to find compiler-rt libraries (on Linux) 2017-08-28 20:29:52 +00:00
print-libgcc-file-name-libgcc.c [Driver] Make -print-libgcc-file-name print compiler-rt lib when used 2016-10-10 12:23:40 +00:00
ps4-analyzer-defaults.cpp [Analyzer] Change the default SA checkers for PS4 2016-01-06 10:03:58 +00:00
ps4-cpu-defaults.cpp
ps4-header-search.c [PS4] Change the names of some "environmental" things to what our 2016-05-16 17:22:25 +00:00
ps4-linker-non-win.c [clang] Get rid of "%T" expansions 2017-08-15 19:47:06 +00:00
ps4-linker-win.c [clang] Get rid of "%T" expansions 2017-08-15 19:47:06 +00:00
ps4-pic.c Restructure the propagation of -fPIC/-fPIE. 2016-06-23 15:07:32 +00:00
ps4-runtime-flags.c [PS4][Profile] add "--dependent-lib=libclang_rt.profile-x86_64.a" to 2015-12-16 17:25:27 +00:00
ps4-sdk-root.c [PS4] Clean up some test commentary. NFC 2016-05-18 15:35:58 +00:00
pth.c
qa_override.c
redundant-args.c
redzone.c
relax.c Handle -Wa,--mrelax-relocations=[no|yes]. 2016-05-29 02:01:14 +00:00
relax.s Handle -Wa,--mrelax-relocations=[no|yes]. 2016-05-29 02:01:14 +00:00
reloc-model.c [Driver] Don't crash on invalid values of -mrelocation-model=. 2017-04-01 21:07:07 +00:00
renderscript.rs Add a RenderScript language type 2016-06-09 21:57:40 +00:00
response-file-extra-whitespace.c Use printf instead of "echo -ne". 2016-10-26 03:38:48 +00:00
response-file.c Fix broken test. We can't assume that 2MB of args is enough to require a response file. 2017-04-13 00:46:50 +00:00
retain-comments-from-system-headers.c
rewrite-legacy-objc.m Add a command line option 'fregister_global_dtors_with_atexit' to 2018-04-17 18:41:52 +00:00
rewrite-map-files.c Driver: avoid failing in the backend 2016-09-26 04:48:22 +00:00
rewrite-map-in-diagnostics.c Revert 320391: Certain targets are failing, pulling back to diagnose. 2017-12-11 18:14:51 +00:00
rewrite-objc.m Add a command line option 'fregister_global_dtors_with_atexit' to 2018-04-17 18:41:52 +00:00
riscv-abi.c [RISCV] Add the RISCV target and compiler driver 2018-01-11 13:36:56 +00:00
riscv-arch.c [RISCV] More validations on the input value of -march= 2018-04-25 22:42:38 +00:00
riscv-features.c [RISCV] Add -mrelax/-mno-relax flags to enable/disable RISCV linker relaxation 2018-05-29 00:44:15 +00:00
riscv-gnutools.c Revert "Revert rC322769: [RISCV] Propagate -mabi and -march values to GNU assembler." 2018-01-31 18:11:09 +00:00
riscv32-toolchain.c [RISCV][NFC] Use more appropriate label for CHECK lines 2018-05-14 09:14:43 +00:00
riscv64-toolchain.c Recommit r324107 again. 2018-02-07 22:15:33 +00:00
ropi-rwpi.c [ARM] Command-line options for embedded position-independent code 2016-08-08 15:28:40 +00:00
rtti-options.cpp Do not enable RTTI with -fexceptions, for PS4 2018-05-18 23:32:01 +00:00
sanitize_unwind_tables.c Hardware-assisted AddressSanitizer (clang part). 2017-12-09 01:32:07 +00:00
sanitizer-ld.c [Driver] Sanitizer support based on runtime library presence 2018-07-20 23:34:39 +00:00
save-stats.c Fix some tests that were failing on Windows 2018-04-20 15:33:44 +00:00
save-temps.c Pass dwarf-version to cc1as. 2016-04-19 17:43:54 +00:00
show-option-names.c [Driver] Use -fsyntax-only in test/Driver/show-option-names.c 2016-10-11 18:38:33 +00:00
solaris-header-search.cpp test/Driver: Add some --stdlib=platform, NFC. 2018-01-23 18:12:12 +00:00
solaris-ld.c Fix test Driver/solaris-ld.c for Windows. 2018-01-24 00:05:01 +00:00
solaris-opts.c [Solaris] Default to -fno-cxa-finalize. 2015-09-14 23:21:31 +00:00
sparc-as.c [Sparc] Use the leon arch for Leon3's when using an external assembler 2018-05-24 06:16:02 +00:00
sparc-float.c [Sparc] Add software float option -msoft-float 2016-05-24 08:30:08 +00:00
sparcv9-as.c Revert Sparc and SparcV9 to external assembler. Now that the CPU 2015-11-27 13:16:33 +00:00
split-debug.c Reland r332885, "CodeGen, Driver: Start using direct split dwarf emission in clang." 2018-05-22 18:52:37 +00:00
split-debug.h Driver must return non-zero code on errors in command line 2017-05-24 14:57:17 +00:00
split-debug.s Reland r332885, "CodeGen, Driver: Start using direct split dwarf emission in clang." 2018-05-22 18:52:37 +00:00
split-stack-ld.c Pass --wrap=pthread_create to linker for -fsplit-stack. 2016-01-25 18:29:16 +00:00
stack-arg-probe.c Support for the mno-stack-arg-probe flag 2018-02-23 13:47:36 +00:00
stack-protector.c [Darwin] Enable -fstack-protector (back) by default with -ffreestanding 2017-09-05 23:50:58 +00:00
stack-size-section.c [Driver] Add flag enabling the function stack size section that was added in r319430 2018-01-08 13:42:26 +00:00
stackrealign.c clang/test/Driver/stackrealign.c REQUIRES clang-driver. 2015-09-12 01:29:35 +00:00
std.c
std.cpp [c++2a] Add option -std=c++2a to enable support for potential/transitional C++2a features 2017-07-16 00:23:04 +00:00
symbol-rewriter.c
sysroot-flags.c Revert rL301998: "Fix a bug that -isysroot is completely ignored on Unix" 2017-05-03 06:02:45 +00:00
sysroot.c Fix clang tests 2016-10-18 19:22:20 +00:00
systemz-as.s
systemz-features.cpp
systemz-march.c [SystemZ] Add support for IBM z14 processor (1/3) 2017-07-17 17:45:57 +00:00
target-abi-cc1as.s
target-as.s
target-override.c Put target deduced from executable name at the start of argument list 2017-09-20 15:22:27 +00:00
target-triple-deployment.c [Driver][Darwin] Use Host Triple to infer target os version 2018-07-03 04:15:49 +00:00
target.c
thinlto.c Revert "Revert "Revert "Revert "Fix LLVMgold plugin name/path for non-Linux."""" 2017-08-22 21:05:01 +00:00
thinlto.cu [CUDA] add REQUIRES fields for CUDA variants of LTO tests. 2018-03-22 16:47:41 +00:00
thinlto_backend.c [ThinLTO] Pass -save-temps to LTO backend for distributed ThinLTO builds 2018-04-17 16:39:25 +00:00
thread-model.c [WebAssembly] Initial WebAssembly support in clang 2015-09-03 22:51:53 +00:00
tsan.c
types.c [RISCV] Enable __int128_t and __uint128_t through clang flag 2018-02-25 03:58:23 +00:00
unavailable_aligned_allocation.cpp [driver][darwin] Take the OS version specified in "-target" as the target 2017-12-19 19:05:04 +00:00
unix-conformance.c [Driver] Make clang/cc conforms to UNIX standard 2017-11-10 01:32:47 +00:00
unknown-arg.c [Driver] Temporarily remove test for LLVM findNearest 2018-05-19 12:44:02 +00:00
unknown-gcc-arch.c
unknown-std.S Stop asserting when a meaningless -std= flag is passed for a non-compilation 2017-02-14 23:41:38 +00:00
unknown-std.c Correct line endings that got mixed up in r320089; NFC. 2017-12-07 23:04:11 +00:00
unknown-std.cl [OpenCL] Added -std/-cl-std=c++ 2018-04-12 14:17:04 +00:00
unknown-std.cpp Add --cuda-path to mock a CUDA Toolkit installation to avoid 2017-12-12 18:33:39 +00:00
unsupported-faltivec.c Remove the -faltivec alias option and replace it with -maltivec everywhere. 2017-03-21 22:06:18 +00:00
unsupported-option.c [Driver] Suggest correctly spelled driver options 2018-01-06 00:25:40 +00:00
unsupported-target-arch.c Fix crash with unsupported architectures in Linux/Gnu target triples. 2016-12-01 11:02:59 +00:00
verify_pch.m
vfsoverlay.c
via-file-asm.c
visibility.cpp
warning-options.cpp [clang] Get rid of "%T" expansions 2017-08-15 19:47:06 +00:00
warning-options_pedantic.cpp
wasm-toolchain.c [WebAssembly] Don't pass -ffunction-section/-fdata-sections 2018-01-31 18:55:22 +00:00
wasm-toolchain.cpp [WebAssembly] Don't pass -ffunction-section/-fdata-sections 2018-01-31 18:55:22 +00:00
wasm32-unknown-unknown.cpp [WebAssembly] Enable -fvisibility=hidden by default. 2016-01-07 01:00:21 +00:00
wasm64-unknown-unknown.cpp [WebAssembly] Enable -fvisibility=hidden by default. 2016-01-07 01:00:21 +00:00
watchos-version-min.c ARMv7k: implement ABI changes for watchOS from standard iOS. 2015-10-30 16:30:45 +00:00
whole-program-vtables.c Use -- to prevent the driver from confusing paths with flags, should fix Mac bot. 2017-09-13 21:49:17 +00:00
win-macho-unwind.c Do not add uwtable attribute by default for MachO targets. 2016-05-05 01:41:07 +00:00
windows-arm-minimal-arch.c [Driver] Inject the MSVC compatibility version into the triple 2015-06-08 00:22:46 +00:00
windows-cross.c [MinGW, CrossWindows] Allow passing -static together with -shared 2018-02-27 19:42:19 +00:00
windows-exceptions.cpp [Driver] Stop passing -fseh-exceptions for x86_64-windows-msvc 2018-06-06 23:09:02 +00:00
windows-pic.cpp Driver: warn on -fPIC/-fpic/-fPIE/-fpie on Windows 2016-12-26 03:35:24 +00:00
windows-thumb.s [ARM] Pass thumb as architecture to the underlying tools, when targeting windows 2016-07-27 14:12:20 +00:00
windows-wildcard-expansion.c
woa-fp.c Driver: follow WoA ABI recommendations 2015-10-03 03:39:28 +00:00
woa-restrict-it.c Remove -cc1 option "-backend-option". 2018-04-12 22:21:36 +00:00
working-directory-and-abs.c
working-directory.c Erase REQUIRES: shell-preserves-root from remaining tests, see r242312.þ 2015-07-15 20:04:18 +00:00
x86-march.c [X86] Introduce archs: goldmont-plus & tremont 2018-04-16 08:10:10 +00:00
x86-target-features.c [x86] invpcid intrinsic 2018-05-25 06:34:42 +00:00
x86_64-nacl-defines.cpp Revert "Basic: match GCC behaviour for SuS macro" 2017-02-07 19:00:06 +00:00
x86_features.c
x86_m16.c
xcore-opts.c