aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2015-01-07 19:55:37 +0000
committerDimitry Andric <dim@FreeBSD.org>2015-01-07 19:55:37 +0000
commitca9211ecdede9bdedb812b2243a4abdb8dacd1b9 (patch)
tree9b19e801150082c33e9152275829a6ce90614b55
parent8ef50bf3d1c287b5013c3168de77a462dfce3495 (diff)
downloadsrc-ca9211ecdede9bdedb812b2243a4abdb8dacd1b9.tar.gz
src-ca9211ecdede9bdedb812b2243a4abdb8dacd1b9.zip
Import compiler-rt trunk r224034.vendor/compiler-rt/compiler-rt-r224034
Notes
Notes: svn path=/vendor/compiler-rt/dist/; revision=276789 svn path=/vendor/compiler-rt/compiler-rt-r224034/; revision=276790; tag=vendor/compiler-rt/compiler-rt-r224034
-rw-r--r--.arcconfig2
-rw-r--r--.gitignore1
-rw-r--r--CMakeLists.txt377
-rw-r--r--CODE_OWNERS.TXT57
-rw-r--r--CREDITS.TXT12
-rw-r--r--LICENSE.TXT10
-rw-r--r--Makefile4
-rw-r--r--README.txt332
-rw-r--r--SDKs/darwin/README.txt3
-rw-r--r--SDKs/darwin/usr/include/errno.h17
-rw-r--r--SDKs/darwin/usr/include/fcntl.h17
-rw-r--r--SDKs/darwin/usr/include/limits.h23
-rw-r--r--SDKs/darwin/usr/include/stdio.h89
-rw-r--r--SDKs/darwin/usr/include/stdlib.h32
-rw-r--r--SDKs/darwin/usr/include/string.h52
-rw-r--r--SDKs/darwin/usr/include/sys/errno.h31
-rw-r--r--SDKs/darwin/usr/include/sys/fcntl.h52
-rw-r--r--SDKs/darwin/usr/include/sys/mman.h42
-rw-r--r--SDKs/darwin/usr/include/sys/stat.h25
-rw-r--r--SDKs/darwin/usr/include/sys/types.h20
-rw-r--r--SDKs/linux/usr/include/stdio.h1
-rw-r--r--cmake/Modules/AddCompilerRT.cmake164
-rw-r--r--cmake/Modules/CompilerRTCompile.cmake71
-rw-r--r--cmake/Modules/CompilerRTLink.cmake10
-rw-r--r--cmake/Modules/CompilerRTUtils.cmake37
-rw-r--r--cmake/Modules/SanitizerUtils.cmake32
-rw-r--r--cmake/config-ix.cmake258
-rw-r--r--include/CMakeLists.txt21
-rw-r--r--include/sanitizer/allocator_interface.h66
-rw-r--r--include/sanitizer/asan_interface.h109
-rw-r--r--include/sanitizer/common_interface_defs.h56
-rw-r--r--include/sanitizer/dfsan_interface.h17
-rw-r--r--include/sanitizer/lsan_interface.h31
-rw-r--r--include/sanitizer/msan_interface.h90
-rw-r--r--include/sanitizer/tsan_interface_atomic.h222
-rw-r--r--lib/BlocksRuntime/Block.h (renamed from BlocksRuntime/Block.h)0
-rw-r--r--lib/BlocksRuntime/Block_private.h (renamed from BlocksRuntime/Block_private.h)0
-rw-r--r--lib/BlocksRuntime/data.c (renamed from BlocksRuntime/data.c)0
-rw-r--r--lib/BlocksRuntime/runtime.c (renamed from BlocksRuntime/runtime.c)0
-rw-r--r--lib/CMakeLists.txt232
-rw-r--r--lib/Makefile.mk21
-rw-r--r--lib/absvti2.c33
-rw-r--r--lib/adddf3.c152
-rw-r--r--lib/addsf3.c151
-rw-r--r--lib/addvdi3.c36
-rw-r--r--lib/addvsi3.c36
-rw-r--r--lib/addvti3.c40
-rw-r--r--lib/arm/Makefile.mk20
-rw-r--r--lib/arm/adddf3vfp.S25
-rw-r--r--lib/arm/addsf3vfp.S25
-rw-r--r--lib/arm/aeabi_dcmp.S39
-rw-r--r--lib/arm/aeabi_fcmp.S39
-rw-r--r--lib/arm/aeabi_idivmod.S27
-rw-r--r--lib/arm/aeabi_ldivmod.S30
-rw-r--r--lib/arm/aeabi_memcmp.S19
-rw-r--r--lib/arm/aeabi_memcpy.S19
-rw-r--r--lib/arm/aeabi_memmove.S19
-rw-r--r--lib/arm/aeabi_memset.S32
-rw-r--r--lib/arm/aeabi_uidivmod.S28
-rw-r--r--lib/arm/aeabi_uldivmod.S30
-rw-r--r--lib/arm/bswapdi2.S36
-rw-r--r--lib/arm/bswapsi2.S28
-rw-r--r--lib/arm/comparesf2.S143
-rw-r--r--lib/arm/divdf3vfp.S25
-rw-r--r--lib/arm/divmodsi4.S60
-rw-r--r--lib/arm/divsf3vfp.S25
-rw-r--r--lib/arm/divsi3.S51
-rw-r--r--lib/arm/eqdf2vfp.S28
-rw-r--r--lib/arm/eqsf2vfp.S29
-rw-r--r--lib/arm/extendsfdf2vfp.S25
-rw-r--r--lib/arm/fixdfsivfp.S25
-rw-r--r--lib/arm/fixsfsivfp.S25
-rw-r--r--lib/arm/fixunsdfsivfp.S26
-rw-r--r--lib/arm/fixunssfsivfp.S26
-rw-r--r--lib/arm/floatsidfvfp.S25
-rw-r--r--lib/arm/floatsisfvfp.S25
-rw-r--r--lib/arm/floatunssidfvfp.S25
-rw-r--r--lib/arm/floatunssisfvfp.S25
-rw-r--r--lib/arm/gedf2vfp.S28
-rw-r--r--lib/arm/gesf2vfp.S29
-rw-r--r--lib/arm/gtdf2vfp.S28
-rw-r--r--lib/arm/gtsf2vfp.S29
-rw-r--r--lib/arm/ledf2vfp.S28
-rw-r--r--lib/arm/lesf2vfp.S29
-rw-r--r--lib/arm/ltdf2vfp.S28
-rw-r--r--lib/arm/ltsf2vfp.S29
-rw-r--r--lib/arm/modsi3.S50
-rw-r--r--lib/arm/muldf3vfp.S25
-rw-r--r--lib/arm/mulsf3vfp.S25
-rw-r--r--lib/arm/nedf2vfp.S28
-rw-r--r--lib/arm/negdf2vfp.S22
-rw-r--r--lib/arm/negsf2vfp.S22
-rw-r--r--lib/arm/nesf2vfp.S29
-rw-r--r--lib/arm/restore_vfp_d8_d15_regs.S37
-rw-r--r--lib/arm/save_vfp_d8_d15_regs.S35
-rw-r--r--lib/arm/subdf3vfp.S25
-rw-r--r--lib/arm/subsf3vfp.S26
-rw-r--r--lib/arm/switch16.S45
-rw-r--r--lib/arm/switch32.S47
-rw-r--r--lib/arm/switch8.S44
-rw-r--r--lib/arm/switchu8.S44
-rw-r--r--lib/arm/sync_synchronize.S34
-rw-r--r--lib/arm/truncdfsf2vfp.S25
-rw-r--r--lib/arm/udivmodsi4.S96
-rw-r--r--lib/arm/udivsi3.S93
-rw-r--r--lib/arm/umodsi3.S72
-rw-r--r--lib/arm/unorddf2vfp.S28
-rw-r--r--lib/arm/unordsf2vfp.S29
-rw-r--r--lib/asan/CMakeLists.txt172
-rw-r--r--lib/asan/Makefile.mk11
-rw-r--r--lib/asan/README.txt7
-rw-r--r--lib/asan/asan_activation.cc88
-rw-r--r--lib/asan/asan_activation.h23
-rw-r--r--lib/asan/asan_allocator.h74
-rw-r--r--lib/asan/asan_allocator2.cc203
-rw-r--r--lib/asan/asan_blacklist.txt3
-rw-r--r--lib/asan/asan_debugging.cc141
-rw-r--r--lib/asan/asan_dll_thunk.cc196
-rw-r--r--lib/asan/asan_fake_stack.cc65
-rw-r--r--lib/asan/asan_fake_stack.h8
-rw-r--r--lib/asan/asan_flags.h68
-rw-r--r--lib/asan/asan_globals.cc95
-rw-r--r--lib/asan/asan_init_version.h32
-rw-r--r--lib/asan/asan_intercepted_functions.h79
-rw-r--r--lib/asan/asan_interceptors.cc471
-rw-r--r--lib/asan/asan_interceptors.h72
-rw-r--r--lib/asan/asan_interface_internal.h112
-rw-r--r--lib/asan/asan_internal.h64
-rw-r--r--lib/asan/asan_linux.cc149
-rw-r--r--lib/asan/asan_mac.cc97
-rw-r--r--lib/asan/asan_mac.h59
-rw-r--r--lib/asan/asan_malloc_linux.cc115
-rw-r--r--lib/asan/asan_malloc_mac.cc40
-rw-r--r--lib/asan/asan_malloc_win.cc124
-rw-r--r--lib/asan/asan_mapping.h93
-rw-r--r--lib/asan/asan_new_delete.cc74
-rw-r--r--lib/asan/asan_poisoning.cc181
-rw-r--r--lib/asan/asan_poisoning.h32
-rw-r--r--lib/asan/asan_posix.cc107
-rw-r--r--lib/asan/asan_preinit.cc16
-rw-r--r--lib/asan/asan_report.cc723
-rw-r--r--lib/asan/asan_report.h74
-rw-r--r--lib/asan/asan_rtl.cc496
-rw-r--r--lib/asan/asan_stack.cc34
-rw-r--r--lib/asan/asan_stack.h92
-rw-r--r--lib/asan/asan_stats.cc13
-rw-r--r--lib/asan/asan_stats.h4
-rw-r--r--lib/asan/asan_suppressions.cc87
-rw-r--r--lib/asan/asan_suppressions.h29
-rw-r--r--lib/asan/asan_thread.cc92
-rw-r--r--lib/asan/asan_thread.h51
-rw-r--r--lib/asan/asan_win.cc132
-rw-r--r--lib/asan/asan_win_dll_thunk.cc376
-rw-r--r--lib/asan/asan_win_dynamic_runtime_thunk.cc52
-rw-r--r--lib/asan/lit_tests/32bitConfig/lit.site.cfg.in13
-rw-r--r--lib/asan/lit_tests/64bitConfig/lit.site.cfg.in12
-rw-r--r--lib/asan/lit_tests/CMakeLists.txt42
-rw-r--r--lib/asan/lit_tests/TestCases/Darwin/interface_symbols_darwin.c41
-rw-r--r--lib/asan/lit_tests/TestCases/Darwin/malloc_set_zone_name-mprotect.cc51
-rw-r--r--lib/asan/lit_tests/TestCases/Darwin/malloc_zone-protected.cc20
-rw-r--r--lib/asan/lit_tests/TestCases/Darwin/reexec-insert-libraries-env.cc20
-rw-r--r--lib/asan/lit_tests/TestCases/Darwin/unset-insert-libraries-on-exec.cc20
-rw-r--r--lib/asan/lit_tests/TestCases/Linux/asan_prelink_test.cc28
-rw-r--r--lib/asan/lit_tests/TestCases/Linux/clone_test.cc44
-rw-r--r--lib/asan/lit_tests/TestCases/Linux/coverage.cc45
-rw-r--r--lib/asan/lit_tests/TestCases/Linux/glob.cc29
-rw-r--r--lib/asan/lit_tests/TestCases/Linux/heap-overflow-large.cc23
-rw-r--r--lib/asan/lit_tests/TestCases/Linux/heavy_uar_test.cc54
-rw-r--r--lib/asan/lit_tests/TestCases/Linux/initialization-bug-any-order.cc36
-rw-r--r--lib/asan/lit_tests/TestCases/Linux/interception_failure_test.cc22
-rw-r--r--lib/asan/lit_tests/TestCases/Linux/interception_malloc_test.cc23
-rw-r--r--lib/asan/lit_tests/TestCases/Linux/interception_readdir_r_test.cc59
-rw-r--r--lib/asan/lit_tests/TestCases/Linux/interception_test.cc22
-rw-r--r--lib/asan/lit_tests/TestCases/Linux/interface_symbols_linux.c35
-rw-r--r--lib/asan/lit_tests/TestCases/Linux/malloc-in-qsort.cc56
-rw-r--r--lib/asan/lit_tests/TestCases/Linux/malloc_delete_mismatch.cc31
-rw-r--r--lib/asan/lit_tests/TestCases/Linux/overflow-in-qsort.cc51
-rw-r--r--lib/asan/lit_tests/TestCases/Linux/preinit_test.cc27
-rw-r--r--lib/asan/lit_tests/TestCases/Linux/ptrace.cc52
-rw-r--r--lib/asan/lit_tests/TestCases/Linux/rlimit_mmap_test.cc16
-rw-r--r--lib/asan/lit_tests/TestCases/Linux/swapcontext_test.cc90
-rw-r--r--lib/asan/lit_tests/TestCases/Linux/syscalls.cc22
-rw-r--r--lib/asan/lit_tests/TestCases/Linux/time_null_regtest.cc20
-rw-r--r--lib/asan/lit_tests/TestCases/Linux/tsd_dtor_leak.cc39
-rw-r--r--lib/asan/lit_tests/TestCases/Linux/uar_signals.cc70
-rw-r--r--lib/asan/lit_tests/TestCases/Linux/unpoison_tls.cc35
-rw-r--r--lib/asan/lit_tests/TestCases/Linux/zero-base-shadow32.cc24
-rw-r--r--lib/asan/lit_tests/TestCases/Linux/zero-base-shadow64.cc24
-rw-r--r--lib/asan/lit_tests/TestCases/SharedLibs/darwin-dummy-shared-lib-so.cc13
-rw-r--r--lib/asan/lit_tests/TestCases/SharedLibs/dlclose-test-so.cc33
-rw-r--r--lib/asan/lit_tests/TestCases/SharedLibs/init-order-dlopen-so.cc12
-rw-r--r--lib/asan/lit_tests/TestCases/SharedLibs/lit.local.cfg4
-rw-r--r--lib/asan/lit_tests/TestCases/SharedLibs/shared-lib-test-so.cc26
-rw-r--r--lib/asan/lit_tests/TestCases/allocator_returns_null.cc81
-rw-r--r--lib/asan/lit_tests/TestCases/allow_user_segv.cc48
-rw-r--r--lib/asan/lit_tests/TestCases/asan-symbolize-sanity-test.cc39
-rw-r--r--lib/asan/lit_tests/TestCases/assign_large_valloc_to_global.cc8
-rw-r--r--lib/asan/lit_tests/TestCases/atexit_stats.cc13
-rw-r--r--lib/asan/lit_tests/TestCases/blacklist.cc38
-rw-r--r--lib/asan/lit_tests/TestCases/contiguous_container.cc47
-rw-r--r--lib/asan/lit_tests/TestCases/current_allocated_bytes.cc43
-rw-r--r--lib/asan/lit_tests/TestCases/deep_call_stack.cc25
-rw-r--r--lib/asan/lit_tests/TestCases/deep_stack_uaf.cc31
-rw-r--r--lib/asan/lit_tests/TestCases/deep_tail_call.cc20
-rw-r--r--lib/asan/lit_tests/TestCases/deep_thread_stack.cc57
-rw-r--r--lib/asan/lit_tests/TestCases/default_blacklist.cc3
-rw-r--r--lib/asan/lit_tests/TestCases/default_options.cc15
-rw-r--r--lib/asan/lit_tests/TestCases/dlclose-test.cc81
-rw-r--r--lib/asan/lit_tests/TestCases/double-free.cc25
-rw-r--r--lib/asan/lit_tests/TestCases/force_inline_opt0.cc14
-rw-r--r--lib/asan/lit_tests/TestCases/free_hook_realloc.cc32
-rw-r--r--lib/asan/lit_tests/TestCases/global-demangle.cc17
-rw-r--r--lib/asan/lit_tests/TestCases/global-overflow.cc21
-rw-r--r--lib/asan/lit_tests/TestCases/heap-overflow.cc24
-rw-r--r--lib/asan/lit_tests/TestCases/huge_negative_hea_oob.cc13
-rw-r--r--lib/asan/lit_tests/TestCases/init-order-atexit.cc31
-rw-r--r--lib/asan/lit_tests/TestCases/init-order-dlopen.cc57
-rw-r--r--lib/asan/lit_tests/TestCases/init-order-pthread-create.cc32
-rw-r--r--lib/asan/lit_tests/TestCases/initialization-blacklist.cc32
-rw-r--r--lib/asan/lit_tests/TestCases/initialization-bug.cc45
-rw-r--r--lib/asan/lit_tests/TestCases/initialization-constexpr.cc31
-rw-r--r--lib/asan/lit_tests/TestCases/initialization-nobug.cc48
-rw-r--r--lib/asan/lit_tests/TestCases/inline.cc19
-rw-r--r--lib/asan/lit_tests/TestCases/interface_test.cc8
-rw-r--r--lib/asan/lit_tests/TestCases/invalid-free.cc21
-rw-r--r--lib/asan/lit_tests/TestCases/ioctl.cc24
-rw-r--r--lib/asan/lit_tests/TestCases/large_func_test.cc51
-rw-r--r--lib/asan/lit_tests/TestCases/log-path_test.cc39
-rw-r--r--lib/asan/lit_tests/TestCases/log_path_fork_test.cc.disabled22
-rw-r--r--lib/asan/lit_tests/TestCases/lsan_annotations.cc16
-rw-r--r--lib/asan/lit_tests/TestCases/malloc_context_size.cc27
-rw-r--r--lib/asan/lit_tests/TestCases/malloc_fill.cc22
-rw-r--r--lib/asan/lit_tests/TestCases/malloc_hook.cc36
-rw-r--r--lib/asan/lit_tests/TestCases/memcmp_strict_test.cc15
-rw-r--r--lib/asan/lit_tests/TestCases/memcmp_test.cc17
-rw-r--r--lib/asan/lit_tests/TestCases/null_deref.cc19
-rw-r--r--lib/asan/lit_tests/TestCases/on_error_callback.cc16
-rw-r--r--lib/asan/lit_tests/TestCases/partial_right.cc13
-rw-r--r--lib/asan/lit_tests/TestCases/poison_partial.cc19
-rw-r--r--lib/asan/lit_tests/TestCases/print_summary.cc14
-rw-r--r--lib/asan/lit_tests/TestCases/readv.cc32
-rw-r--r--lib/asan/lit_tests/TestCases/sanity_check_pure_c.c19
-rw-r--r--lib/asan/lit_tests/TestCases/shared-lib-test.cc42
-rw-r--r--lib/asan/lit_tests/TestCases/sleep_before_dying.c10
-rw-r--r--lib/asan/lit_tests/TestCases/stack-buffer-overflow-with-position.cc45
-rw-r--r--lib/asan/lit_tests/TestCases/stack-frame-demangle.cc22
-rw-r--r--lib/asan/lit_tests/TestCases/stack-oob-frames.cc59
-rw-r--r--lib/asan/lit_tests/TestCases/stack-overflow.cc16
-rw-r--r--lib/asan/lit_tests/TestCases/stack-use-after-return.cc77
-rw-r--r--lib/asan/lit_tests/TestCases/strdup_oob_test.cc19
-rw-r--r--lib/asan/lit_tests/TestCases/strerror_r_test.cc13
-rw-r--r--lib/asan/lit_tests/TestCases/strip_path_prefix.c12
-rw-r--r--lib/asan/lit_tests/TestCases/strncpy-overflow.cc28
-rw-r--r--lib/asan/lit_tests/TestCases/symbolize_callback.cc17
-rw-r--r--lib/asan/lit_tests/TestCases/throw_call_test.cc45
-rw-r--r--lib/asan/lit_tests/TestCases/throw_invoke_test.cc50
-rw-r--r--lib/asan/lit_tests/TestCases/time_interceptor.cc16
-rw-r--r--lib/asan/lit_tests/TestCases/uar_and_exceptions.cc40
-rw-r--r--lib/asan/lit_tests/TestCases/unaligned_loads_and_stores.cc52
-rw-r--r--lib/asan/lit_tests/TestCases/use-after-free-right.cc34
-rw-r--r--lib/asan/lit_tests/TestCases/use-after-free.cc31
-rw-r--r--lib/asan/lit_tests/TestCases/use-after-poison.cc20
-rw-r--r--lib/asan/lit_tests/TestCases/use-after-scope-dtor-order.cc25
-rw-r--r--lib/asan/lit_tests/TestCases/use-after-scope-inlined.cc27
-rw-r--r--lib/asan/lit_tests/TestCases/use-after-scope-nobug.cc14
-rw-r--r--lib/asan/lit_tests/TestCases/use-after-scope-temp.cc29
-rw-r--r--lib/asan/lit_tests/TestCases/use-after-scope.cc16
-rw-r--r--lib/asan/lit_tests/TestCases/wait.cc63
-rw-r--r--lib/asan/lit_tests/Unit/lit.site.cfg.in16
-rw-r--r--lib/asan/lit_tests/lit.cfg95
-rw-r--r--lib/asan/scripts/CMakeLists.txt4
-rwxr-xr-xlib/asan/scripts/asan_device_setup267
-rwxr-xr-xlib/asan/scripts/asan_symbolize.py199
-rw-r--r--lib/asan/tests/CMakeLists.txt219
-rw-r--r--lib/asan/tests/asan_asm_test.cc267
-rw-r--r--lib/asan/tests/asan_fake_stack_test.cc10
-rw-r--r--lib/asan/tests/asan_interface_test.cc67
-rw-r--r--lib/asan/tests/asan_mem_test.cc15
-rw-r--r--lib/asan/tests/asan_noinst_test.cc110
-rw-r--r--lib/asan/tests/asan_oob_test.cc4
-rw-r--r--lib/asan/tests/asan_racy_double_free_test.cc4
-rw-r--r--lib/asan/tests/asan_str_test.cc52
-rw-r--r--lib/asan/tests/asan_test.cc193
-rw-r--r--lib/asan/tests/asan_test_config.h12
-rw-r--r--lib/asan/tests/asan_test_utils.h20
-rw-r--r--lib/ashlti3.c45
-rw-r--r--lib/ashrti3.c46
-rw-r--r--lib/assembly.h73
-rw-r--r--lib/builtins/CMakeLists.txt278
-rw-r--r--lib/builtins/Makefile.mk25
-rw-r--r--lib/builtins/README.txt343
-rw-r--r--lib/builtins/absvdi2.c (renamed from lib/absvdi2.c)0
-rw-r--r--lib/builtins/absvsi2.c (renamed from lib/absvsi2.c)0
-rw-r--r--lib/builtins/absvti2.c34
-rw-r--r--lib/builtins/adddf3.c22
-rw-r--r--lib/builtins/addsf3.c22
-rw-r--r--lib/builtins/addtf3.c25
-rw-r--r--lib/builtins/addvdi3.c36
-rw-r--r--lib/builtins/addvsi3.c36
-rw-r--r--lib/builtins/addvti3.c40
-rw-r--r--lib/builtins/apple_versioning.c (renamed from lib/apple_versioning.c)0
-rw-r--r--lib/builtins/arm/Makefile.mk20
-rw-r--r--lib/builtins/arm/adddf3vfp.S26
-rw-r--r--lib/builtins/arm/addsf3vfp.S26
-rw-r--r--lib/builtins/arm/aeabi_dcmp.S40
-rw-r--r--lib/builtins/arm/aeabi_div0.c43
-rw-r--r--lib/builtins/arm/aeabi_fcmp.S40
-rw-r--r--lib/builtins/arm/aeabi_idivmod.S28
-rw-r--r--lib/builtins/arm/aeabi_ldivmod.S31
-rw-r--r--lib/builtins/arm/aeabi_memcmp.S20
-rw-r--r--lib/builtins/arm/aeabi_memcpy.S20
-rw-r--r--lib/builtins/arm/aeabi_memmove.S20
-rw-r--r--lib/builtins/arm/aeabi_memset.S34
-rw-r--r--lib/builtins/arm/aeabi_uidivmod.S29
-rw-r--r--lib/builtins/arm/aeabi_uldivmod.S31
-rw-r--r--lib/builtins/arm/bswapdi2.S47
-rw-r--r--lib/builtins/arm/bswapsi2.S39
-rw-r--r--lib/builtins/arm/clzdi2.S97
-rw-r--r--lib/builtins/arm/clzsi2.S76
-rw-r--r--lib/builtins/arm/comparesf2.S148
-rw-r--r--lib/builtins/arm/divdf3vfp.S26
-rw-r--r--lib/builtins/arm/divmodsi4.S74
-rw-r--r--lib/builtins/arm/divsf3vfp.S26
-rw-r--r--lib/builtins/arm/divsi3.S65
-rw-r--r--lib/builtins/arm/eqdf2vfp.S29
-rw-r--r--lib/builtins/arm/eqsf2vfp.S29
-rw-r--r--lib/builtins/arm/extendsfdf2vfp.S26
-rw-r--r--lib/builtins/arm/fixdfsivfp.S26
-rw-r--r--lib/builtins/arm/fixsfsivfp.S26
-rw-r--r--lib/builtins/arm/fixunsdfsivfp.S27
-rw-r--r--lib/builtins/arm/fixunssfsivfp.S27
-rw-r--r--lib/builtins/arm/floatsidfvfp.S26
-rw-r--r--lib/builtins/arm/floatsisfvfp.S26
-rw-r--r--lib/builtins/arm/floatunssidfvfp.S26
-rw-r--r--lib/builtins/arm/floatunssisfvfp.S26
-rw-r--r--lib/builtins/arm/gedf2vfp.S29
-rw-r--r--lib/builtins/arm/gesf2vfp.S29
-rw-r--r--lib/builtins/arm/gtdf2vfp.S29
-rw-r--r--lib/builtins/arm/gtsf2vfp.S29
-rw-r--r--lib/builtins/arm/ledf2vfp.S29
-rw-r--r--lib/builtins/arm/lesf2vfp.S29
-rw-r--r--lib/builtins/arm/ltdf2vfp.S29
-rw-r--r--lib/builtins/arm/ltsf2vfp.S29
-rw-r--r--lib/builtins/arm/modsi3.S63
-rw-r--r--lib/builtins/arm/muldf3vfp.S26
-rw-r--r--lib/builtins/arm/mulsf3vfp.S26
-rw-r--r--lib/builtins/arm/nedf2vfp.S29
-rw-r--r--lib/builtins/arm/negdf2vfp.S23
-rw-r--r--lib/builtins/arm/negsf2vfp.S23
-rw-r--r--lib/builtins/arm/nesf2vfp.S29
-rw-r--r--lib/builtins/arm/restore_vfp_d8_d15_regs.S33
-rw-r--r--lib/builtins/arm/save_vfp_d8_d15_regs.S33
-rw-r--r--lib/builtins/arm/softfloat-alias.list (renamed from lib/arm/softfloat-alias.list)0
-rw-r--r--lib/builtins/arm/subdf3vfp.S26
-rw-r--r--lib/builtins/arm/subsf3vfp.S27
-rw-r--r--lib/builtins/arm/switch16.S44
-rw-r--r--lib/builtins/arm/switch32.S44
-rw-r--r--lib/builtins/arm/switch8.S42
-rw-r--r--lib/builtins/arm/switchu8.S42
-rw-r--r--lib/builtins/arm/sync-ops.h64
-rw-r--r--lib/builtins/arm/sync_fetch_and_add_4.S21
-rw-r--r--lib/builtins/arm/sync_fetch_and_add_8.S24
-rw-r--r--lib/builtins/arm/sync_fetch_and_and_4.S19
-rw-r--r--lib/builtins/arm/sync_fetch_and_and_8.S23
-rw-r--r--lib/builtins/arm/sync_fetch_and_max_4.S20
-rw-r--r--lib/builtins/arm/sync_fetch_and_max_8.S21
-rw-r--r--lib/builtins/arm/sync_fetch_and_min_4.S20
-rw-r--r--lib/builtins/arm/sync_fetch_and_min_8.S21
-rw-r--r--lib/builtins/arm/sync_fetch_and_nand_4.S20
-rw-r--r--lib/builtins/arm/sync_fetch_and_nand_8.S24
-rw-r--r--lib/builtins/arm/sync_fetch_and_or_4.S20
-rw-r--r--lib/builtins/arm/sync_fetch_and_or_8.S24
-rw-r--r--lib/builtins/arm/sync_fetch_and_sub_4.S21
-rw-r--r--lib/builtins/arm/sync_fetch_and_sub_8.S24
-rw-r--r--lib/builtins/arm/sync_fetch_and_umax_4.S20
-rw-r--r--lib/builtins/arm/sync_fetch_and_umax_8.S21
-rw-r--r--lib/builtins/arm/sync_fetch_and_umin_4.S20
-rw-r--r--lib/builtins/arm/sync_fetch_and_umin_8.S21
-rw-r--r--lib/builtins/arm/sync_fetch_and_xor_4.S20
-rw-r--r--lib/builtins/arm/sync_fetch_and_xor_8.S24
-rw-r--r--lib/builtins/arm/sync_synchronize.S35
-rw-r--r--lib/builtins/arm/truncdfsf2vfp.S26
-rw-r--r--lib/builtins/arm/udivmodsi4.S184
-rw-r--r--lib/builtins/arm/udivsi3.S170
-rw-r--r--lib/builtins/arm/umodsi3.S161
-rw-r--r--lib/builtins/arm/unorddf2vfp.S29
-rw-r--r--lib/builtins/arm/unordsf2vfp.S29
-rw-r--r--lib/builtins/arm64/Makefile.mk20
-rw-r--r--lib/builtins/armv6m/Makefile.mk20
-rw-r--r--lib/builtins/ashldi3.c (renamed from lib/ashldi3.c)0
-rw-r--r--lib/builtins/ashlti3.c45
-rw-r--r--lib/builtins/ashrdi3.c (renamed from lib/ashrdi3.c)0
-rw-r--r--lib/builtins/ashrti3.c46
-rw-r--r--lib/builtins/assembly.h149
-rw-r--r--lib/builtins/atomic.c (renamed from lib/atomic.c)0
-rw-r--r--lib/builtins/clear_cache.c96
-rw-r--r--lib/builtins/clzdi2.c (renamed from lib/clzdi2.c)0
-rw-r--r--lib/builtins/clzsi2.c (renamed from lib/clzsi2.c)0
-rw-r--r--lib/builtins/clzti2.c33
-rw-r--r--lib/builtins/cmpdi2.c (renamed from lib/cmpdi2.c)0
-rw-r--r--lib/builtins/cmpti2.c42
-rw-r--r--lib/builtins/comparedf2.c141
-rw-r--r--lib/builtins/comparesf2.c140
-rw-r--r--lib/builtins/comparetf2.c133
-rw-r--r--lib/builtins/ctzdi2.c (renamed from lib/ctzdi2.c)0
-rw-r--r--lib/builtins/ctzsi2.c (renamed from lib/ctzsi2.c)0
-rw-r--r--lib/builtins/ctzti2.c33
-rw-r--r--lib/builtins/divdc3.c60
-rw-r--r--lib/builtins/divdf3.c185
-rw-r--r--lib/builtins/divdi3.c29
-rw-r--r--lib/builtins/divmoddi4.c25
-rw-r--r--lib/builtins/divmodsi4.c27
-rw-r--r--lib/builtins/divsc3.c60
-rw-r--r--lib/builtins/divsf3.c169
-rw-r--r--lib/builtins/divsi3.c37
-rw-r--r--lib/builtins/divtf3.c203
-rw-r--r--lib/builtins/divti3.c33
-rw-r--r--lib/builtins/divxc3.c63
-rw-r--r--lib/builtins/enable_execute_stack.c58
-rw-r--r--lib/builtins/eprintf.c35
-rw-r--r--lib/builtins/extenddftf2.c23
-rw-r--r--lib/builtins/extendsfdf2.c19
-rw-r--r--lib/builtins/extendsftf2.c23
-rw-r--r--lib/builtins/ffsdi2.c (renamed from lib/ffsdi2.c)0
-rw-r--r--lib/builtins/ffsti2.c37
-rw-r--r--lib/builtins/fixdfdi.c45
-rw-r--r--lib/builtins/fixdfsi.c50
-rw-r--r--lib/builtins/fixdfti.c45
-rw-r--r--lib/builtins/fixsfdi.c (renamed from lib/fixsfdi.c)0
-rw-r--r--lib/builtins/fixsfsi.c (renamed from lib/fixsfsi.c)0
-rw-r--r--lib/builtins/fixsfti.c45
-rw-r--r--lib/builtins/fixunsdfdi.c (renamed from lib/fixunsdfdi.c)0
-rw-r--r--lib/builtins/fixunsdfsi.c (renamed from lib/fixunsdfsi.c)0
-rw-r--r--lib/builtins/fixunsdfti.c47
-rw-r--r--lib/builtins/fixunssfdi.c (renamed from lib/fixunssfdi.c)0
-rw-r--r--lib/builtins/fixunssfsi.c (renamed from lib/fixunssfsi.c)0
-rw-r--r--lib/builtins/fixunssfti.c47
-rw-r--r--lib/builtins/fixunsxfdi.c44
-rw-r--r--lib/builtins/fixunsxfsi.c44
-rw-r--r--lib/builtins/fixunsxfti.c49
-rw-r--r--lib/builtins/fixxfdi.c44
-rw-r--r--lib/builtins/fixxfti.c47
-rw-r--r--lib/builtins/floatdidf.c (renamed from lib/floatdidf.c)0
-rw-r--r--lib/builtins/floatdisf.c (renamed from lib/floatdisf.c)0
-rw-r--r--lib/builtins/floatdixf.c46
-rw-r--r--lib/builtins/floatsidf.c53
-rw-r--r--lib/builtins/floatsisf.c59
-rw-r--r--lib/builtins/floatsitf.c52
-rw-r--r--lib/builtins/floattidf.c83
-rw-r--r--lib/builtins/floattisf.c82
-rw-r--r--lib/builtins/floattixf.c84
-rw-r--r--lib/builtins/floatundidf.c106
-rw-r--r--lib/builtins/floatundisf.c (renamed from lib/floatundisf.c)0
-rw-r--r--lib/builtins/floatundixf.c42
-rw-r--r--lib/builtins/floatunsidf.c42
-rw-r--r--lib/builtins/floatunsisf.c50
-rw-r--r--lib/builtins/floatunsitf.c40
-rw-r--r--lib/builtins/floatuntidf.c80
-rw-r--r--lib/builtins/floatuntisf.c79
-rw-r--r--lib/builtins/floatuntixf.c81
-rw-r--r--lib/builtins/fp_add_impl.inc144
-rw-r--r--lib/builtins/fp_extend.h76
-rw-r--r--lib/builtins/fp_extend_impl.inc106
-rw-r--r--lib/builtins/fp_lib.h270
-rw-r--r--lib/builtins/fp_mul_impl.inc116
-rw-r--r--lib/builtins/fp_trunc.h64
-rw-r--r--lib/builtins/fp_trunc_impl.inc135
-rw-r--r--lib/builtins/gcc_personality_v0.c249
-rw-r--r--lib/builtins/i386/Makefile.mk20
-rw-r--r--lib/builtins/i386/ashldi3.S58
-rw-r--r--lib/builtins/i386/ashrdi3.S69
-rw-r--r--lib/builtins/i386/divdi3.S162
-rw-r--r--lib/builtins/i386/floatdidf.S39
-rw-r--r--lib/builtins/i386/floatdisf.S32
-rw-r--r--lib/builtins/i386/floatdixf.S30
-rw-r--r--lib/builtins/i386/floatundidf.S52
-rw-r--r--lib/builtins/i386/floatundisf.S105
-rw-r--r--lib/builtins/i386/floatundixf.S43
-rw-r--r--lib/builtins/i386/lshrdi3.S59
-rw-r--r--lib/builtins/i386/moddi3.S166
-rw-r--r--lib/builtins/i386/muldi3.S30
-rw-r--r--lib/builtins/i386/udivdi3.S115
-rw-r--r--lib/builtins/i386/umoddi3.S126
-rw-r--r--lib/builtins/int_endianness.h112
-rw-r--r--lib/builtins/int_lib.h70
-rw-r--r--lib/builtins/int_math.h (renamed from lib/int_math.h)0
-rw-r--r--lib/builtins/int_types.h143
-rw-r--r--lib/builtins/int_util.c (renamed from lib/int_util.c)0
-rw-r--r--lib/builtins/int_util.h29
-rw-r--r--lib/builtins/lshrdi3.c (renamed from lib/lshrdi3.c)0
-rw-r--r--lib/builtins/lshrti3.c45
-rw-r--r--lib/builtins/moddi3.c30
-rw-r--r--lib/builtins/modsi3.c23
-rw-r--r--lib/builtins/modti3.c34
-rw-r--r--lib/builtins/muldc3.c73
-rw-r--r--lib/builtins/muldf3.c22
-rw-r--r--lib/builtins/muldi3.c (renamed from lib/muldi3.c)0
-rw-r--r--lib/builtins/mulodi4.c58
-rw-r--r--lib/builtins/mulosi4.c58
-rw-r--r--lib/builtins/muloti4.c62
-rw-r--r--lib/builtins/mulsc3.c73
-rw-r--r--lib/builtins/mulsf3.c22
-rw-r--r--lib/builtins/multf3.c25
-rw-r--r--lib/builtins/multi3.c58
-rw-r--r--lib/builtins/mulvdi3.c56
-rw-r--r--lib/builtins/mulvsi3.c56
-rw-r--r--lib/builtins/mulvti3.c60
-rw-r--r--lib/builtins/mulxc3.c77
-rw-r--r--lib/builtins/negdf2.c22
-rw-r--r--lib/builtins/negdi2.c26
-rw-r--r--lib/builtins/negsf2.c (renamed from lib/negsf2.c)0
-rw-r--r--lib/builtins/negti2.c30
-rw-r--r--lib/builtins/negvdi2.c (renamed from lib/negvdi2.c)0
-rw-r--r--lib/builtins/negvsi2.c (renamed from lib/negvsi2.c)0
-rw-r--r--lib/builtins/negvti2.c32
-rw-r--r--lib/builtins/paritydi2.c25
-rw-r--r--lib/builtins/paritysi2.c (renamed from lib/paritysi2.c)0
-rw-r--r--lib/builtins/parityti2.c29
-rw-r--r--lib/builtins/popcountdi2.c (renamed from lib/popcountdi2.c)0
-rw-r--r--lib/builtins/popcountsi2.c (renamed from lib/popcountsi2.c)0
-rw-r--r--lib/builtins/popcountti2.c44
-rw-r--r--lib/builtins/powidf2.c (renamed from lib/powidf2.c)0
-rw-r--r--lib/builtins/powisf2.c (renamed from lib/powisf2.c)0
-rw-r--r--lib/builtins/powitf2.c38
-rw-r--r--lib/builtins/powixf2.c38
-rw-r--r--lib/builtins/ppc/DD.h46
-rw-r--r--lib/builtins/ppc/Makefile.mk20
-rw-r--r--lib/builtins/ppc/divtc3.c (renamed from lib/ppc/divtc3.c)0
-rw-r--r--lib/builtins/ppc/fixtfdi.c104
-rw-r--r--lib/builtins/ppc/fixunstfdi.c (renamed from lib/ppc/fixunstfdi.c)0
-rw-r--r--lib/builtins/ppc/floatditf.c (renamed from lib/ppc/floatditf.c)0
-rw-r--r--lib/builtins/ppc/floatunditf.c (renamed from lib/ppc/floatunditf.c)0
-rw-r--r--lib/builtins/ppc/gcc_qadd.c76
-rw-r--r--lib/builtins/ppc/gcc_qdiv.c (renamed from lib/ppc/gcc_qdiv.c)0
-rw-r--r--lib/builtins/ppc/gcc_qmul.c (renamed from lib/ppc/gcc_qmul.c)0
-rw-r--r--lib/builtins/ppc/gcc_qsub.c76
-rw-r--r--lib/builtins/ppc/multc3.c (renamed from lib/ppc/multc3.c)0
-rw-r--r--lib/builtins/ppc/restFP.S (renamed from lib/ppc/restFP.S)0
-rw-r--r--lib/builtins/ppc/saveFP.S (renamed from lib/ppc/saveFP.S)0
-rw-r--r--lib/builtins/subdf3.c26
-rw-r--r--lib/builtins/subsf3.c26
-rw-r--r--lib/builtins/subtf3.c27
-rw-r--r--lib/builtins/subvdi3.c36
-rw-r--r--lib/builtins/subvsi3.c36
-rw-r--r--lib/builtins/subvti3.c40
-rw-r--r--lib/builtins/trampoline_setup.c48
-rw-r--r--lib/builtins/truncdfsf2.c18
-rw-r--r--lib/builtins/trunctfdf2.c22
-rw-r--r--lib/builtins/trunctfsf2.c22
-rw-r--r--lib/builtins/ucmpdi2.c (renamed from lib/ucmpdi2.c)0
-rw-r--r--lib/builtins/ucmpti2.c42
-rw-r--r--lib/builtins/udivdi3.c23
-rw-r--r--lib/builtins/udivmoddi4.c231
-rw-r--r--lib/builtins/udivmodsi4.c27
-rw-r--r--lib/builtins/udivmodti4.c238
-rw-r--r--lib/builtins/udivsi3.c (renamed from lib/udivsi3.c)0
-rw-r--r--lib/builtins/udivti3.c27
-rw-r--r--lib/builtins/umoddi3.c25
-rw-r--r--lib/builtins/umodsi3.c23
-rw-r--r--lib/builtins/umodti3.c29
-rw-r--r--lib/builtins/x86_64/Makefile.mk20
-rw-r--r--lib/builtins/x86_64/floatdidf.c (renamed from lib/x86_64/floatdidf.c)0
-rw-r--r--lib/builtins/x86_64/floatdisf.c (renamed from lib/x86_64/floatdisf.c)0
-rw-r--r--lib/builtins/x86_64/floatdixf.c (renamed from lib/x86_64/floatdixf.c)0
-rw-r--r--lib/builtins/x86_64/floatundidf.S49
-rw-r--r--lib/builtins/x86_64/floatundisf.S35
-rw-r--r--lib/builtins/x86_64/floatundixf.S68
-rw-r--r--lib/clear_cache.c40
-rw-r--r--lib/clzti2.c33
-rw-r--r--lib/cmpti2.c42
-rw-r--r--lib/comparedf2.c134
-rw-r--r--lib/comparesf2.c133
-rw-r--r--lib/ctzti2.c33
-rw-r--r--lib/dfsan/CMakeLists.txt48
-rw-r--r--lib/dfsan/dfsan.cc119
-rw-r--r--lib/dfsan/dfsan.h12
-rw-r--r--lib/dfsan/dfsan_custom.cc833
-rw-r--r--lib/dfsan/done_abilist.txt255
-rw-r--r--lib/dfsan/libc_ubuntu1204_abilist.txt3685
-rw-r--r--lib/dfsan/libc_ubuntu1404_abilist.txt3433
-rw-r--r--lib/dfsan/lit_tests/CMakeLists.txt21
-rw-r--r--lib/dfsan/lit_tests/basic.c21
-rw-r--r--lib/dfsan/lit_tests/custom.c154
-rw-r--r--lib/dfsan/lit_tests/flags.c24
-rw-r--r--lib/dfsan/lit_tests/fncall.c26
-rw-r--r--lib/dfsan/lit_tests/lit.cfg69
-rw-r--r--lib/dfsan/lit_tests/lit.site.cfg.in5
-rw-r--r--lib/dfsan/lit_tests/propagate.c47
-rwxr-xr-xlib/dfsan/scripts/build-libc-list.py36
-rwxr-xr-xlib/dfsan/scripts/check_custom_wrappers.sh50
-rw-r--r--lib/divdc3.c60
-rw-r--r--lib/divdf3.c184
-rw-r--r--lib/divdi3.c31
-rw-r--r--lib/divmoddi4.c27
-rw-r--r--lib/divmodsi4.c30
-rw-r--r--lib/divsc3.c60
-rw-r--r--lib/divsf3.c168
-rw-r--r--lib/divsi3.c39
-rw-r--r--lib/divti3.c35
-rw-r--r--lib/divxc3.c63
-rw-r--r--lib/enable_execute_stack.c59
-rw-r--r--lib/eprintf.c34
-rw-r--r--lib/extendsfdf2.c137
-rw-r--r--lib/ffsti2.c37
-rw-r--r--lib/fixdfdi.c45
-rw-r--r--lib/fixdfsi.c49
-rw-r--r--lib/fixdfti.c45
-rw-r--r--lib/fixsfti.c45
-rw-r--r--lib/fixunsdfti.c47
-rw-r--r--lib/fixunssfti.c47
-rw-r--r--lib/fixunsxfdi.c44
-rw-r--r--lib/fixunsxfsi.c44
-rw-r--r--lib/fixunsxfti.c49
-rw-r--r--lib/fixxfdi.c44
-rw-r--r--lib/fixxfti.c47
-rw-r--r--lib/floatdixf.c46
-rw-r--r--lib/floatsidf.c52
-rw-r--r--lib/floatsisf.c58
-rw-r--r--lib/floattidf.c85
-rw-r--r--lib/floattisf.c84
-rw-r--r--lib/floattixf.c86
-rw-r--r--lib/floatundidf.c107
-rw-r--r--lib/floatundixf.c42
-rw-r--r--lib/floatunsidf.c41
-rw-r--r--lib/floatunsisf.c49
-rw-r--r--lib/floatuntidf.c82
-rw-r--r--lib/floatuntisf.c81
-rw-r--r--lib/floatuntixf.c83
-rw-r--r--lib/fp_lib.h144
-rw-r--r--lib/gcc_personality_v0.c247
-rw-r--r--lib/i386/Makefile.mk20
-rw-r--r--lib/i386/ashldi3.S56
-rw-r--r--lib/i386/ashrdi3.S67
-rw-r--r--lib/i386/divdi3.S161
-rw-r--r--lib/i386/floatdidf.S35
-rw-r--r--lib/i386/floatdisf.S31
-rw-r--r--lib/i386/floatdixf.S29
-rw-r--r--lib/i386/floatundidf.S46
-rw-r--r--lib/i386/floatundisf.S99
-rw-r--r--lib/i386/floatundixf.S37
-rw-r--r--lib/i386/lshrdi3.S57
-rw-r--r--lib/i386/moddi3.S166
-rw-r--r--lib/i386/muldi3.S29
-rw-r--r--lib/i386/udivdi3.S114
-rw-r--r--lib/i386/umoddi3.S125
-rw-r--r--lib/int_endianness.h111
-rw-r--r--lib/int_lib.h46
-rw-r--r--lib/int_types.h140
-rw-r--r--lib/int_util.h29
-rw-r--r--lib/interception/CMakeLists.txt5
-rw-r--r--lib/interception/interception.h31
-rw-r--r--lib/interception/interception_linux.cc6
-rw-r--r--lib/interception/interception_linux.h20
-rw-r--r--lib/interception/interception_type_test.cc12
-rw-r--r--lib/interception/interception_win.cc185
-rw-r--r--lib/interception/interception_win.h32
-rw-r--r--lib/lit.common.cfg62
-rw-r--r--lib/lit.common.configured.in27
-rw-r--r--lib/lit.common.unit.configured.in23
-rw-r--r--lib/lsan/CMakeLists.txt27
-rw-r--r--lib/lsan/lit_tests/AsanConfig/lit.cfg32
-rw-r--r--lib/lsan/lit_tests/AsanConfig/lit.site.cfg.in8
-rw-r--r--lib/lsan/lit_tests/CMakeLists.txt37
-rw-r--r--lib/lsan/lit_tests/LsanConfig/lit.cfg30
-rw-r--r--lib/lsan/lit_tests/LsanConfig/lit.site.cfg.in8
-rw-r--r--lib/lsan/lit_tests/TestCases/SharedLibs/huge_tls_lib_so.cc12
-rw-r--r--lib/lsan/lit_tests/TestCases/SharedLibs/lit.local.cfg4
-rw-r--r--lib/lsan/lit_tests/TestCases/cleanup_in_tsd_destructor.cc45
-rw-r--r--lib/lsan/lit_tests/TestCases/disabler.cc23
-rw-r--r--lib/lsan/lit_tests/TestCases/disabler_in_tsd_destructor.cc38
-rw-r--r--lib/lsan/lit_tests/TestCases/do_leak_check_override.cc36
-rw-r--r--lib/lsan/lit_tests/TestCases/fork.cc24
-rw-r--r--lib/lsan/lit_tests/TestCases/fork_threaded.cc43
-rw-r--r--lib/lsan/lit_tests/TestCases/high_allocator_contention.cc48
-rw-r--r--lib/lsan/lit_tests/TestCases/ignore_object.cc30
-rw-r--r--lib/lsan/lit_tests/TestCases/ignore_object_errors.cc22
-rw-r--r--lib/lsan/lit_tests/TestCases/large_allocation_leak.cc18
-rw-r--r--lib/lsan/lit_tests/TestCases/leak_check_at_exit.cc19
-rw-r--r--lib/lsan/lit_tests/TestCases/link_turned_off.cc24
-rw-r--r--lib/lsan/lit_tests/TestCases/pointer_to_self.cc18
-rw-r--r--lib/lsan/lit_tests/TestCases/stale_stack_leak.cc42
-rw-r--r--lib/lsan/lit_tests/TestCases/suppressions_default.cc29
-rw-r--r--lib/lsan/lit_tests/TestCases/suppressions_file.cc29
-rw-r--r--lib/lsan/lit_tests/TestCases/suppressions_file.cc.supp1
-rw-r--r--lib/lsan/lit_tests/TestCases/swapcontext.cc42
-rw-r--r--lib/lsan/lit_tests/TestCases/use_after_return.cc23
-rw-r--r--lib/lsan/lit_tests/TestCases/use_globals_initialized.cc21
-rw-r--r--lib/lsan/lit_tests/TestCases/use_globals_uninitialized.cc21
-rw-r--r--lib/lsan/lit_tests/TestCases/use_registers.cc51
-rw-r--r--lib/lsan/lit_tests/TestCases/use_stacks.cc20
-rw-r--r--lib/lsan/lit_tests/TestCases/use_stacks_threaded.cc36
-rw-r--r--lib/lsan/lit_tests/TestCases/use_tls_dynamic.cc33
-rw-r--r--lib/lsan/lit_tests/TestCases/use_tls_pthread_specific_dynamic.cc37
-rw-r--r--lib/lsan/lit_tests/TestCases/use_tls_pthread_specific_static.cc31
-rw-r--r--lib/lsan/lit_tests/TestCases/use_tls_static.cc21
-rw-r--r--lib/lsan/lit_tests/TestCases/use_unaligned.cc23
-rw-r--r--lib/lsan/lit_tests/Unit/lit.site.cfg.in12
-rw-r--r--lib/lsan/lit_tests/lit.common.cfg43
-rw-r--r--lib/lsan/lsan.cc26
-rw-r--r--lib/lsan/lsan.h20
-rw-r--r--lib/lsan/lsan_allocator.cc50
-rw-r--r--lib/lsan/lsan_allocator.h2
-rw-r--r--lib/lsan/lsan_common.cc430
-rw-r--r--lib/lsan/lsan_common.h49
-rw-r--r--lib/lsan/lsan_common_linux.cc32
-rw-r--r--lib/lsan/lsan_interceptors.cc50
-rw-r--r--lib/lsan/lsan_preinit.cc6
-rw-r--r--lib/lsan/tests/CMakeLists.txt58
-rw-r--r--lib/lsan/tests/lsan_dummy_unittest.cc22
-rw-r--r--lib/lsan/tests/lsan_testlib.cc25
-rw-r--r--lib/lshrti3.c45
-rw-r--r--lib/moddi3.c32
-rw-r--r--lib/modsi3.c25
-rw-r--r--lib/modti3.c36
-rw-r--r--lib/msan/CMakeLists.txt42
-rw-r--r--lib/msan/lit_tests/CMakeLists.txt31
-rw-r--r--lib/msan/lit_tests/Linux/glob.cc27
-rw-r--r--lib/msan/lit_tests/Linux/glob_altdirfunc.cc78
-rw-r--r--lib/msan/lit_tests/Linux/glob_nomatch.cc21
-rw-r--r--lib/msan/lit_tests/Linux/syscalls.cc100
-rw-r--r--lib/msan/lit_tests/Linux/tcgetattr.cc21
-rw-r--r--lib/msan/lit_tests/SharedLibs/dso-origin-so.cc14
-rw-r--r--lib/msan/lit_tests/SharedLibs/dso-origin.h4
-rw-r--r--lib/msan/lit_tests/SharedLibs/lit.local.cfg4
-rw-r--r--lib/msan/lit_tests/Unit/lit.site.cfg.in13
-rw-r--r--lib/msan/lit_tests/allocator_returns_null.cc81
-rw-r--r--lib/msan/lit_tests/backtrace.cc26
-rw-r--r--lib/msan/lit_tests/c-strdup.c17
-rw-r--r--lib/msan/lit_tests/cxa_atexit.cc28
-rw-r--r--lib/msan/lit_tests/dlerror.cc14
-rw-r--r--lib/msan/lit_tests/dso-origin.cc25
-rw-r--r--lib/msan/lit_tests/errno.cc17
-rw-r--r--lib/msan/lit_tests/getaddrinfo-positive.cc23
-rw-r--r--lib/msan/lit_tests/getaddrinfo.cc24
-rw-r--r--lib/msan/lit_tests/getline.cc30
-rw-r--r--lib/msan/lit_tests/getline_test_data2
-rw-r--r--lib/msan/lit_tests/heap-origin.cc31
-rw-r--r--lib/msan/lit_tests/initgroups.cc11
-rw-r--r--lib/msan/lit_tests/inline.cc20
-rw-r--r--lib/msan/lit_tests/insertvalue_origin.cc35
-rw-r--r--lib/msan/lit_tests/ioctl.cc20
-rw-r--r--lib/msan/lit_tests/ioctl_custom.cc33
-rw-r--r--lib/msan/lit_tests/keep-going-dso.cc33
-rw-r--r--lib/msan/lit_tests/keep-going.cc34
-rw-r--r--lib/msan/lit_tests/lit.cfg74
-rw-r--r--lib/msan/lit_tests/lit.site.cfg.in5
-rw-r--r--lib/msan/lit_tests/malloc_hook.cc36
-rw-r--r--lib/msan/lit_tests/no_sanitize_memory.cc34
-rw-r--r--lib/msan/lit_tests/no_sanitize_memory_prop.cc33
-rw-r--r--lib/msan/lit_tests/poison_in_free.cc16
-rw-r--r--lib/msan/lit_tests/ptrace.cc36
-rw-r--r--lib/msan/lit_tests/readdir64.cc27
-rw-r--r--lib/msan/lit_tests/scandir.cc56
-rw-r--r--lib/msan/lit_tests/scandir_null.cc34
-rw-r--r--lib/msan/lit_tests/select.cc22
-rw-r--r--lib/msan/lit_tests/setlocale.cc13
-rw-r--r--lib/msan/lit_tests/signal_stress_test.cc71
-rw-r--r--lib/msan/lit_tests/sigwait.cc30
-rw-r--r--lib/msan/lit_tests/sigwaitinfo.cc31
-rw-r--r--lib/msan/lit_tests/stack-origin.cc31
-rw-r--r--lib/msan/lit_tests/sync_lock_set_and_test.cc7
-rw-r--r--lib/msan/lit_tests/tzset.cc16
-rw-r--r--lib/msan/lit_tests/unaligned_read_origin.cc16
-rw-r--r--lib/msan/lit_tests/use-after-free.cc34
-rw-r--r--lib/msan/lit_tests/vector_cvt.cc23
-rw-r--r--lib/msan/lit_tests/wrap_indirect_calls.cc64
-rw-r--r--lib/msan/lit_tests/wrap_indirect_calls/caller.cc51
-rw-r--r--lib/msan/lit_tests/wrap_indirect_calls/lit.local.cfg3
-rw-r--r--lib/msan/lit_tests/wrap_indirect_calls/one.cc3
-rw-r--r--lib/msan/lit_tests/wrap_indirect_calls/two.cc11
-rw-r--r--lib/msan/lit_tests/wrap_indirect_calls/wrapper.cc11
-rw-r--r--lib/msan/msan.cc394
-rw-r--r--lib/msan/msan.h156
-rw-r--r--lib/msan/msan_allocator.cc154
-rw-r--r--lib/msan/msan_allocator.h33
-rw-r--r--lib/msan/msan_chained_origin_depot.cc126
-rw-r--r--lib/msan/msan_chained_origin_depot.h29
-rw-r--r--lib/msan/msan_flags.h5
-rw-r--r--lib/msan/msan_interceptors.cc1030
-rw-r--r--lib/msan/msan_interface_internal.h75
-rw-r--r--lib/msan/msan_linux.cc156
-rw-r--r--lib/msan/msan_new_delete.cc13
-rw-r--r--lib/msan/msan_origin.h169
-rw-r--r--lib/msan/msan_report.cc221
-rw-r--r--lib/msan/msan_thread.cc93
-rw-r--r--lib/msan/msan_thread.h71
-rw-r--r--lib/msan/tests/CMakeLists.txt137
-rw-r--r--lib/msan/tests/msan_loadable.cc18
-rw-r--r--lib/msan/tests/msan_test.cc1322
-rw-r--r--lib/msan/tests/msandr_test_so.cc38
-rw-r--r--lib/msan/tests/msandr_test_so.h24
-rw-r--r--lib/msandr/CMakeLists.txt26
-rw-r--r--lib/msandr/README.txt40
-rw-r--r--lib/msandr/msandr.cc871
-rw-r--r--lib/muldc3.c73
-rw-r--r--lib/muldf3.c122
-rw-r--r--lib/mulodi4.c58
-rw-r--r--lib/mulosi4.c58
-rw-r--r--lib/muloti4.c62
-rw-r--r--lib/mulsc3.c73
-rw-r--r--lib/mulsf3.c112
-rw-r--r--lib/multi3.c58
-rw-r--r--lib/mulvdi3.c56
-rw-r--r--lib/mulvsi3.c56
-rw-r--r--lib/mulvti3.c60
-rw-r--r--lib/mulxc3.c77
-rw-r--r--lib/negdf2.c21
-rw-r--r--lib/negdi2.c26
-rw-r--r--lib/negti2.c30
-rw-r--r--lib/negvti2.c32
-rw-r--r--lib/paritydi2.c27
-rw-r--r--lib/parityti2.c31
-rw-r--r--lib/popcountti2.c44
-rw-r--r--lib/powitf2.c38
-rw-r--r--lib/powixf2.c38
-rw-r--r--lib/ppc/DD.h46
-rw-r--r--lib/ppc/Makefile.mk20
-rw-r--r--lib/ppc/fixtfdi.c104
-rw-r--r--lib/ppc/gcc_qadd.c76
-rw-r--r--lib/ppc/gcc_qsub.c76
-rw-r--r--lib/profile/CMakeLists.txt20
-rw-r--r--lib/profile/GCDAProfiling.c127
-rw-r--r--lib/profile/InstrProfiling.c48
-rw-r--r--lib/profile/InstrProfiling.h92
-rw-r--r--lib/profile/InstrProfilingBuffer.c104
-rw-r--r--lib/profile/InstrProfilingFile.c194
-rw-r--r--lib/profile/InstrProfilingInternal.h40
-rw-r--r--lib/profile/InstrProfilingPlatformDarwin.c43
-rw-r--r--lib/profile/InstrProfilingPlatformOther.c74
-rw-r--r--lib/profile/InstrProfilingRuntime.cc30
-rw-r--r--lib/profile/Makefile.mk4
-rw-r--r--lib/sanitizer_common/CMakeLists.txt90
-rw-r--r--lib/sanitizer_common/sanitizer_addrhashmap.h342
-rw-r--r--lib/sanitizer_common/sanitizer_allocator.cc4
-rw-r--r--lib/sanitizer_common/sanitizer_allocator.h128
-rw-r--r--lib/sanitizer_common/sanitizer_allocator_interface.h38
-rw-r--r--lib/sanitizer_common/sanitizer_allocator_internal.h32
-rw-r--r--lib/sanitizer_common/sanitizer_asm.h40
-rw-r--r--lib/sanitizer_common/sanitizer_atomic.h3
-rw-r--r--lib/sanitizer_common/sanitizer_atomic_clang.h71
-rw-r--r--lib/sanitizer_common/sanitizer_atomic_clang_other.h97
-rw-r--r--lib/sanitizer_common/sanitizer_atomic_clang_x86.h116
-rw-r--r--lib/sanitizer_common/sanitizer_atomic_msvc.h100
-rw-r--r--lib/sanitizer_common/sanitizer_bitvector.h351
-rw-r--r--lib/sanitizer_common/sanitizer_bvgraph.h165
-rw-r--r--lib/sanitizer_common/sanitizer_common.cc187
-rw-r--r--lib/sanitizer_common/sanitizer_common.h156
-rw-r--r--lib/sanitizer_common/sanitizer_common_interceptors.inc2604
-rw-r--r--lib/sanitizer_common/sanitizer_common_interceptors_format.inc559
-rwxr-xr-xlib/sanitizer_common/sanitizer_common_interceptors_ioctl.inc60
-rw-r--r--lib/sanitizer_common/sanitizer_common_interceptors_scanf.inc311
-rw-r--r--lib/sanitizer_common/sanitizer_common_libcdep.cc54
-rw-r--r--lib/sanitizer_common/sanitizer_common_syscalls.inc163
-rw-r--r--lib/sanitizer_common/sanitizer_coverage.cc113
-rw-r--r--lib/sanitizer_common/sanitizer_coverage_libcdep.cc581
-rw-r--r--lib/sanitizer_common/sanitizer_coverage_mapping_libcdep.cc125
-rw-r--r--lib/sanitizer_common/sanitizer_deadlock_detector.h412
-rw-r--r--lib/sanitizer_common/sanitizer_deadlock_detector1.cc189
-rw-r--r--lib/sanitizer_common/sanitizer_deadlock_detector2.cc428
-rw-r--r--lib/sanitizer_common/sanitizer_deadlock_detector_interface.h93
-rw-r--r--lib/sanitizer_common/sanitizer_flags.cc212
-rw-r--r--lib/sanitizer_common/sanitizer_flags.h59
-rw-r--r--lib/sanitizer_common/sanitizer_freebsd.h137
-rw-r--r--lib/sanitizer_common/sanitizer_internal_defs.h53
-rw-r--r--lib/sanitizer_common/sanitizer_libc.cc34
-rw-r--r--lib/sanitizer_common/sanitizer_libc.h8
-rw-r--r--lib/sanitizer_common/sanitizer_libignore.cc17
-rw-r--r--lib/sanitizer_common/sanitizer_linux.cc642
-rw-r--r--lib/sanitizer_common/sanitizer_linux.h27
-rw-r--r--lib/sanitizer_common/sanitizer_linux_libcdep.cc295
-rw-r--r--lib/sanitizer_common/sanitizer_list.h17
-rw-r--r--lib/sanitizer_common/sanitizer_mac.cc258
-rw-r--r--lib/sanitizer_common/sanitizer_mac.h37
-rw-r--r--lib/sanitizer_common/sanitizer_mutex.h84
-rw-r--r--lib/sanitizer_common/sanitizer_persistent_allocator.cc19
-rw-r--r--lib/sanitizer_common/sanitizer_persistent_allocator.h71
-rw-r--r--lib/sanitizer_common/sanitizer_platform.h73
-rw-r--r--lib/sanitizer_common/sanitizer_platform_interceptors.h276
-rw-r--r--lib/sanitizer_common/sanitizer_platform_limits_linux.cc26
-rw-r--r--lib/sanitizer_common/sanitizer_platform_limits_posix.cc448
-rw-r--r--lib/sanitizer_common/sanitizer_platform_limits_posix.h508
-rw-r--r--lib/sanitizer_common/sanitizer_posix.cc154
-rw-r--r--lib/sanitizer_common/sanitizer_posix_libcdep.cc133
-rw-r--r--lib/sanitizer_common/sanitizer_printf.cc31
-rw-r--r--lib/sanitizer_common/sanitizer_procmaps.h77
-rw-r--r--lib/sanitizer_common/sanitizer_procmaps_common.cc178
-rw-r--r--lib/sanitizer_common/sanitizer_procmaps_freebsd.cc88
-rw-r--r--lib/sanitizer_common/sanitizer_procmaps_linux.cc90
-rw-r--r--lib/sanitizer_common/sanitizer_procmaps_mac.cc190
-rw-r--r--lib/sanitizer_common/sanitizer_report_decorator.h12
-rw-r--r--lib/sanitizer_common/sanitizer_stackdepot.cc272
-rw-r--r--lib/sanitizer_common/sanitizer_stackdepot.h33
-rw-r--r--lib/sanitizer_common/sanitizer_stackdepotbase.h176
-rw-r--r--lib/sanitizer_common/sanitizer_stacktrace.cc177
-rw-r--r--lib/sanitizer_common/sanitizer_stacktrace.h65
-rw-r--r--lib/sanitizer_common/sanitizer_stacktrace_libcdep.cc57
-rw-r--r--lib/sanitizer_common/sanitizer_stacktrace_printer.cc132
-rw-r--r--lib/sanitizer_common/sanitizer_stacktrace_printer.h62
-rw-r--r--lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc73
-rw-r--r--lib/sanitizer_common/sanitizer_suppressions.cc45
-rw-r--r--lib/sanitizer_common/sanitizer_suppressions.h16
-rw-r--r--lib/sanitizer_common/sanitizer_symbolizer.cc57
-rw-r--r--lib/sanitizer_common/sanitizer_symbolizer.h90
-rw-r--r--lib/sanitizer_common/sanitizer_symbolizer_libbacktrace.cc211
-rw-r--r--lib/sanitizer_common/sanitizer_symbolizer_libbacktrace.h50
-rw-r--r--lib/sanitizer_common/sanitizer_symbolizer_libcdep.cc21
-rw-r--r--lib/sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc613
-rw-r--r--lib/sanitizer_common/sanitizer_symbolizer_win.cc101
-rw-r--r--lib/sanitizer_common/sanitizer_syscall_generic.inc12
-rw-r--r--lib/sanitizer_common/sanitizer_syscall_linux_x86_64.inc2
-rw-r--r--lib/sanitizer_common/sanitizer_thread_registry.cc20
-rw-r--r--lib/sanitizer_common/sanitizer_thread_registry.h8
-rw-r--r--lib/sanitizer_common/sanitizer_tls_get_addr.cc131
-rw-r--r--lib/sanitizer_common/sanitizer_tls_get_addr.h60
-rw-r--r--lib/sanitizer_common/sanitizer_unwind_posix_libcdep.cc158
-rw-r--r--lib/sanitizer_common/sanitizer_win.cc179
-rwxr-xr-xlib/sanitizer_common/scripts/check_lint.sh63
-rwxr-xr-xlib/sanitizer_common/scripts/cpplint.py4
-rwxr-xr-xlib/sanitizer_common/scripts/gen_dynamic_list.py14
-rwxr-xr-xlib/sanitizer_common/scripts/litlint.py72
-rwxr-xr-xlib/sanitizer_common/scripts/litlint_test.py23
-rwxr-xr-xlib/sanitizer_common/scripts/sancov.py105
-rw-r--r--lib/sanitizer_common/tests/CMakeLists.txt109
-rw-r--r--lib/sanitizer_common/tests/lit.site.cfg.in14
-rw-r--r--lib/sanitizer_common/tests/sanitizer_allocator_test.cc81
-rw-r--r--lib/sanitizer_common/tests/sanitizer_allocator_testlib.cc4
-rw-r--r--lib/sanitizer_common/tests/sanitizer_atomic_test.cc73
-rw-r--r--lib/sanitizer_common/tests/sanitizer_bitvector_test.cc176
-rw-r--r--lib/sanitizer_common/tests/sanitizer_bvgraph_test.cc339
-rw-r--r--lib/sanitizer_common/tests/sanitizer_common_test.cc46
-rw-r--r--lib/sanitizer_common/tests/sanitizer_deadlock_detector_test.cc496
-rw-r--r--lib/sanitizer_common/tests/sanitizer_flags_test.cc12
-rw-r--r--lib/sanitizer_common/tests/sanitizer_format_interceptor_test.cc259
-rw-r--r--lib/sanitizer_common/tests/sanitizer_ioctl_test.cc26
-rw-r--r--lib/sanitizer_common/tests/sanitizer_libc_test.cc3
-rw-r--r--lib/sanitizer_common/tests/sanitizer_mutex_test.cc15
-rw-r--r--lib/sanitizer_common/tests/sanitizer_posix_test.cc18
-rw-r--r--lib/sanitizer_common/tests/sanitizer_printf_test.cc23
-rw-r--r--lib/sanitizer_common/tests/sanitizer_procmaps_test.cc37
-rw-r--r--lib/sanitizer_common/tests/sanitizer_pthread_wrappers.h66
-rw-r--r--lib/sanitizer_common/tests/sanitizer_scanf_interceptor_test.cc178
-rw-r--r--lib/sanitizer_common/tests/sanitizer_stackdepot_test.cc87
-rw-r--r--lib/sanitizer_common/tests/sanitizer_stacktrace_printer_test.cc122
-rw-r--r--lib/sanitizer_common/tests/sanitizer_stacktrace_test.cc65
-rw-r--r--lib/sanitizer_common/tests/sanitizer_suppressions_test.cc26
-rw-r--r--lib/sanitizer_common/tests/sanitizer_test_config.h30
-rw-r--r--lib/sanitizer_common/tests/sanitizer_test_utils.h63
-rw-r--r--lib/sanitizer_common/tests/sanitizer_thread_registry_test.cc13
-rw-r--r--lib/subdf3.c29
-rw-r--r--lib/subsf3.c28
-rw-r--r--lib/subvdi3.c36
-rw-r--r--lib/subvsi3.c36
-rw-r--r--lib/subvti3.c40
-rw-r--r--lib/trampoline_setup.c47
-rw-r--r--lib/truncdfsf2.c168
-rw-r--r--lib/tsan/CMakeLists.txt74
-rw-r--r--lib/tsan/Makefile.old9
-rwxr-xr-xlib/tsan/check_analyze.sh20
-rwxr-xr-xlib/tsan/check_cmake.sh8
-rwxr-xr-xlib/tsan/check_memcpy.sh31
-rw-r--r--lib/tsan/dd/CMakeLists.txt41
-rw-r--r--lib/tsan/dd/dd_interceptors.cc333
-rw-r--r--lib/tsan/dd/dd_rtl.cc151
-rw-r--r--lib/tsan/dd/dd_rtl.h67
-rw-r--r--lib/tsan/go/build.bat4
-rwxr-xr-xlib/tsan/go/buildgo.sh48
-rw-r--r--lib/tsan/go/test.c20
-rw-r--r--lib/tsan/go/tsan_go.cc138
-rw-r--r--lib/tsan/lit_tests/CMakeLists.txt35
-rw-r--r--lib/tsan/lit_tests/Helpers/blacklist.txt1
-rw-r--r--lib/tsan/lit_tests/Helpers/lit.local.cfg2
-rw-r--r--lib/tsan/lit_tests/SharedLibs/lit.local.cfg4
-rw-r--r--lib/tsan/lit_tests/SharedLibs/load_shared_lib-so.cc22
-rw-r--r--lib/tsan/lit_tests/Unit/lit.cfg23
-rw-r--r--lib/tsan/lit_tests/Unit/lit.site.cfg.in8
-rw-r--r--lib/tsan/lit_tests/aligned_vs_unaligned_race.cc34
-rw-r--r--lib/tsan/lit_tests/allocator_returns_null.cc64
-rw-r--r--lib/tsan/lit_tests/atomic_free.cc19
-rw-r--r--lib/tsan/lit_tests/atomic_free2.cc19
-rw-r--r--lib/tsan/lit_tests/atomic_norace.cc61
-rw-r--r--lib/tsan/lit_tests/atomic_race.cc80
-rw-r--r--lib/tsan/lit_tests/atomic_stack.cc29
-rw-r--r--lib/tsan/lit_tests/benign_race.cc39
-rw-r--r--lib/tsan/lit_tests/blacklist.cc31
-rw-r--r--lib/tsan/lit_tests/cond.c53
-rw-r--r--lib/tsan/lit_tests/cond_race.cc36
-rw-r--r--lib/tsan/lit_tests/cond_version.c44
-rw-r--r--lib/tsan/lit_tests/deep_stack1.cc44
-rw-r--r--lib/tsan/lit_tests/default_options.cc32
-rw-r--r--lib/tsan/lit_tests/fd_close_norace.cc33
-rw-r--r--lib/tsan/lit_tests/fd_close_norace2.cc30
-rw-r--r--lib/tsan/lit_tests/fd_dup_norace.cc34
-rw-r--r--lib/tsan/lit_tests/fd_location.cc33
-rw-r--r--lib/tsan/lit_tests/fd_pipe_norace.cc33
-rw-r--r--lib/tsan/lit_tests/fd_pipe_race.cc37
-rw-r--r--lib/tsan/lit_tests/fd_socket_connect_norace.cc45
-rw-r--r--lib/tsan/lit_tests/fd_socket_norace.cc52
-rw-r--r--lib/tsan/lit_tests/fd_socketpair_norace.cc37
-rw-r--r--lib/tsan/lit_tests/fd_stdout_race.cc41
-rw-r--r--lib/tsan/lit_tests/free_race.c49
-rw-r--r--lib/tsan/lit_tests/free_race2.c26
-rw-r--r--lib/tsan/lit_tests/global_race.cc42
-rw-r--r--lib/tsan/lit_tests/halt_on_error.cc25
-rw-r--r--lib/tsan/lit_tests/heap_race.cc20
-rw-r--r--lib/tsan/lit_tests/ignore_free.cc35
-rw-r--r--lib/tsan/lit_tests/ignore_lib0.cc30
-rw-r--r--lib/tsan/lit_tests/ignore_lib1.cc42
-rw-r--r--lib/tsan/lit_tests/ignore_lib2.cc33
-rw-r--r--lib/tsan/lit_tests/ignore_lib3.cc33
-rw-r--r--lib/tsan/lit_tests/ignore_malloc.cc38
-rw-r--r--lib/tsan/lit_tests/ignore_race.cc31
-rw-r--r--lib/tsan/lit_tests/ignore_sync.cc30
-rw-r--r--lib/tsan/lit_tests/inlined_memcpy_race.cc55
-rw-r--r--lib/tsan/lit_tests/java.h20
-rw-r--r--lib/tsan/lit_tests/java_alloc.cc32
-rw-r--r--lib/tsan/lit_tests/java_lock.cc35
-rw-r--r--lib/tsan/lit_tests/java_lock_move.cc40
-rw-r--r--lib/tsan/lit_tests/java_lock_rec.cc54
-rw-r--r--lib/tsan/lit_tests/java_lock_rec_race.cc48
-rw-r--r--lib/tsan/lit_tests/java_race.cc23
-rw-r--r--lib/tsan/lit_tests/java_race_move.cc31
-rw-r--r--lib/tsan/lit_tests/java_rwlock.cc35
-rw-r--r--lib/tsan/lit_tests/lit.cfg81
-rw-r--r--lib/tsan/lit_tests/lit.site.cfg.in8
-rw-r--r--lib/tsan/lit_tests/load_shared_lib.cc44
-rw-r--r--lib/tsan/lit_tests/longjmp.cc22
-rw-r--r--lib/tsan/lit_tests/longjmp2.cc24
-rw-r--r--lib/tsan/lit_tests/longjmp3.cc48
-rw-r--r--lib/tsan/lit_tests/longjmp4.cc51
-rw-r--r--lib/tsan/lit_tests/malloc_overflow.cc23
-rw-r--r--lib/tsan/lit_tests/malloc_stack.cc25
-rw-r--r--lib/tsan/lit_tests/memcpy_race.cc42
-rw-r--r--lib/tsan/lit_tests/mop_with_offset.cc36
-rw-r--r--lib/tsan/lit_tests/mop_with_offset2.cc36
-rw-r--r--lib/tsan/lit_tests/mutex_destroy_locked.cc22
-rw-r--r--lib/tsan/lit_tests/mutex_robust.cc36
-rw-r--r--lib/tsan/lit_tests/mutex_robust2.cc41
-rw-r--r--lib/tsan/lit_tests/mutexset1.cc37
-rw-r--r--lib/tsan/lit_tests/mutexset2.cc37
-rw-r--r--lib/tsan/lit_tests/mutexset3.cc45
-rw-r--r--lib/tsan/lit_tests/mutexset4.cc45
-rw-r--r--lib/tsan/lit_tests/mutexset5.cc46
-rw-r--r--lib/tsan/lit_tests/mutexset6.cc53
-rw-r--r--lib/tsan/lit_tests/mutexset7.cc39
-rw-r--r--lib/tsan/lit_tests/mutexset8.cc39
-rw-r--r--lib/tsan/lit_tests/oob_race.cc24
-rw-r--r--lib/tsan/lit_tests/race_on_barrier.c31
-rw-r--r--lib/tsan/lit_tests/race_on_barrier2.c31
-rw-r--r--lib/tsan/lit_tests/race_on_heap.cc47
-rw-r--r--lib/tsan/lit_tests/race_on_mutex.c42
-rw-r--r--lib/tsan/lit_tests/race_on_mutex2.c24
-rw-r--r--lib/tsan/lit_tests/race_on_read.cc32
-rw-r--r--lib/tsan/lit_tests/race_on_write.cc39
-rw-r--r--lib/tsan/lit_tests/race_with_finished_thread.cc43
-rw-r--r--lib/tsan/lit_tests/signal_errno.cc43
-rw-r--r--lib/tsan/lit_tests/signal_malloc.cc26
-rw-r--r--lib/tsan/lit_tests/sigsuspend.cc38
-rw-r--r--lib/tsan/lit_tests/simple_race.c26
-rw-r--r--lib/tsan/lit_tests/simple_race.cc26
-rw-r--r--lib/tsan/lit_tests/simple_stack.c66
-rw-r--r--lib/tsan/lit_tests/simple_stack2.cc53
-rw-r--r--lib/tsan/lit_tests/sleep_sync.cc30
-rw-r--r--lib/tsan/lit_tests/sleep_sync2.cc22
-rw-r--r--lib/tsan/lit_tests/stack_race.cc20
-rw-r--r--lib/tsan/lit_tests/stack_race2.cc28
-rw-r--r--lib/tsan/lit_tests/static_init1.cc27
-rw-r--r--lib/tsan/lit_tests/static_init2.cc33
-rw-r--r--lib/tsan/lit_tests/static_init3.cc47
-rw-r--r--lib/tsan/lit_tests/static_init4.cc37
-rw-r--r--lib/tsan/lit_tests/static_init5.cc42
-rw-r--r--lib/tsan/lit_tests/static_init6.cc42
-rw-r--r--lib/tsan/lit_tests/suppress_same_address.cc27
-rw-r--r--lib/tsan/lit_tests/suppress_same_stacks.cc27
-rw-r--r--lib/tsan/lit_tests/suppressions_global.cc29
-rw-r--r--lib/tsan/lit_tests/suppressions_race.cc31
-rw-r--r--lib/tsan/lit_tests/suppressions_race2.cc31
-rwxr-xr-xlib/tsan/lit_tests/test_output.sh58
-rw-r--r--lib/tsan/lit_tests/thread_end_with_ignore.cc19
-rw-r--r--lib/tsan/lit_tests/thread_end_with_ignore2.cc9
-rw-r--r--lib/tsan/lit_tests/thread_leak.c17
-rw-r--r--lib/tsan/lit_tests/thread_leak2.c17
-rw-r--r--lib/tsan/lit_tests/thread_leak3.c17
-rw-r--r--lib/tsan/lit_tests/thread_leak4.c18
-rw-r--r--lib/tsan/lit_tests/thread_leak5.c19
-rw-r--r--lib/tsan/lit_tests/thread_name.cc38
-rw-r--r--lib/tsan/lit_tests/thread_name2.cc32
-rw-r--r--lib/tsan/lit_tests/tiny_race.c21
-rw-r--r--lib/tsan/lit_tests/tls_race.cc19
-rw-r--r--lib/tsan/lit_tests/tls_race2.cc28
-rw-r--r--lib/tsan/lit_tests/tsan-vs-gvn.cc38
-rw-r--r--lib/tsan/lit_tests/unaligned_norace.cc84
-rw-r--r--lib/tsan/lit_tests/unaligned_race.cc135
-rw-r--r--lib/tsan/lit_tests/user_fopen.cc34
-rw-r--r--lib/tsan/lit_tests/user_malloc.cc27
-rw-r--r--lib/tsan/lit_tests/virtual_inheritance_compile_bug.cc15
-rw-r--r--lib/tsan/lit_tests/vptr_benign_race.cc51
-rw-r--r--lib/tsan/lit_tests/vptr_harmful_race.cc51
-rw-r--r--lib/tsan/lit_tests/vptr_harmful_race2.cc51
-rw-r--r--lib/tsan/lit_tests/write_in_reader_lock.cc35
-rw-r--r--lib/tsan/rtl/Makefile.old4
-rw-r--r--lib/tsan/rtl/tsan_clock.cc454
-rw-r--r--lib/tsan/rtl/tsan_clock.h95
-rw-r--r--lib/tsan/rtl/tsan_defs.h30
-rw-r--r--lib/tsan/rtl/tsan_dense_alloc.h137
-rw-r--r--lib/tsan/rtl/tsan_fd.cc26
-rw-r--r--lib/tsan/rtl/tsan_fd.h4
-rw-r--r--lib/tsan/rtl/tsan_flags.cc82
-rw-r--r--lib/tsan/rtl/tsan_flags.h24
-rw-r--r--lib/tsan/rtl/tsan_ignoreset.cc47
-rw-r--r--lib/tsan/rtl/tsan_ignoreset.h38
-rw-r--r--lib/tsan/rtl/tsan_interceptors.cc1140
-rw-r--r--lib/tsan/rtl/tsan_interface_ann.cc35
-rw-r--r--lib/tsan/rtl/tsan_interface_atomic.cc470
-rw-r--r--lib/tsan/rtl/tsan_interface_atomic.h205
-rw-r--r--lib/tsan/rtl/tsan_interface_java.cc166
-rw-r--r--lib/tsan/rtl/tsan_interface_java.h7
-rw-r--r--lib/tsan/rtl/tsan_md5.cc14
-rw-r--r--lib/tsan/rtl/tsan_mman.cc174
-rw-r--r--lib/tsan/rtl/tsan_mman.h10
-rw-r--r--lib/tsan/rtl/tsan_mutex.cc53
-rw-r--r--lib/tsan/rtl/tsan_mutex.h10
-rw-r--r--lib/tsan/rtl/tsan_mutexset.h11
-rw-r--r--lib/tsan/rtl/tsan_platform.h320
-rw-r--r--lib/tsan/rtl/tsan_platform_linux.cc336
-rw-r--r--lib/tsan/rtl/tsan_platform_mac.cc57
-rw-r--r--lib/tsan/rtl/tsan_platform_windows.cc12
-rw-r--r--lib/tsan/rtl/tsan_report.cc182
-rw-r--r--lib/tsan/rtl/tsan_report.h40
-rw-r--r--lib/tsan/rtl/tsan_rtl.cc522
-rw-r--r--lib/tsan/rtl/tsan_rtl.h322
-rw-r--r--lib/tsan/rtl/tsan_rtl_amd64.S271
-rw-r--r--lib/tsan/rtl/tsan_rtl_mutex.cc297
-rw-r--r--lib/tsan/rtl/tsan_rtl_report.cc454
-rw-r--r--lib/tsan/rtl/tsan_rtl_thread.cc123
-rw-r--r--lib/tsan/rtl/tsan_stack_trace.cc46
-rw-r--r--lib/tsan/rtl/tsan_stack_trace.h39
-rw-r--r--lib/tsan/rtl/tsan_stat.cc354
-rw-r--r--lib/tsan/rtl/tsan_stat.h355
-rw-r--r--lib/tsan/rtl/tsan_suppressions.cc100
-rw-r--r--lib/tsan/rtl/tsan_suppressions.h1
-rw-r--r--lib/tsan/rtl/tsan_symbolize.cc104
-rw-r--r--lib/tsan/rtl/tsan_symbolize.h8
-rw-r--r--lib/tsan/rtl/tsan_symbolize_addr2line_linux.cc193
-rw-r--r--lib/tsan/rtl/tsan_sync.cc419
-rw-r--r--lib/tsan/rtl/tsan_sync.h100
-rw-r--r--lib/tsan/rtl/tsan_trace.h22
-rw-r--r--lib/tsan/rtl/tsan_update_shadow_word_inl.h13
-rw-r--r--lib/tsan/rtl/tsan_vector.h22
-rw-r--r--lib/tsan/tests/CMakeLists.txt22
-rw-r--r--lib/tsan/tests/rtl/tsan_test.cc3
-rw-r--r--lib/tsan/tests/rtl/tsan_test_util.h2
-rw-r--r--lib/tsan/tests/rtl/tsan_test_util_linux.cc11
-rw-r--r--lib/tsan/tests/unit/tsan_clock_test.cc453
-rw-r--r--lib/tsan/tests/unit/tsan_dense_alloc_test.cc55
-rw-r--r--lib/tsan/tests/unit/tsan_flags_test.cc146
-rw-r--r--lib/tsan/tests/unit/tsan_mman_test.cc78
-rw-r--r--lib/tsan/tests/unit/tsan_stack_test.cc104
-rw-r--r--lib/tsan/tests/unit/tsan_sync_test.cc140
-rw-r--r--lib/tsan/tests/unit/tsan_vector_test.cc2
-rw-r--r--lib/ubsan/CMakeLists.txt27
-rw-r--r--lib/ubsan/lit_tests/AsanConfig/lit.cfg25
-rw-r--r--lib/ubsan/lit_tests/AsanConfig/lit.site.cfg.in9
-rw-r--r--lib/ubsan/lit_tests/CMakeLists.txt23
-rw-r--r--lib/ubsan/lit_tests/TestCases/Float/cast-overflow.cpp99
-rw-r--r--lib/ubsan/lit_tests/TestCases/Integer/add-overflow.cpp32
-rw-r--r--lib/ubsan/lit_tests/TestCases/Integer/div-overflow.cpp10
-rw-r--r--lib/ubsan/lit_tests/TestCases/Integer/div-zero.cpp15
-rw-r--r--lib/ubsan/lit_tests/TestCases/Integer/incdec-overflow.cpp16
-rw-r--r--lib/ubsan/lit_tests/TestCases/Integer/mul-overflow.cpp14
-rw-r--r--lib/ubsan/lit_tests/TestCases/Integer/negate-overflow.cpp12
-rw-r--r--lib/ubsan/lit_tests/TestCases/Integer/no-recover.cpp22
-rw-r--r--lib/ubsan/lit_tests/TestCases/Integer/shift.cpp37
-rw-r--r--lib/ubsan/lit_tests/TestCases/Integer/sub-overflow.cpp31
-rw-r--r--lib/ubsan/lit_tests/TestCases/Integer/uadd-overflow.cpp32
-rw-r--r--lib/ubsan/lit_tests/TestCases/Integer/uincdec-overflow.cpp16
-rw-r--r--lib/ubsan/lit_tests/TestCases/Integer/umul-overflow.cpp19
-rw-r--r--lib/ubsan/lit_tests/TestCases/Integer/usub-overflow.cpp31
-rw-r--r--lib/ubsan/lit_tests/TestCases/Misc/bool.cpp10
-rw-r--r--lib/ubsan/lit_tests/TestCases/Misc/bounds.cpp15
-rw-r--r--lib/ubsan/lit_tests/TestCases/Misc/deduplication.cpp25
-rw-r--r--lib/ubsan/lit_tests/TestCases/Misc/enum.cpp17
-rw-r--r--lib/ubsan/lit_tests/TestCases/Misc/missing_return.cpp9
-rw-r--r--lib/ubsan/lit_tests/TestCases/Misc/unreachable.cpp6
-rw-r--r--lib/ubsan/lit_tests/TestCases/Misc/vla.c11
-rw-r--r--lib/ubsan/lit_tests/TestCases/TypeCheck/Function/function.cpp17
-rw-r--r--lib/ubsan/lit_tests/TestCases/TypeCheck/misaligned.cpp73
-rw-r--r--lib/ubsan/lit_tests/TestCases/TypeCheck/null.cpp38
-rw-r--r--lib/ubsan/lit_tests/TestCases/TypeCheck/vptr.cpp117
-rw-r--r--lib/ubsan/lit_tests/UbsanConfig/lit.cfg23
-rw-r--r--lib/ubsan/lit_tests/UbsanConfig/lit.site.cfg.in8
-rw-r--r--lib/ubsan/lit_tests/lit.common.cfg31
-rw-r--r--lib/ubsan/ubsan_diag.cc151
-rw-r--r--lib/ubsan/ubsan_diag.h29
-rw-r--r--lib/ubsan/ubsan_flags.cc63
-rw-r--r--lib/ubsan/ubsan_flags.h40
-rw-r--r--lib/ubsan/ubsan_handlers.cc311
-rw-r--r--lib/ubsan/ubsan_handlers.h29
-rw-r--r--lib/ubsan/ubsan_handlers_cxx.cc36
-rw-r--r--lib/ubsan/ubsan_init.cc61
-rw-r--r--lib/ubsan/ubsan_init.h24
-rw-r--r--lib/ubsan/ubsan_type_hash.cc47
-rw-r--r--lib/ubsan/ubsan_value.cc1
-rw-r--r--lib/ubsan/ubsan_value.h10
-rw-r--r--lib/ucmpti2.c42
-rw-r--r--lib/udivdi3.c25
-rw-r--r--lib/udivmoddi4.c251
-rw-r--r--lib/udivmodsi4.c30
-rw-r--r--lib/udivmodti4.c256
-rw-r--r--lib/udivti3.c29
-rw-r--r--lib/umoddi3.c27
-rw-r--r--lib/umodsi3.c25
-rw-r--r--lib/umodti3.c31
-rw-r--r--lib/x86_64/Makefile.mk20
-rw-r--r--lib/x86_64/floatundidf.S43
-rw-r--r--lib/x86_64/floatundisf.S33
-rw-r--r--lib/x86_64/floatundixf.S62
-rw-r--r--make/config.mk6
-rw-r--r--make/platform/clang_darwin.mk186
-rw-r--r--make/platform/clang_darwin_embedded.mk250
-rw-r--r--make/platform/clang_linux.mk64
-rw-r--r--make/platform/clang_macho_embedded.mk288
-rw-r--r--make/platform/clang_macho_embedded_test_input.c (renamed from lib/asan/lit_tests/TestCases/Linux/glob_test_root/aa)0
-rw-r--r--make/platform/darwin_bni.mk10
-rw-r--r--make/platform/darwin_fat.mk2
-rw-r--r--make/subdir.mk11
-rw-r--r--test/BlocksRuntime/block-static.c (renamed from BlocksRuntime/tests/block-static.c)0
-rw-r--r--test/BlocksRuntime/blockimport.c (renamed from BlocksRuntime/tests/blockimport.c)0
-rw-r--r--test/BlocksRuntime/byrefaccess.c (renamed from BlocksRuntime/tests/byrefaccess.c)0
-rw-r--r--test/BlocksRuntime/byrefcopy.c (renamed from BlocksRuntime/tests/byrefcopy.c)0
-rw-r--r--test/BlocksRuntime/byrefcopycopy.c (renamed from BlocksRuntime/tests/byrefcopycopy.c)0
-rw-r--r--test/BlocksRuntime/byrefcopyinner.c (renamed from BlocksRuntime/tests/byrefcopyinner.c)0
-rw-r--r--test/BlocksRuntime/byrefcopyint.c (renamed from BlocksRuntime/tests/byrefcopyint.c)0
-rw-r--r--test/BlocksRuntime/byrefcopystack.c (renamed from BlocksRuntime/tests/byrefcopystack.c)0
-rw-r--r--test/BlocksRuntime/byrefsanity.c (renamed from BlocksRuntime/tests/byrefsanity.c)0
-rw-r--r--test/BlocksRuntime/byrefstruct.c (renamed from BlocksRuntime/tests/byrefstruct.c)0
-rw-r--r--test/BlocksRuntime/c99.c (renamed from BlocksRuntime/tests/c99.c)0
-rw-r--r--test/BlocksRuntime/cast.c (renamed from BlocksRuntime/tests/cast.c)0
-rw-r--r--test/BlocksRuntime/constassign.c (renamed from BlocksRuntime/tests/constassign.c)0
-rw-r--r--test/BlocksRuntime/copy-block-literal-rdar6439600.c (renamed from BlocksRuntime/tests/copy-block-literal-rdar6439600.c)0
-rw-r--r--test/BlocksRuntime/copyconstructor.C (renamed from BlocksRuntime/tests/copyconstructor.C)0
-rw-r--r--test/BlocksRuntime/copynull.c (renamed from BlocksRuntime/tests/copynull.c)0
-rw-r--r--test/BlocksRuntime/dispatch_async.c (renamed from BlocksRuntime/tests/dispatch_async.c)0
-rw-r--r--test/BlocksRuntime/dispatch_call_Block_with_release.c (renamed from BlocksRuntime/tests/dispatch_call_Block_with_release.c)0
-rw-r--r--test/BlocksRuntime/fail.c (renamed from BlocksRuntime/tests/fail.c)0
-rw-r--r--test/BlocksRuntime/flagsisa.c (renamed from BlocksRuntime/tests/flagsisa.c)0
-rw-r--r--test/BlocksRuntime/globalexpression.c (renamed from BlocksRuntime/tests/globalexpression.c)0
-rw-r--r--test/BlocksRuntime/goto.c (renamed from BlocksRuntime/tests/goto.c)0
-rw-r--r--test/BlocksRuntime/hasdescriptor.c (renamed from BlocksRuntime/tests/hasdescriptor.c)0
-rw-r--r--test/BlocksRuntime/josh.C (renamed from BlocksRuntime/tests/josh.C)0
-rw-r--r--test/BlocksRuntime/k-and-r.c (renamed from BlocksRuntime/tests/k-and-r.c)0
-rw-r--r--test/BlocksRuntime/large-struct.c (renamed from BlocksRuntime/tests/large-struct.c)0
-rw-r--r--test/BlocksRuntime/localisglobal.c (renamed from BlocksRuntime/tests/localisglobal.c)0
-rw-r--r--test/BlocksRuntime/macro.c (renamed from BlocksRuntime/tests/macro.c)0
-rw-r--r--test/BlocksRuntime/makefile (renamed from BlocksRuntime/tests/makefile)0
-rw-r--r--test/BlocksRuntime/modglobal.c (renamed from BlocksRuntime/tests/modglobal.c)0
-rw-r--r--test/BlocksRuntime/nestedimport.c (renamed from BlocksRuntime/tests/nestedimport.c)0
-rw-r--r--test/BlocksRuntime/nullblockisa.c (renamed from BlocksRuntime/tests/nullblockisa.c)0
-rw-r--r--test/BlocksRuntime/objectRRGC.c (renamed from BlocksRuntime/tests/objectRRGC.c)0
-rw-r--r--test/BlocksRuntime/objectassign.c (renamed from BlocksRuntime/tests/objectassign.c)0
-rw-r--r--test/BlocksRuntime/orbars.c (renamed from BlocksRuntime/tests/orbars.c)0
-rw-r--r--test/BlocksRuntime/rdar6396238.c (renamed from BlocksRuntime/tests/rdar6396238.c)0
-rw-r--r--test/BlocksRuntime/rdar6405500.c (renamed from BlocksRuntime/tests/rdar6405500.c)0
-rw-r--r--test/BlocksRuntime/rdar6414583.c (renamed from BlocksRuntime/tests/rdar6414583.c)0
-rw-r--r--test/BlocksRuntime/recursive-block.c (renamed from BlocksRuntime/tests/recursive-block.c)0
-rw-r--r--test/BlocksRuntime/recursive-test.c (renamed from BlocksRuntime/tests/recursive-test.c)0
-rw-r--r--test/BlocksRuntime/recursiveassign.c (renamed from BlocksRuntime/tests/recursiveassign.c)0
-rw-r--r--test/BlocksRuntime/reference.C (renamed from BlocksRuntime/tests/reference.C)0
-rw-r--r--test/BlocksRuntime/rettypepromotion.c (renamed from BlocksRuntime/tests/rettypepromotion.c)0
-rw-r--r--test/BlocksRuntime/returnfunctionptr.c (renamed from BlocksRuntime/tests/returnfunctionptr.c)0
-rw-r--r--test/BlocksRuntime/shorthandexpression.c (renamed from BlocksRuntime/tests/shorthandexpression.c)0
-rw-r--r--test/BlocksRuntime/sizeof.c (renamed from BlocksRuntime/tests/sizeof.c)0
-rw-r--r--test/BlocksRuntime/small-struct.c (renamed from BlocksRuntime/tests/small-struct.c)0
-rw-r--r--test/BlocksRuntime/structmember.c (renamed from BlocksRuntime/tests/structmember.c)0
-rw-r--r--test/BlocksRuntime/testfilerunner.h (renamed from BlocksRuntime/tests/testfilerunner.h)0
-rw-r--r--test/BlocksRuntime/testfilerunner.m (renamed from BlocksRuntime/tests/testfilerunner.m)0
-rw-r--r--test/BlocksRuntime/varargs-bad-assign.c (renamed from BlocksRuntime/tests/varargs-bad-assign.c)0
-rw-r--r--test/BlocksRuntime/varargs.c (renamed from BlocksRuntime/tests/varargs.c)0
-rw-r--r--test/BlocksRuntime/variadic.c (renamed from BlocksRuntime/tests/variadic.c)0
-rw-r--r--test/BlocksRuntime/voidarg.c (renamed from BlocksRuntime/tests/voidarg.c)0
-rw-r--r--test/CMakeLists.txt65
-rw-r--r--test/Unit/absvti2_test.c84
-rw-r--r--test/Unit/addvti3_test.c94
-rw-r--r--test/Unit/ashlti3_test.c175
-rw-r--r--test/Unit/ashrti3_test.c173
-rw-r--r--test/Unit/clzti2_test.c90
-rw-r--r--test/Unit/cmpti2_test.c112
-rw-r--r--test/Unit/ctzti2_test.c84
-rw-r--r--test/Unit/divti3_test.c78
-rw-r--r--test/Unit/ffsti2_test.c83
-rw-r--r--test/Unit/fixdfti_test.c123
-rw-r--r--test/Unit/fixsfti_test.c111
-rw-r--r--test/Unit/fixunsdfti_test.c128
-rw-r--r--test/Unit/fixunssfti_test.c120
-rw-r--r--test/Unit/fixunsxfti_test.c141
-rw-r--r--test/Unit/fixxfti_test.c146
-rw-r--r--test/Unit/floattidf_test.c180
-rw-r--r--test/Unit/floattisf_test.c136
-rw-r--r--test/Unit/floattixf_test.c212
-rw-r--r--test/Unit/floatuntidf_test.c174
-rw-r--r--test/Unit/floatuntisf_test.c165
-rw-r--r--test/Unit/floatuntixf_test.c219
-rw-r--r--test/Unit/lshrti3_test.c173
-rw-r--r--test/Unit/modti3_test.c95
-rw-r--r--test/Unit/muloti4_test.c280
-rw-r--r--test/Unit/multi3_test.c134
-rw-r--r--test/Unit/mulvti3_test.c260
-rw-r--r--test/Unit/negti2_test.c127
-rw-r--r--test/Unit/negvti2_test.c109
-rw-r--r--test/Unit/parityti2_test.c64
-rw-r--r--test/Unit/popcountti2_test.c82
-rw-r--r--test/Unit/subvti3_test.c80
-rw-r--r--test/Unit/ucmpti2_test.c116
-rw-r--r--test/Unit/udivmodti4_test.c65353
-rw-r--r--test/Unit/udivti3_test.c67
-rw-r--r--test/Unit/umodti3_test.c65
-rw-r--r--test/asan/CMakeLists.txt156
-rw-r--r--test/asan/TestCases/Android/coverage-android.cc67
-rw-r--r--test/asan/TestCases/Android/lit.local.cfg11
-rw-r--r--test/asan/TestCases/Darwin/asan_gen_prefixes.cc14
-rw-r--r--test/asan/TestCases/Darwin/cstring_literals_regtest.mm23
-rw-r--r--test/asan/TestCases/Darwin/dyld_insert_libraries_reexec.cc33
-rw-r--r--test/asan/TestCases/Darwin/interception-in-shared-lib-test.cc32
-rw-r--r--test/asan/TestCases/Darwin/interface_symbols_darwin.c39
-rw-r--r--test/asan/TestCases/Darwin/lit.local.cfg (renamed from lib/asan/lit_tests/TestCases/Darwin/lit.local.cfg)0
-rw-r--r--test/asan/TestCases/Darwin/malloc_set_zone_name-mprotect.cc51
-rw-r--r--test/asan/TestCases/Darwin/malloc_zone-protected.cc20
-rw-r--r--test/asan/TestCases/Darwin/objc-odr.mm23
-rw-r--r--test/asan/TestCases/Darwin/reexec-insert-libraries-env.cc25
-rw-r--r--test/asan/TestCases/Darwin/suppressions-darwin.cc34
-rw-r--r--test/asan/TestCases/Darwin/unset-insert-libraries-on-exec.cc25
-rw-r--r--test/asan/TestCases/Helpers/blacklist-extra.cc (renamed from lib/asan/lit_tests/TestCases/Helpers/blacklist-extra.cc)0
-rw-r--r--test/asan/TestCases/Helpers/echo-env.cc (renamed from lib/asan/lit_tests/TestCases/Helpers/echo-env.cc)0
-rw-r--r--test/asan/TestCases/Helpers/init-order-atexit-extra.cc (renamed from lib/asan/lit_tests/TestCases/Helpers/init-order-atexit-extra.cc)0
-rw-r--r--test/asan/TestCases/Helpers/init-order-pthread-create-extra.cc (renamed from lib/asan/lit_tests/TestCases/Helpers/init-order-pthread-create-extra.cc)0
-rw-r--r--test/asan/TestCases/Helpers/initialization-blacklist-extra.cc (renamed from lib/asan/lit_tests/TestCases/Helpers/initialization-blacklist-extra.cc)0
-rw-r--r--test/asan/TestCases/Helpers/initialization-blacklist-extra2.cc (renamed from lib/asan/lit_tests/TestCases/Helpers/initialization-blacklist-extra2.cc)0
-rw-r--r--test/asan/TestCases/Helpers/initialization-blacklist.txt (renamed from lib/asan/lit_tests/TestCases/Helpers/initialization-blacklist.txt)0
-rw-r--r--test/asan/TestCases/Helpers/initialization-bug-extra.cc (renamed from lib/asan/lit_tests/TestCases/Helpers/initialization-bug-extra.cc)0
-rw-r--r--test/asan/TestCases/Helpers/initialization-bug-extra2.cc (renamed from lib/asan/lit_tests/TestCases/Helpers/initialization-bug-extra2.cc)0
-rw-r--r--test/asan/TestCases/Helpers/initialization-constexpr-extra.cc (renamed from lib/asan/lit_tests/TestCases/Helpers/initialization-constexpr-extra.cc)0
-rw-r--r--test/asan/TestCases/Helpers/initialization-nobug-extra.cc (renamed from lib/asan/lit_tests/TestCases/Helpers/initialization-nobug-extra.cc)0
-rw-r--r--test/asan/TestCases/Helpers/lit.local.cfg (renamed from lib/asan/lit_tests/TestCases/Helpers/lit.local.cfg)0
-rw-r--r--test/asan/TestCases/Linux/asan-asm-stacktrace-test.cc33
-rw-r--r--test/asan/TestCases/Linux/asan_dlopen_test.cc15
-rw-r--r--test/asan/TestCases/Linux/asan_prelink_test.cc29
-rw-r--r--test/asan/TestCases/Linux/asan_preload_test-1.cc30
-rw-r--r--test/asan/TestCases/Linux/asan_preload_test-2.cc24
-rw-r--r--test/asan/TestCases/Linux/asan_rt_confict_test-1.cc13
-rw-r--r--test/asan/TestCases/Linux/asan_rt_confict_test-2.cc25
-rw-r--r--test/asan/TestCases/Linux/clang_gcc_abi.cc44
-rw-r--r--test/asan/TestCases/Linux/clone_test.cc45
-rw-r--r--test/asan/TestCases/Linux/coverage-and-lsan.cc20
-rw-r--r--test/asan/TestCases/Linux/coverage-caller-callee-total-count.cc41
-rw-r--r--test/asan/TestCases/Linux/coverage-caller-callee.cc74
-rw-r--r--test/asan/TestCases/Linux/coverage-direct-large.cc45
-rw-r--r--test/asan/TestCases/Linux/coverage-direct.cc44
-rw-r--r--test/asan/TestCases/Linux/coverage-disabled.cc18
-rw-r--r--test/asan/TestCases/Linux/coverage-fork-direct.cc38
-rw-r--r--test/asan/TestCases/Linux/coverage-fork.cc38
-rw-r--r--test/asan/TestCases/Linux/coverage-levels.cc20
-rw-r--r--test/asan/TestCases/Linux/coverage-maybe-open-file.cc31
-rw-r--r--test/asan/TestCases/Linux/coverage-module-unloaded.cc56
-rw-r--r--test/asan/TestCases/Linux/coverage-sandboxing.cc85
-rw-r--r--test/asan/TestCases/Linux/coverage-tracing.cc22
-rw-r--r--test/asan/TestCases/Linux/coverage.cc71
-rw-r--r--test/asan/TestCases/Linux/function-sections-are-bad.cc41
-rw-r--r--test/asan/TestCases/Linux/globals-gc-sections.cc13
-rw-r--r--test/asan/TestCases/Linux/initialization-bug-any-order.cc36
-rw-r--r--test/asan/TestCases/Linux/interception-in-shared-lib-test.cc32
-rw-r--r--test/asan/TestCases/Linux/interception_malloc_test.cc23
-rw-r--r--test/asan/TestCases/Linux/interception_readdir_r_test.cc62
-rw-r--r--test/asan/TestCases/Linux/interception_test.cc22
-rw-r--r--test/asan/TestCases/Linux/interface_symbols_linux.c35
-rw-r--r--test/asan/TestCases/Linux/kernel-area.cc24
-rw-r--r--test/asan/TestCases/Linux/leak.cc16
-rw-r--r--test/asan/TestCases/Linux/lit.local.cfg (renamed from lib/asan/lit_tests/TestCases/Linux/lit.local.cfg)0
-rw-r--r--test/asan/TestCases/Linux/malloc-in-qsort.cc56
-rw-r--r--test/asan/TestCases/Linux/malloc_delete_mismatch.cc33
-rw-r--r--test/asan/TestCases/Linux/odr-violation.cc42
-rw-r--r--test/asan/TestCases/Linux/overflow-in-qsort.cc51
-rw-r--r--test/asan/TestCases/Linux/preinit_test.cc33
-rw-r--r--test/asan/TestCases/Linux/ptrace.cc56
-rw-r--r--test/asan/TestCases/Linux/rlimit_mmap_test.cc16
-rw-r--r--test/asan/TestCases/Linux/shmctl.cc27
-rw-r--r--test/asan/TestCases/Linux/sized_delete_test.cc93
-rw-r--r--test/asan/TestCases/Linux/stack-trace-dlclose.cc45
-rw-r--r--test/asan/TestCases/Linux/stress_dtls.c116
-rw-r--r--test/asan/TestCases/Linux/swapcontext_test.cc90
-rw-r--r--test/asan/TestCases/Linux/syscalls.cc25
-rw-r--r--test/asan/TestCases/Linux/uar_signals.cc70
-rw-r--r--test/asan/TestCases/Linux/unpoison_tls.cc35
-rw-r--r--test/asan/TestCases/Posix/allow_user_segv.cc59
-rw-r--r--test/asan/TestCases/Posix/asan-symbolize-sanity-test.cc63
-rw-r--r--test/asan/TestCases/Posix/asprintf.cc20
-rw-r--r--test/asan/TestCases/Posix/assign_large_valloc_to_global.cc9
-rw-r--r--test/asan/TestCases/Posix/glob.cc33
-rw-r--r--test/asan/TestCases/Posix/glob_test_root/aa (renamed from lib/msan/lit_tests/Linux/glob_test_root/aa)0
-rw-r--r--test/asan/TestCases/Posix/glob_test_root/ab (renamed from lib/asan/lit_tests/TestCases/Linux/glob_test_root/ab)0
-rw-r--r--test/asan/TestCases/Posix/glob_test_root/ba (renamed from lib/asan/lit_tests/TestCases/Linux/glob_test_root/ba)0
-rw-r--r--test/asan/TestCases/Posix/init-order-dlopen.cc72
-rw-r--r--test/asan/TestCases/Posix/ioctl.cc24
-rw-r--r--test/asan/TestCases/Posix/large_allocator_unpoisons_on_free.cc39
-rw-r--r--test/asan/TestCases/Posix/lit.local.cfg9
-rw-r--r--test/asan/TestCases/Posix/new_array_cookie_test.cc24
-rw-r--r--test/asan/TestCases/Posix/new_array_cookie_uaf_test.cc38
-rw-r--r--test/asan/TestCases/Posix/new_array_cookie_with_new_from_class.cc38
-rw-r--r--test/asan/TestCases/Posix/readv.cc32
-rw-r--r--test/asan/TestCases/Posix/shared-lib-test.cc57
-rw-r--r--test/asan/TestCases/Posix/start-deactivated.cc69
-rw-r--r--test/asan/TestCases/Posix/strerror_r_test.cc14
-rw-r--r--test/asan/TestCases/Posix/tsd_dtor_leak.cc39
-rw-r--r--test/asan/TestCases/Posix/wait.cc45
-rw-r--r--test/asan/TestCases/Posix/wait4.cc43
-rw-r--r--test/asan/TestCases/Posix/waitid.cc28
-rw-r--r--test/asan/TestCases/Windows/aligned_mallocs.cc29
-rw-r--r--test/asan/TestCases/Windows/allocators_sanity.cc37
-rw-r--r--test/asan/TestCases/Windows/beginthreadex.cc21
-rw-r--r--test/asan/TestCases/Windows/bitfield.cc21
-rw-r--r--test/asan/TestCases/Windows/bitfield_uaf.cc34
-rw-r--r--test/asan/TestCases/Windows/calloc_left_oob.cc17
-rw-r--r--test/asan/TestCases/Windows/calloc_right_oob.cc17
-rw-r--r--test/asan/TestCases/Windows/calloc_uaf.cc20
-rw-r--r--test/asan/TestCases/Windows/crt_initializers.cc31
-rw-r--r--test/asan/TestCases/Windows/demangled_names.cc50
-rw-r--r--test/asan/TestCases/Windows/dll_aligned_mallocs.cc34
-rw-r--r--test/asan/TestCases/Windows/dll_allocators_sanity.cc39
-rw-r--r--test/asan/TestCases/Windows/dll_and_lib.cc19
-rw-r--r--test/asan/TestCases/Windows/dll_cerr.cc23
-rw-r--r--test/asan/TestCases/Windows/dll_host.cc49
-rw-r--r--test/asan/TestCases/Windows/dll_intercept_memchr.cc21
-rw-r--r--test/asan/TestCases/Windows/dll_intercept_memcpy.cc32
-rw-r--r--test/asan/TestCases/Windows/dll_intercept_memcpy_indirect.cc34
-rw-r--r--test/asan/TestCases/Windows/dll_intercept_memset.cc32
-rw-r--r--test/asan/TestCases/Windows/dll_intercept_strlen.cc28
-rw-r--r--test/asan/TestCases/Windows/dll_large_function.cc12
-rw-r--r--test/asan/TestCases/Windows/dll_malloc_left_oob.cc23
-rw-r--r--test/asan/TestCases/Windows/dll_malloc_uaf.cc28
-rw-r--r--test/asan/TestCases/Windows/dll_noreturn.cc28
-rw-r--r--test/asan/TestCases/Windows/dll_null_deref.cc18
-rw-r--r--test/asan/TestCases/Windows/dll_operator_array_new_left_oob.cc25
-rw-r--r--test/asan/TestCases/Windows/dll_operator_array_new_with_dtor_left_oob.cc33
-rw-r--r--test/asan/TestCases/Windows/dll_poison_unpoison.cc35
-rw-r--r--test/asan/TestCases/Windows/dll_seh.cc60
-rw-r--r--test/asan/TestCases/Windows/dll_stack_use_after_return.cc28
-rw-r--r--test/asan/TestCases/Windows/dll_thread_stack_array_left_oob.cc36
-rw-r--r--test/asan/TestCases/Windows/double_free.cc21
-rw-r--r--test/asan/TestCases/Windows/double_operator_delete.cc25
-rw-r--r--test/asan/TestCases/Windows/global_const_string.cc12
-rw-r--r--test/asan/TestCases/Windows/global_const_string_oob.cc20
-rw-r--r--test/asan/TestCases/Windows/hello_world.cc9
-rw-r--r--test/asan/TestCases/Windows/intercept_memcpy.cc31
-rw-r--r--test/asan/TestCases/Windows/intercept_strdup.cc27
-rw-r--r--test/asan/TestCases/Windows/intercept_strlen.cc27
-rw-r--r--test/asan/TestCases/Windows/lit.local.cfg14
-rw-r--r--test/asan/TestCases/Windows/longjmp.cc26
-rw-r--r--test/asan/TestCases/Windows/malloc_left_oob.cc17
-rw-r--r--test/asan/TestCases/Windows/malloc_right_oob.cc17
-rw-r--r--test/asan/TestCases/Windows/malloc_uaf.cc20
-rw-r--r--test/asan/TestCases/Windows/null_deref.cc15
-rw-r--r--test/asan/TestCases/Windows/null_deref_multiple_dlls.cc40
-rw-r--r--test/asan/TestCases/Windows/operator_array_new_left_oob.cc17
-rw-r--r--test/asan/TestCases/Windows/operator_array_new_right_oob.cc18
-rw-r--r--test/asan/TestCases/Windows/operator_array_new_uaf.cc24
-rw-r--r--test/asan/TestCases/Windows/operator_array_new_with_dtor_left_oob.cc25
-rw-r--r--test/asan/TestCases/Windows/operator_delete_wrong_argument.cc12
-rw-r--r--test/asan/TestCases/Windows/operator_new_left_oob.cc17
-rw-r--r--test/asan/TestCases/Windows/operator_new_right_oob.cc17
-rw-r--r--test/asan/TestCases/Windows/operator_new_uaf.cc22
-rw-r--r--test/asan/TestCases/Windows/realloc_left_oob.cc17
-rw-r--r--test/asan/TestCases/Windows/realloc_right_oob.cc17
-rw-r--r--test/asan/TestCases/Windows/realloc_uaf.cc20
-rw-r--r--test/asan/TestCases/Windows/report_after_syminitialize.cc19
-rw-r--r--test/asan/TestCases/Windows/seh.cc56
-rw-r--r--test/asan/TestCases/Windows/stack_array_left_oob.cc16
-rw-r--r--test/asan/TestCases/Windows/stack_array_right_oob.cc16
-rw-r--r--test/asan/TestCases/Windows/stack_array_sanity.cc12
-rw-r--r--test/asan/TestCases/Windows/stack_use_after_return.cc22
-rw-r--r--test/asan/TestCases/Windows/thread_simple.cc26
-rw-r--r--test/asan/TestCases/Windows/thread_stack_array_left_oob.cc27
-rw-r--r--test/asan/TestCases/Windows/thread_stack_array_right_oob.cc27
-rw-r--r--test/asan/TestCases/Windows/thread_stack_reuse.cc37
-rw-r--r--test/asan/TestCases/Windows/thread_stress.cc30
-rw-r--r--test/asan/TestCases/Windows/throw_catch.cc73
-rw-r--r--test/asan/TestCases/Windows/use_after_realloc.cc23
-rw-r--r--test/asan/TestCases/Windows/use_after_return_linkage.cc12
-rw-r--r--test/asan/TestCases/Windows/windows_h.cc7
-rw-r--r--test/asan/TestCases/Windows/wrong_downcast_on_heap.cc26
-rw-r--r--test/asan/TestCases/Windows/wrong_downcast_on_stack.cc26
-rw-r--r--test/asan/TestCases/alloca_big_alignment.cc18
-rw-r--r--test/asan/TestCases/alloca_detect_custom_size_.cc23
-rw-r--r--test/asan/TestCases/alloca_instruments_all_paddings.cc23
-rw-r--r--test/asan/TestCases/alloca_overflow_partial.cc18
-rw-r--r--test/asan/TestCases/alloca_overflow_right.cc18
-rw-r--r--test/asan/TestCases/alloca_safe_access.cc17
-rw-r--r--test/asan/TestCases/alloca_underflow_left.cc18
-rw-r--r--test/asan/TestCases/allocator_returns_null.cc83
-rw-r--r--test/asan/TestCases/asan_and_llvm_coverage_test.cc10
-rw-r--r--test/asan/TestCases/atexit_stats.cc18
-rw-r--r--test/asan/TestCases/blacklist.cc38
-rw-r--r--test/asan/TestCases/contiguous_container.cc75
-rw-r--r--test/asan/TestCases/contiguous_container_crash.cc41
-rw-r--r--test/asan/TestCases/current_allocated_bytes.cc44
-rw-r--r--test/asan/TestCases/debug_locate.cc80
-rw-r--r--test/asan/TestCases/debug_mapping.cc24
-rw-r--r--test/asan/TestCases/debug_ppc64_mapping.cc37
-rw-r--r--test/asan/TestCases/debug_report.cc48
-rw-r--r--test/asan/TestCases/debug_stacks.cc62
-rw-r--r--test/asan/TestCases/deep_call_stack.cc25
-rw-r--r--test/asan/TestCases/deep_stack_uaf.cc36
-rw-r--r--test/asan/TestCases/deep_tail_call.cc20
-rw-r--r--test/asan/TestCases/deep_thread_stack.cc58
-rw-r--r--test/asan/TestCases/default_blacklist.cc6
-rw-r--r--test/asan/TestCases/default_options.cc18
-rw-r--r--test/asan/TestCases/describe_address.cc19
-rw-r--r--test/asan/TestCases/dlclose-test.cc99
-rw-r--r--test/asan/TestCases/double-free.cc27
-rw-r--r--test/asan/TestCases/dump_instruction_bytes.cc20
-rw-r--r--test/asan/TestCases/force_inline_opt0.cc14
-rw-r--r--test/asan/TestCases/free_hook_realloc.cc37
-rw-r--r--test/asan/TestCases/frexp_interceptor.cc16
-rw-r--r--test/asan/TestCases/gc-test.cc50
-rw-r--r--test/asan/TestCases/global-demangle.cc17
-rw-r--r--test/asan/TestCases/global-location.cc38
-rw-r--r--test/asan/TestCases/global-overflow.cc21
-rw-r--r--test/asan/TestCases/heap-overflow-large.cc23
-rw-r--r--test/asan/TestCases/heap-overflow.cc24
-rw-r--r--test/asan/TestCases/heavy_uar_test.cc60
-rw-r--r--test/asan/TestCases/huge_negative_hea_oob.cc13
-rw-r--r--test/asan/TestCases/init-order-atexit.cc34
-rw-r--r--test/asan/TestCases/init-order-pthread-create.cc32
-rw-r--r--test/asan/TestCases/initialization-blacklist.cc29
-rw-r--r--test/asan/TestCases/initialization-bug.cc45
-rw-r--r--test/asan/TestCases/initialization-constexpr.cc27
-rw-r--r--test/asan/TestCases/initialization-nobug.cc48
-rw-r--r--test/asan/TestCases/inline.cc19
-rw-r--r--test/asan/TestCases/interception_failure_test.cc22
-rw-r--r--test/asan/TestCases/interface_test.cc10
-rw-r--r--test/asan/TestCases/intra-object-overflow.cc31
-rw-r--r--test/asan/TestCases/invalid-free.cc23
-rw-r--r--test/asan/TestCases/large_func_test.cc53
-rw-r--r--test/asan/TestCases/log-path_test.cc44
-rw-r--r--test/asan/TestCases/log_path_fork_test.cc.disabled22
-rw-r--r--test/asan/TestCases/longjmp.cc25
-rw-r--r--test/asan/TestCases/lsan_annotations.cc16
-rw-r--r--test/asan/TestCases/malloc_context_size.cc27
-rw-r--r--test/asan/TestCases/malloc_fill.cc22
-rw-r--r--test/asan/TestCases/max_redzone.cc26
-rw-r--r--test/asan/TestCases/memcmp_strict_test.cc15
-rw-r--r--test/asan/TestCases/memcmp_test.cc17
-rw-r--r--test/asan/TestCases/memset_test.cc71
-rw-r--r--test/asan/TestCases/mmap_limit_mb.cc33
-rw-r--r--test/asan/TestCases/no_asan_gen_globals.c11
-rw-r--r--test/asan/TestCases/null_deref.cc19
-rw-r--r--test/asan/TestCases/on_error_callback.cc19
-rw-r--r--test/asan/TestCases/partial_right.cc13
-rw-r--r--test/asan/TestCases/poison_partial.cc19
-rw-r--r--test/asan/TestCases/print_summary.cc14
-rw-r--r--test/asan/TestCases/printf-1.c25
-rw-r--r--test/asan/TestCases/printf-2.c27
-rw-r--r--test/asan/TestCases/printf-3.c22
-rw-r--r--test/asan/TestCases/printf-4.c23
-rw-r--r--test/asan/TestCases/printf-5.c25
-rw-r--r--test/asan/TestCases/sanity_check_pure_c.c21
-rw-r--r--test/asan/TestCases/sleep_before_dying.c10
-rw-r--r--test/asan/TestCases/stack-buffer-overflow-with-position.cc44
-rw-r--r--test/asan/TestCases/stack-buffer-overflow.cc16
-rw-r--r--test/asan/TestCases/stack-frame-demangle.cc22
-rw-r--r--test/asan/TestCases/stack-oob-frames.cc59
-rw-r--r--test/asan/TestCases/stack-overflow.cc114
-rw-r--r--test/asan/TestCases/stack-use-after-return.cc80
-rw-r--r--test/asan/TestCases/strdup_oob_test.cc20
-rw-r--r--test/asan/TestCases/strip_path_prefix.c12
-rw-r--r--test/asan/TestCases/strncpy-overflow.cc30
-rw-r--r--test/asan/TestCases/suppressions-function.cc29
-rw-r--r--test/asan/TestCases/suppressions-interceptor.cc24
-rw-r--r--test/asan/TestCases/suppressions-library.cc39
-rw-r--r--test/asan/TestCases/throw_call_test.cc52
-rw-r--r--test/asan/TestCases/throw_catch.cc64
-rw-r--r--test/asan/TestCases/throw_invoke_test.cc54
-rw-r--r--test/asan/TestCases/time_interceptor.cc22
-rw-r--r--test/asan/TestCases/uar_and_exceptions.cc43
-rw-r--r--test/asan/TestCases/unaligned_loads_and_stores.cc52
-rw-r--r--test/asan/TestCases/use-after-delete.cc31
-rw-r--r--test/asan/TestCases/use-after-free-right.cc36
-rw-r--r--test/asan/TestCases/use-after-free.cc36
-rw-r--r--test/asan/TestCases/use-after-poison.cc20
-rw-r--r--test/asan/TestCases/use-after-scope-dtor-order.cc26
-rw-r--r--test/asan/TestCases/use-after-scope-inlined.cc28
-rw-r--r--test/asan/TestCases/use-after-scope-nobug.cc15
-rw-r--r--test/asan/TestCases/use-after-scope-temp.cc29
-rw-r--r--test/asan/TestCases/use-after-scope.cc17
-rw-r--r--test/asan/TestCases/zero_page_pc.cc12
-rw-r--r--test/asan/Unit/lit.site.cfg.in24
-rw-r--r--test/asan/android_commands/android_common.py29
-rwxr-xr-xtest/asan/android_commands/android_compile.py36
-rwxr-xr-xtest/asan/android_commands/android_run.py34
-rw-r--r--test/asan/lit.cfg153
-rw-r--r--test/asan/lit.site.cfg.in19
-rw-r--r--test/builtins/Unit/absvdi2_test.c (renamed from test/Unit/absvdi2_test.c)0
-rw-r--r--test/builtins/Unit/absvsi2_test.c (renamed from test/Unit/absvsi2_test.c)0
-rw-r--r--test/builtins/Unit/absvti2_test.c84
-rw-r--r--test/builtins/Unit/adddf3vfp_test.c (renamed from test/Unit/adddf3vfp_test.c)0
-rw-r--r--test/builtins/Unit/addsf3vfp_test.c (renamed from test/Unit/addsf3vfp_test.c)0
-rw-r--r--test/builtins/Unit/addtf3_test.c81
-rw-r--r--test/builtins/Unit/addvdi3_test.c (renamed from test/Unit/addvdi3_test.c)0
-rw-r--r--test/builtins/Unit/addvsi3_test.c (renamed from test/Unit/addvsi3_test.c)0
-rw-r--r--test/builtins/Unit/addvti3_test.c94
-rw-r--r--test/builtins/Unit/ashldi3_test.c (renamed from test/Unit/ashldi3_test.c)0
-rw-r--r--test/builtins/Unit/ashlti3_test.c175
-rw-r--r--test/builtins/Unit/ashrdi3_test.c (renamed from test/Unit/ashrdi3_test.c)0
-rw-r--r--test/builtins/Unit/ashrti3_test.c173
-rw-r--r--test/builtins/Unit/bswapdi2_test.c (renamed from test/Unit/bswapdi2_test.c)0
-rw-r--r--test/builtins/Unit/bswapsi2_test.c (renamed from test/Unit/bswapsi2_test.c)0
-rw-r--r--test/builtins/Unit/clear_cache_test.c (renamed from test/Unit/clear_cache_test.c)0
-rw-r--r--test/builtins/Unit/clzdi2_test.c (renamed from test/Unit/clzdi2_test.c)0
-rw-r--r--test/builtins/Unit/clzsi2_test.c (renamed from test/Unit/clzsi2_test.c)0
-rw-r--r--test/builtins/Unit/clzti2_test.c90
-rw-r--r--test/builtins/Unit/cmpdi2_test.c (renamed from test/Unit/cmpdi2_test.c)0
-rw-r--r--test/builtins/Unit/cmpti2_test.c112
-rw-r--r--test/builtins/Unit/comparedf2_test.c (renamed from test/Unit/comparedf2_test.c)0
-rw-r--r--test/builtins/Unit/comparesf2_test.c (renamed from test/Unit/comparesf2_test.c)0
-rw-r--r--test/builtins/Unit/ctzdi2_test.c (renamed from test/Unit/ctzdi2_test.c)0
-rw-r--r--test/builtins/Unit/ctzsi2_test.c (renamed from test/Unit/ctzsi2_test.c)0
-rw-r--r--test/builtins/Unit/ctzti2_test.c84
-rw-r--r--test/builtins/Unit/divdc3_test.c (renamed from test/Unit/divdc3_test.c)0
-rw-r--r--test/builtins/Unit/divdf3vfp_test.c (renamed from test/Unit/divdf3vfp_test.c)0
-rw-r--r--test/builtins/Unit/divdi3_test.c (renamed from test/Unit/divdi3_test.c)0
-rw-r--r--test/builtins/Unit/divmodsi4_test.c (renamed from test/Unit/divmodsi4_test.c)0
-rw-r--r--test/builtins/Unit/divsc3_test.c (renamed from test/Unit/divsc3_test.c)0
-rw-r--r--test/builtins/Unit/divsf3vfp_test.c (renamed from test/Unit/divsf3vfp_test.c)0
-rw-r--r--test/builtins/Unit/divsi3_test.c (renamed from test/Unit/divsi3_test.c)0
-rw-r--r--test/builtins/Unit/divtc3_test.c (renamed from test/Unit/divtc3_test.c)0
-rw-r--r--test/builtins/Unit/divtf3_test.c94
-rw-r--r--test/builtins/Unit/divti3_test.c78
-rw-r--r--test/builtins/Unit/divxc3_test.c (renamed from test/Unit/divxc3_test.c)0
-rw-r--r--test/builtins/Unit/enable_execute_stack_test.c (renamed from test/Unit/enable_execute_stack_test.c)0
-rw-r--r--test/builtins/Unit/endianness.h (renamed from test/Unit/endianness.h)0
-rw-r--r--test/builtins/Unit/eqdf2vfp_test.c (renamed from test/Unit/eqdf2vfp_test.c)0
-rw-r--r--test/builtins/Unit/eqsf2vfp_test.c (renamed from test/Unit/eqsf2vfp_test.c)0
-rw-r--r--test/builtins/Unit/eqtf2_test.c89
-rw-r--r--test/builtins/Unit/extebdsfdf2vfp_test.c (renamed from test/Unit/extebdsfdf2vfp_test.c)0
-rw-r--r--test/builtins/Unit/extenddftf2_test.c82
-rw-r--r--test/builtins/Unit/extendsftf2_test.c83
-rw-r--r--test/builtins/Unit/ffsdi2_test.c (renamed from test/Unit/ffsdi2_test.c)0
-rw-r--r--test/builtins/Unit/ffsti2_test.c83
-rw-r--r--test/builtins/Unit/fixdfdi_test.c (renamed from test/Unit/fixdfdi_test.c)0
-rw-r--r--test/builtins/Unit/fixdfsivfp_test.c (renamed from test/Unit/fixdfsivfp_test.c)0
-rw-r--r--test/builtins/Unit/fixdfti_test.c123
-rw-r--r--test/builtins/Unit/fixsfdi_test.c (renamed from test/Unit/fixsfdi_test.c)0
-rw-r--r--test/builtins/Unit/fixsfsivfp_test.c (renamed from test/Unit/fixsfsivfp_test.c)0
-rw-r--r--test/builtins/Unit/fixsfti_test.c111
-rw-r--r--test/builtins/Unit/fixunsdfdi_test.c (renamed from test/Unit/fixunsdfdi_test.c)0
-rw-r--r--test/builtins/Unit/fixunsdfsi_test.c (renamed from test/Unit/fixunsdfsi_test.c)0
-rw-r--r--test/builtins/Unit/fixunsdfsivfp_test.c (renamed from test/Unit/fixunsdfsivfp_test.c)0
-rw-r--r--test/builtins/Unit/fixunsdfti_test.c128
-rw-r--r--test/builtins/Unit/fixunssfdi_test.c (renamed from test/Unit/fixunssfdi_test.c)0
-rw-r--r--test/builtins/Unit/fixunssfsi_test.c (renamed from test/Unit/fixunssfsi_test.c)0
-rw-r--r--test/builtins/Unit/fixunssfsivfp_test.c (renamed from test/Unit/fixunssfsivfp_test.c)0
-rw-r--r--test/builtins/Unit/fixunssfti_test.c120
-rw-r--r--test/builtins/Unit/fixunstfdi_test.c (renamed from test/Unit/fixunstfdi_test.c)0
-rw-r--r--test/builtins/Unit/fixunsxfdi_test.c (renamed from test/Unit/fixunsxfdi_test.c)0
-rw-r--r--test/builtins/Unit/fixunsxfsi_test.c (renamed from test/Unit/fixunsxfsi_test.c)0
-rw-r--r--test/builtins/Unit/fixunsxfti_test.c141
-rw-r--r--test/builtins/Unit/fixxfdi_test.c (renamed from test/Unit/fixxfdi_test.c)0
-rw-r--r--test/builtins/Unit/fixxfti_test.c146
-rw-r--r--test/builtins/Unit/floatdidf_test.c (renamed from test/Unit/floatdidf_test.c)0
-rw-r--r--test/builtins/Unit/floatdisf_test.c (renamed from test/Unit/floatdisf_test.c)0
-rw-r--r--test/builtins/Unit/floatdixf_test.c (renamed from test/Unit/floatdixf_test.c)0
-rw-r--r--test/builtins/Unit/floatsidfvfp_test.c (renamed from test/Unit/floatsidfvfp_test.c)0
-rw-r--r--test/builtins/Unit/floatsisfvfp_test.c (renamed from test/Unit/floatsisfvfp_test.c)0
-rw-r--r--test/builtins/Unit/floatsitf_test.c58
-rw-r--r--test/builtins/Unit/floattidf_test.c180
-rw-r--r--test/builtins/Unit/floattisf_test.c136
-rw-r--r--test/builtins/Unit/floattixf_test.c212
-rw-r--r--test/builtins/Unit/floatundidf_test.c (renamed from test/Unit/floatundidf_test.c)0
-rw-r--r--test/builtins/Unit/floatundisf_test.c (renamed from test/Unit/floatundisf_test.c)0
-rw-r--r--test/builtins/Unit/floatundixf_test.c (renamed from test/Unit/floatundixf_test.c)0
-rw-r--r--test/builtins/Unit/floatunsitf_test.c55
-rw-r--r--test/builtins/Unit/floatunssidfvfp_test.c (renamed from test/Unit/floatunssidfvfp_test.c)0
-rw-r--r--test/builtins/Unit/floatunssisfvfp_test.c (renamed from test/Unit/floatunssisfvfp_test.c)0
-rw-r--r--test/builtins/Unit/floatuntidf_test.c174
-rw-r--r--test/builtins/Unit/floatuntisf_test.c165
-rw-r--r--test/builtins/Unit/floatuntixf_test.c219
-rw-r--r--test/builtins/Unit/fp_test.h223
-rw-r--r--test/builtins/Unit/gcc_personality_test.c (renamed from test/Unit/gcc_personality_test.c)0
-rw-r--r--test/builtins/Unit/gcc_personality_test_helper.cxx (renamed from test/Unit/gcc_personality_test_helper.cxx)0
-rw-r--r--test/builtins/Unit/gedf2vfp_test.c (renamed from test/Unit/gedf2vfp_test.c)0
-rw-r--r--test/builtins/Unit/gesf2vfp_test.c (renamed from test/Unit/gesf2vfp_test.c)0
-rw-r--r--test/builtins/Unit/getf2_test.c89
-rw-r--r--test/builtins/Unit/gtdf2vfp_test.c (renamed from test/Unit/gtdf2vfp_test.c)0
-rw-r--r--test/builtins/Unit/gtsf2vfp_test.c (renamed from test/Unit/gtsf2vfp_test.c)0
-rw-r--r--test/builtins/Unit/gttf2_test.c89
-rw-r--r--test/builtins/Unit/ledf2vfp_test.c (renamed from test/Unit/ledf2vfp_test.c)0
-rw-r--r--test/builtins/Unit/lesf2vfp_test.c (renamed from test/Unit/lesf2vfp_test.c)0
-rw-r--r--test/builtins/Unit/letf2_test.c89
-rw-r--r--test/builtins/Unit/lshrdi3_test.c (renamed from test/Unit/lshrdi3_test.c)0
-rw-r--r--test/builtins/Unit/lshrti3_test.c173
-rw-r--r--test/builtins/Unit/ltdf2vfp_test.c (renamed from test/Unit/ltdf2vfp_test.c)0
-rw-r--r--test/builtins/Unit/ltsf2vfp_test.c (renamed from test/Unit/ltsf2vfp_test.c)0
-rw-r--r--test/builtins/Unit/lttf2_test.c89
-rw-r--r--test/builtins/Unit/moddi3_test.c (renamed from test/Unit/moddi3_test.c)0
-rw-r--r--test/builtins/Unit/modsi3_test.c (renamed from test/Unit/modsi3_test.c)0
-rw-r--r--test/builtins/Unit/modti3_test.c95
-rw-r--r--test/builtins/Unit/muldc3_test.c (renamed from test/Unit/muldc3_test.c)0
-rw-r--r--test/builtins/Unit/muldf3vfp_test.c (renamed from test/Unit/muldf3vfp_test.c)0
-rw-r--r--test/builtins/Unit/muldi3_test.c (renamed from test/Unit/muldi3_test.c)0
-rw-r--r--test/builtins/Unit/mulodi4_test.c (renamed from test/Unit/mulodi4_test.c)0
-rw-r--r--test/builtins/Unit/mulosi4_test.c (renamed from test/Unit/mulosi4_test.c)0
-rw-r--r--test/builtins/Unit/muloti4_test.c280
-rw-r--r--test/builtins/Unit/mulsc3_test.c (renamed from test/Unit/mulsc3_test.c)0
-rw-r--r--test/builtins/Unit/mulsf3vfp_test.c (renamed from test/Unit/mulsf3vfp_test.c)0
-rw-r--r--test/builtins/Unit/multc3_test.c (renamed from test/Unit/multc3_test.c)0
-rw-r--r--test/builtins/Unit/multf3_test.c95
-rw-r--r--test/builtins/Unit/multi3_test.c134
-rw-r--r--test/builtins/Unit/mulvdi3_test.c (renamed from test/Unit/mulvdi3_test.c)0
-rw-r--r--test/builtins/Unit/mulvsi3_test.c (renamed from test/Unit/mulvsi3_test.c)0
-rw-r--r--test/builtins/Unit/mulvti3_test.c260
-rw-r--r--test/builtins/Unit/mulxc3_test.c (renamed from test/Unit/mulxc3_test.c)0
-rw-r--r--test/builtins/Unit/nedf2vfp_test.c (renamed from test/Unit/nedf2vfp_test.c)0
-rw-r--r--test/builtins/Unit/negdf2vfp_test.c (renamed from test/Unit/negdf2vfp_test.c)0
-rw-r--r--test/builtins/Unit/negdi2_test.c (renamed from test/Unit/negdi2_test.c)0
-rw-r--r--test/builtins/Unit/negsf2vfp_test.c (renamed from test/Unit/negsf2vfp_test.c)0
-rw-r--r--test/builtins/Unit/negti2_test.c127
-rw-r--r--test/builtins/Unit/negvdi2_test.c (renamed from test/Unit/negvdi2_test.c)0
-rw-r--r--test/builtins/Unit/negvsi2_test.c (renamed from test/Unit/negvsi2_test.c)0
-rw-r--r--test/builtins/Unit/negvti2_test.c109
-rw-r--r--test/builtins/Unit/nesf2vfp_test.c (renamed from test/Unit/nesf2vfp_test.c)0
-rw-r--r--test/builtins/Unit/netf2_test.c89
-rw-r--r--test/builtins/Unit/paritydi2_test.c (renamed from test/Unit/paritydi2_test.c)0
-rw-r--r--test/builtins/Unit/paritysi2_test.c (renamed from test/Unit/paritysi2_test.c)0
-rw-r--r--test/builtins/Unit/parityti2_test.c64
-rw-r--r--test/builtins/Unit/popcountdi2_test.c (renamed from test/Unit/popcountdi2_test.c)0
-rw-r--r--test/builtins/Unit/popcountsi2_test.c (renamed from test/Unit/popcountsi2_test.c)0
-rw-r--r--test/builtins/Unit/popcountti2_test.c82
-rw-r--r--test/builtins/Unit/powidf2_test.c (renamed from test/Unit/powidf2_test.c)0
-rw-r--r--test/builtins/Unit/powisf2_test.c (renamed from test/Unit/powisf2_test.c)0
-rw-r--r--test/builtins/Unit/powitf2_test.c (renamed from test/Unit/powitf2_test.c)0
-rw-r--r--test/builtins/Unit/powixf2_test.c (renamed from test/Unit/powixf2_test.c)0
-rw-r--r--test/builtins/Unit/ppc/DD.h (renamed from test/Unit/ppc/DD.h)0
-rw-r--r--test/builtins/Unit/ppc/fixtfdi_test.c (renamed from test/Unit/ppc/fixtfdi_test.c)0
-rw-r--r--test/builtins/Unit/ppc/floatditf_test.c (renamed from test/Unit/ppc/floatditf_test.c)0
-rw-r--r--test/builtins/Unit/ppc/floatditf_test.h (renamed from test/Unit/ppc/floatditf_test.h)0
-rw-r--r--test/builtins/Unit/ppc/floatunditf_test.c (renamed from test/Unit/ppc/floatunditf_test.c)0
-rw-r--r--test/builtins/Unit/ppc/floatunditf_test.h (renamed from test/Unit/ppc/floatunditf_test.h)0
-rw-r--r--test/builtins/Unit/ppc/qadd_test.c (renamed from test/Unit/ppc/qadd_test.c)0
-rw-r--r--test/builtins/Unit/ppc/qdiv_test.c (renamed from test/Unit/ppc/qdiv_test.c)0
-rw-r--r--test/builtins/Unit/ppc/qmul_test.c (renamed from test/Unit/ppc/qmul_test.c)0
-rw-r--r--test/builtins/Unit/ppc/qsub_test.c (renamed from test/Unit/ppc/qsub_test.c)0
-rwxr-xr-xtest/builtins/Unit/ppc/test (renamed from test/Unit/ppc/test)0
-rw-r--r--test/builtins/Unit/subdf3vfp_test.c (renamed from test/Unit/subdf3vfp_test.c)0
-rw-r--r--test/builtins/Unit/subsf3vfp_test.c (renamed from test/Unit/subsf3vfp_test.c)0
-rw-r--r--test/builtins/Unit/subtf3_test.c74
-rw-r--r--test/builtins/Unit/subvdi3_test.c (renamed from test/Unit/subvdi3_test.c)0
-rw-r--r--test/builtins/Unit/subvsi3_test.c (renamed from test/Unit/subvsi3_test.c)0
-rw-r--r--test/builtins/Unit/subvti3_test.c80
-rwxr-xr-xtest/builtins/Unit/test (renamed from test/Unit/test)0
-rw-r--r--test/builtins/Unit/trampoline_setup_test.c (renamed from test/Unit/trampoline_setup_test.c)0
-rw-r--r--test/builtins/Unit/truncdfsf2vfp_test.c (renamed from test/Unit/truncdfsf2vfp_test.c)0
-rw-r--r--test/builtins/Unit/trunctfdf2_test.c76
-rw-r--r--test/builtins/Unit/trunctfsf2_test.c75
-rw-r--r--test/builtins/Unit/ucmpdi2_test.c (renamed from test/Unit/ucmpdi2_test.c)0
-rw-r--r--test/builtins/Unit/ucmpti2_test.c116
-rw-r--r--test/builtins/Unit/udivdi3_test.c (renamed from test/Unit/udivdi3_test.c)0
-rw-r--r--test/builtins/Unit/udivmoddi4_test.c (renamed from test/Unit/udivmoddi4_test.c)0
-rw-r--r--test/builtins/Unit/udivmodsi4_test.c (renamed from test/Unit/udivmodsi4_test.c)0
-rw-r--r--test/builtins/Unit/udivmodti4_test.c65353
-rw-r--r--test/builtins/Unit/udivsi3_test.c (renamed from test/Unit/udivsi3_test.c)0
-rw-r--r--test/builtins/Unit/udivti3_test.c67
-rw-r--r--test/builtins/Unit/umoddi3_test.c (renamed from test/Unit/umoddi3_test.c)0
-rw-r--r--test/builtins/Unit/umodsi3_test.c (renamed from test/Unit/umodsi3_test.c)0
-rw-r--r--test/builtins/Unit/umodti3_test.c65
-rw-r--r--test/builtins/Unit/unorddf2vfp_test.c (renamed from test/Unit/unorddf2vfp_test.c)0
-rw-r--r--test/builtins/Unit/unordsf2vfp_test.c (renamed from test/Unit/unordsf2vfp_test.c)0
-rw-r--r--test/builtins/Unit/unordtf2_test.c65
-rw-r--r--test/builtins/timing/ashldi3.c (renamed from test/timing/ashldi3.c)0
-rw-r--r--test/builtins/timing/ashrdi3.c (renamed from test/timing/ashrdi3.c)0
-rw-r--r--test/builtins/timing/divdi3.c (renamed from test/timing/divdi3.c)0
-rw-r--r--test/builtins/timing/floatdidf.c (renamed from test/timing/floatdidf.c)0
-rw-r--r--test/builtins/timing/floatdisf.c (renamed from test/timing/floatdisf.c)0
-rw-r--r--test/builtins/timing/floatdixf.c (renamed from test/timing/floatdixf.c)0
-rw-r--r--test/builtins/timing/floatundidf.c (renamed from test/timing/floatundidf.c)0
-rw-r--r--test/builtins/timing/floatundisf.c (renamed from test/timing/floatundisf.c)0
-rw-r--r--test/builtins/timing/floatundixf.c (renamed from test/timing/floatundixf.c)0
-rw-r--r--test/builtins/timing/lshrdi3.c (renamed from test/timing/lshrdi3.c)0
-rw-r--r--test/builtins/timing/moddi3.c (renamed from test/timing/moddi3.c)0
-rw-r--r--test/builtins/timing/modsi3.c (renamed from test/timing/modsi3.c)0
-rw-r--r--test/builtins/timing/muldi3.c (renamed from test/timing/muldi3.c)0
-rw-r--r--test/builtins/timing/negdi2.c (renamed from test/timing/negdi2.c)0
-rwxr-xr-xtest/builtins/timing/time (renamed from test/timing/time)0
-rw-r--r--test/builtins/timing/timing.h (renamed from test/timing/timing.h)0
-rw-r--r--test/builtins/timing/udivdi3.c (renamed from test/timing/udivdi3.c)0
-rw-r--r--test/builtins/timing/umoddi3.c (renamed from test/timing/umoddi3.c)0
-rw-r--r--test/dfsan/CMakeLists.txt15
-rw-r--r--test/dfsan/Inputs/flags_abilist.txt (renamed from lib/dfsan/lit_tests/Inputs/flags_abilist.txt)0
-rw-r--r--test/dfsan/basic.c28
-rw-r--r--test/dfsan/custom.cc958
-rw-r--r--test/dfsan/dump_labels.c69
-rw-r--r--test/dfsan/flags.c24
-rw-r--r--test/dfsan/fncall.c26
-rw-r--r--test/dfsan/label_count.c75
-rw-r--r--test/dfsan/lit.cfg26
-rw-r--r--test/dfsan/lit.site.cfg.in5
-rw-r--r--test/dfsan/propagate.c47
-rw-r--r--test/dfsan/vararg.c24
-rw-r--r--test/dfsan/write_callback.c110
-rw-r--r--test/lit.common.cfg89
-rw-r--r--test/lit.common.configured.in38
-rw-r--r--test/lsan/CMakeLists.txt23
-rw-r--r--test/lsan/TestCases/cleanup_in_tsd_destructor.cc45
-rw-r--r--test/lsan/TestCases/disabler.cc23
-rw-r--r--test/lsan/TestCases/disabler_in_tsd_destructor.cc38
-rw-r--r--test/lsan/TestCases/do_leak_check_override.cc36
-rw-r--r--test/lsan/TestCases/fork.cc24
-rw-r--r--test/lsan/TestCases/fork_threaded.cc43
-rw-r--r--test/lsan/TestCases/high_allocator_contention.cc48
-rw-r--r--test/lsan/TestCases/ignore_object.cc24
-rw-r--r--test/lsan/TestCases/ignore_object_errors.cc22
-rw-r--r--test/lsan/TestCases/large_allocation_leak.cc18
-rw-r--r--test/lsan/TestCases/leak_check_at_exit.cc21
-rw-r--r--test/lsan/TestCases/leak_check_before_thread_started.cc32
-rw-r--r--test/lsan/TestCases/link_turned_off.cc24
-rw-r--r--test/lsan/TestCases/new_array_with_dtor_0.cc19
-rw-r--r--test/lsan/TestCases/pointer_to_self.cc18
-rw-r--r--test/lsan/TestCases/print_suppressions.cc33
-rw-r--r--test/lsan/TestCases/register_root_region.cc32
-rw-r--r--test/lsan/TestCases/sanity_check_pure_c.c (renamed from lib/lsan/lit_tests/TestCases/sanity_check_pure_c.c)0
-rw-r--r--test/lsan/TestCases/stale_stack_leak.cc43
-rw-r--r--test/lsan/TestCases/suppressions_default.cc28
-rw-r--r--test/lsan/TestCases/suppressions_file.cc26
-rw-r--r--test/lsan/TestCases/swapcontext.cc47
-rw-r--r--test/lsan/TestCases/use_after_return.cc23
-rw-r--r--test/lsan/TestCases/use_globals_initialized.cc21
-rw-r--r--test/lsan/TestCases/use_globals_uninitialized.cc21
-rw-r--r--test/lsan/TestCases/use_poisoned_asan.cc25
-rw-r--r--test/lsan/TestCases/use_registers.cc52
-rw-r--r--test/lsan/TestCases/use_stacks.cc20
-rw-r--r--test/lsan/TestCases/use_stacks_threaded.cc37
-rw-r--r--test/lsan/TestCases/use_tls_dynamic.cc50
-rw-r--r--test/lsan/TestCases/use_tls_pthread_specific_dynamic.cc37
-rw-r--r--test/lsan/TestCases/use_tls_pthread_specific_static.cc31
-rw-r--r--test/lsan/TestCases/use_tls_static.cc21
-rw-r--r--test/lsan/TestCases/use_unaligned.cc23
-rw-r--r--test/lsan/lit.common.cfg51
-rw-r--r--test/lsan/lit.site.cfg.in8
-rw-r--r--test/msan/CMakeLists.txt23
-rw-r--r--test/msan/Linux/getresid.cc25
-rw-r--r--test/msan/Linux/glob.cc27
-rw-r--r--test/msan/Linux/glob_altdirfunc.cc78
-rw-r--r--test/msan/Linux/glob_nomatch.cc21
-rw-r--r--test/msan/Linux/glob_test_root/aa (renamed from lib/msan/lit_tests/Linux/glob_test_root/ab)0
-rw-r--r--test/msan/Linux/glob_test_root/ab (renamed from lib/msan/lit_tests/Linux/glob_test_root/ba)0
-rw-r--r--test/msan/Linux/glob_test_root/ba (renamed from lib/msan/lit_tests/scandir_test_root/aaa)0
-rw-r--r--test/msan/Linux/lit.local.cfg (renamed from lib/msan/lit_tests/Linux/lit.local.cfg)0
-rw-r--r--test/msan/Linux/sunrpc.cc40
-rw-r--r--test/msan/Linux/sunrpc_bytes.cc38
-rw-r--r--test/msan/Linux/sunrpc_string.cc35
-rw-r--r--test/msan/Linux/syscalls.cc115
-rw-r--r--test/msan/Linux/tcgetattr.cc21
-rw-r--r--test/msan/Linux/xattr.cc145
-rw-r--r--test/msan/Linux/xattr_test_root/a (renamed from lib/msan/lit_tests/scandir_test_root/aab)0
-rw-r--r--test/msan/Unit/lit.site.cfg.in14
-rw-r--r--test/msan/allocator_returns_null.cc81
-rw-r--r--test/msan/backtrace.cc26
-rw-r--r--test/msan/c-strdup.c17
-rw-r--r--test/msan/chained_origin.cc66
-rw-r--r--test/msan/chained_origin_empty_stack.cc34
-rw-r--r--test/msan/chained_origin_limits.cc178
-rw-r--r--test/msan/chained_origin_memcpy.cc61
-rw-r--r--test/msan/chained_origin_with_signals.cc36
-rw-r--r--test/msan/check_mem_is_initialized.cc33
-rw-r--r--test/msan/coverage-levels.cc28
-rw-r--r--test/msan/cxa_atexit.cc28
-rw-r--r--test/msan/death-callback.cc39
-rw-r--r--test/msan/default_blacklist.cc (renamed from lib/msan/lit_tests/default_blacklist.cc)0
-rw-r--r--test/msan/dlerror.cc14
-rw-r--r--test/msan/dso-origin.cc48
-rw-r--r--test/msan/dtls_test.c60
-rw-r--r--test/msan/errno.cc17
-rw-r--r--test/msan/fork.cc121
-rw-r--r--test/msan/ftime.cc14
-rw-r--r--test/msan/getaddrinfo-positive.cc23
-rw-r--r--test/msan/getaddrinfo.cc24
-rw-r--r--test/msan/getc_unlocked.c32
-rw-r--r--test/msan/getline.cc36
-rw-r--r--test/msan/heap-origin.cc31
-rw-r--r--test/msan/iconv.cc48
-rw-r--r--test/msan/if_indextoname.cc23
-rw-r--r--test/msan/ifaddrs.cc50
-rw-r--r--test/msan/initgroups.cc11
-rw-r--r--test/msan/inline.cc20
-rw-r--r--test/msan/insertvalue_origin.cc35
-rw-r--r--test/msan/ioctl.cc20
-rw-r--r--test/msan/ioctl_custom.cc33
-rw-r--r--test/msan/ioctl_sound.cc29
-rw-r--r--test/msan/keep-going-dso.cc33
-rw-r--r--test/msan/keep-going.cc34
-rw-r--r--test/msan/lit.cfg30
-rw-r--r--test/msan/lit.site.cfg.in5
-rw-r--r--test/msan/mallinfo.cc12
-rw-r--r--test/msan/mktime.cc26
-rw-r--r--test/msan/mmap_below_shadow.cc28
-rw-r--r--test/msan/msan_check_mem_is_initialized.cc28
-rw-r--r--test/msan/msan_dump_shadow.cc22
-rw-r--r--test/msan/msan_print_shadow.cc122
-rw-r--r--test/msan/msan_print_shadow2.cc49
-rw-r--r--test/msan/msan_print_shadow3.cc16
-rw-r--r--test/msan/mul_by_const.cc27
-rw-r--r--test/msan/no_sanitize_memory.cc34
-rw-r--r--test/msan/no_sanitize_memory_prop.cc24
-rw-r--r--test/msan/obstack.cc37
-rw-r--r--test/msan/param_tls_limit.cc74
-rw-r--r--test/msan/poison_in_free.cc16
-rw-r--r--test/msan/print_stats.cc45
-rw-r--r--test/msan/pthread_getattr_np_deadlock.cc22
-rw-r--r--test/msan/rand_r.cc18
-rw-r--r--test/msan/readdir64.cc27
-rw-r--r--test/msan/report-demangling.cc19
-rw-r--r--test/msan/scandir.cc56
-rw-r--r--test/msan/scandir_null.cc34
-rw-r--r--test/msan/scandir_test_root/aaa (renamed from lib/msan/lit_tests/scandir_test_root/bbb)0
-rw-r--r--test/msan/scandir_test_root/aab0
-rw-r--r--test/msan/scandir_test_root/bbb0
-rw-r--r--test/msan/select.cc22
-rw-r--r--test/msan/select_float_origin.cc24
-rw-r--r--test/msan/select_origin.cc22
-rw-r--r--test/msan/setlocale.cc13
-rw-r--r--test/msan/signal_stress_test.cc71
-rw-r--r--test/msan/sigwait.cc30
-rw-r--r--test/msan/sigwaitinfo.cc31
-rw-r--r--test/msan/stack-origin.cc31
-rw-r--r--test/msan/stack-origin2.cc41
-rw-r--r--test/msan/strerror_r-non-gnu.c18
-rw-r--r--test/msan/strlen_of_shadow.cc24
-rw-r--r--test/msan/strxfrm.cc15
-rw-r--r--test/msan/sync_lock_set_and_test.cc7
-rw-r--r--test/msan/textdomain.cc12
-rw-r--r--test/msan/times.cc20
-rw-r--r--test/msan/tls_reuse.cc26
-rw-r--r--test/msan/tsearch.cc36
-rw-r--r--test/msan/tzset.cc16
-rw-r--r--test/msan/unaligned_read_origin.cc16
-rw-r--r--test/msan/unpoison_string.cc16
-rw-r--r--test/msan/use-after-free.cc34
-rw-r--r--test/msan/vector_cvt.cc23
-rw-r--r--test/msan/vector_select.cc (renamed from lib/msan/lit_tests/vector_select.cc)0
-rw-r--r--test/profile/CMakeLists.txt16
-rw-r--r--test/profile/Inputs/instrprof-dlopen-func.c1
-rw-r--r--test/profile/Inputs/instrprof-dlopen-func2.c1
-rw-r--r--test/profile/Inputs/instrprof-dlopen-main.c47
-rw-r--r--test/profile/Inputs/instrprof-dynamic-a.cpp7
-rw-r--r--test/profile/Inputs/instrprof-dynamic-b.cpp7
-rw-r--r--test/profile/Inputs/instrprof-dynamic-header.h5
-rw-r--r--test/profile/Inputs/instrprof-dynamic-main.cpp9
-rw-r--r--test/profile/instrprof-basic.c31
-rw-r--r--test/profile/instrprof-dlopen.test34
-rw-r--r--test/profile/instrprof-dynamic-one-shared.test23
-rw-r--r--test/profile/instrprof-dynamic-two-shared.test24
-rw-r--r--test/profile/instrprof-reset-counters.c19
-rw-r--r--test/profile/instrprof-set-filename.c14
-rw-r--r--test/profile/instrprof-without-libc.c60
-rw-r--r--test/profile/instrprof-write-file-atexit-explicitly.c17
-rw-r--r--test/profile/instrprof-write-file-only.c35
-rw-r--r--test/profile/instrprof-write-file.c34
-rw-r--r--test/profile/lit.cfg53
-rw-r--r--test/profile/lit.site.cfg.in11
-rw-r--r--test/sanitizer_common/CMakeLists.txt46
-rw-r--r--test/sanitizer_common/TestCases/Linux/aligned_alloc.c8
-rw-r--r--test/sanitizer_common/TestCases/Linux/clock_gettime.c11
-rw-r--r--test/sanitizer_common/TestCases/Linux/getpass.cc32
-rw-r--r--test/sanitizer_common/TestCases/Linux/getpwnam_r_invalid_user.cc19
-rw-r--r--test/sanitizer_common/TestCases/Linux/lit.local.cfg9
-rw-r--r--test/sanitizer_common/TestCases/Linux/mlock_test.cc13
-rw-r--r--test/sanitizer_common/TestCases/Linux/open_memstream.cc57
-rw-r--r--test/sanitizer_common/TestCases/Linux/ptrace.cc60
-rw-r--r--test/sanitizer_common/TestCases/Linux/timerfd.cc52
-rw-r--r--test/sanitizer_common/TestCases/corelimit.cc16
-rw-r--r--test/sanitizer_common/TestCases/malloc_hook.cc38
-rw-r--r--test/sanitizer_common/TestCases/print-stack-trace.cc24
-rw-r--r--test/sanitizer_common/TestCases/pthread_mutexattr_get.cc19
-rw-r--r--test/sanitizer_common/Unit/lit.site.cfg.in15
-rw-r--r--test/sanitizer_common/lit.common.cfg38
-rw-r--r--test/sanitizer_common/lit.site.cfg.in9
-rw-r--r--test/tsan/CMakeLists.txt27
-rw-r--r--test/tsan/Linux/lit.local.cfg9
-rw-r--r--test/tsan/Linux/mutex_robust.cc36
-rw-r--r--test/tsan/Linux/mutex_robust2.cc41
-rw-r--r--test/tsan/Linux/user_fopen.cc34
-rw-r--r--test/tsan/Linux/user_malloc.cc27
-rw-r--r--test/tsan/Unit/lit.site.cfg.in14
-rw-r--r--test/tsan/aligned_vs_unaligned_race.cc34
-rw-r--r--test/tsan/allocator_returns_null.cc64
-rw-r--r--test/tsan/atexit.cc29
-rw-r--r--test/tsan/atexit2.cc26
-rw-r--r--test/tsan/atomic_free.cc19
-rw-r--r--test/tsan/atomic_free2.cc19
-rw-r--r--test/tsan/atomic_norace.cc61
-rw-r--r--test/tsan/atomic_race.cc80
-rw-r--r--test/tsan/atomic_stack.cc29
-rw-r--r--test/tsan/barrier.cc37
-rw-r--r--test/tsan/bench.h59
-rw-r--r--test/tsan/bench_acquire_only.cc19
-rw-r--r--test/tsan/bench_acquire_release.cc18
-rw-r--r--test/tsan/bench_local_mutex.cc27
-rw-r--r--test/tsan/bench_mutex.cc28
-rw-r--r--test/tsan/bench_release_only.cc23
-rw-r--r--test/tsan/bench_rwmutex.cc25
-rw-r--r--test/tsan/bench_shadow_flush.cc48
-rw-r--r--test/tsan/bench_single_writer.cc23
-rw-r--r--test/tsan/bench_ten_mutexes.cc26
-rw-r--r--test/tsan/benign_race.cc39
-rw-r--r--test/tsan/blacklist.cc30
-rw-r--r--test/tsan/blacklist2.cc49
-rw-r--r--test/tsan/cond.c53
-rw-r--r--test/tsan/cond_cancel.c37
-rw-r--r--test/tsan/cond_race.cc40
-rw-r--r--test/tsan/cond_version.c44
-rw-r--r--test/tsan/deadlock_detector_stress_test.cc596
-rw-r--r--test/tsan/deep_stack1.cc44
-rw-r--r--test/tsan/default_options.cc32
-rwxr-xr-xtest/tsan/deflake.bash17
-rw-r--r--test/tsan/dlclose.cc58
-rw-r--r--test/tsan/fd_close_norace.cc33
-rw-r--r--test/tsan/fd_close_norace2.cc30
-rw-r--r--test/tsan/fd_dup_norace.cc34
-rw-r--r--test/tsan/fd_location.cc33
-rw-r--r--test/tsan/fd_pipe_norace.cc33
-rw-r--r--test/tsan/fd_pipe_race.cc37
-rw-r--r--test/tsan/fd_socket_connect_norace.cc45
-rw-r--r--test/tsan/fd_socket_norace.cc52
-rw-r--r--test/tsan/fd_socketpair_norace.cc37
-rw-r--r--test/tsan/fd_stdout_race.cc41
-rw-r--r--test/tsan/fork_atexit.cc37
-rw-r--r--test/tsan/fork_deadlock.cc48
-rw-r--r--test/tsan/fork_multithreaded.cc42
-rw-r--r--test/tsan/fork_multithreaded3.cc40
-rw-r--r--test/tsan/free_race.c49
-rw-r--r--test/tsan/free_race.c.supp (renamed from lib/tsan/lit_tests/free_race.c.supp)0
-rw-r--r--test/tsan/free_race2.c26
-rw-r--r--test/tsan/getline_nohang.cc39
-rw-r--r--test/tsan/global_race.cc28
-rw-r--r--test/tsan/global_race2.cc28
-rw-r--r--test/tsan/global_race3.cc32
-rw-r--r--test/tsan/halt_on_error.cc27
-rw-r--r--test/tsan/heap_race.cc20
-rw-r--r--test/tsan/ignore_free.cc35
-rw-r--r--test/tsan/ignore_lib0.cc30
-rw-r--r--test/tsan/ignore_lib0.cc.supp (renamed from lib/tsan/lit_tests/ignore_lib0.cc.supp)0
-rw-r--r--test/tsan/ignore_lib1.cc42
-rw-r--r--test/tsan/ignore_lib1.cc.supp (renamed from lib/tsan/lit_tests/ignore_lib1.cc.supp)0
-rw-r--r--test/tsan/ignore_lib2.cc33
-rw-r--r--test/tsan/ignore_lib2.cc.supp (renamed from lib/tsan/lit_tests/ignore_lib2.cc.supp)0
-rw-r--r--test/tsan/ignore_lib3.cc33
-rw-r--r--test/tsan/ignore_lib3.cc.supp (renamed from lib/tsan/lit_tests/ignore_lib3.cc.supp)0
-rw-r--r--test/tsan/ignore_lib_lib.h (renamed from lib/tsan/lit_tests/ignore_lib_lib.h)0
-rw-r--r--test/tsan/ignore_malloc.cc38
-rw-r--r--test/tsan/ignore_race.cc31
-rw-r--r--test/tsan/ignore_sync.cc30
-rw-r--r--test/tsan/inlined_memcpy_race.cc38
-rw-r--r--test/tsan/inlined_memcpy_race2.cc38
-rw-r--r--test/tsan/interface_atomic_test.c16
-rw-r--r--test/tsan/java.h21
-rw-r--r--test/tsan/java_alloc.cc38
-rw-r--r--test/tsan/java_finalizer.cc27
-rw-r--r--test/tsan/java_lock.cc36
-rw-r--r--test/tsan/java_lock_move.cc41
-rw-r--r--test/tsan/java_lock_rec.cc55
-rw-r--r--test/tsan/java_lock_rec_race.cc49
-rw-r--r--test/tsan/java_move_overlap.cc72
-rw-r--r--test/tsan/java_move_overlap_race.cc53
-rw-r--r--test/tsan/java_race.cc25
-rw-r--r--test/tsan/java_race_move.cc33
-rw-r--r--test/tsan/java_rwlock.cc36
-rw-r--r--test/tsan/libcxx/lit.local.cfg10
-rw-r--r--test/tsan/libcxx/std_shared_ptr.cc24
-rw-r--r--test/tsan/lit.cfg65
-rw-r--r--test/tsan/lit.site.cfg.in10
-rw-r--r--test/tsan/load_shared_lib.cc66
-rw-r--r--test/tsan/longjmp.cc22
-rw-r--r--test/tsan/longjmp2.cc24
-rw-r--r--test/tsan/longjmp3.cc48
-rw-r--r--test/tsan/longjmp4.cc51
-rw-r--r--test/tsan/malloc_overflow.cc23
-rw-r--r--test/tsan/malloc_stack.cc25
-rw-r--r--test/tsan/map32bit.cc41
-rw-r--r--test/tsan/memcpy_race.cc42
-rw-r--r--test/tsan/mmap_large.cc20
-rw-r--r--test/tsan/mop_with_offset.cc36
-rw-r--r--test/tsan/mop_with_offset2.cc36
-rw-r--r--test/tsan/must_deadlock.cc50
-rw-r--r--test/tsan/mutex_bad_read_lock.cc19
-rw-r--r--test/tsan/mutex_bad_read_unlock.cc20
-rw-r--r--test/tsan/mutex_bad_unlock.cc18
-rw-r--r--test/tsan/mutex_cycle2.c35
-rw-r--r--test/tsan/mutex_destroy_locked.cc22
-rw-r--r--test/tsan/mutex_double_lock.cc29
-rw-r--r--test/tsan/mutexset1.cc37
-rw-r--r--test/tsan/mutexset2.cc37
-rw-r--r--test/tsan/mutexset3.cc45
-rw-r--r--test/tsan/mutexset4.cc45
-rw-r--r--test/tsan/mutexset5.cc46
-rw-r--r--test/tsan/mutexset6.cc53
-rw-r--r--test/tsan/mutexset7.cc40
-rw-r--r--test/tsan/mutexset8.cc39
-rw-r--r--test/tsan/printf-1.c16
-rw-r--r--test/tsan/process_sleep.h7
-rw-r--r--test/tsan/pthread_atfork_deadlock.c33
-rw-r--r--test/tsan/race_on_barrier.c31
-rw-r--r--test/tsan/race_on_barrier2.c31
-rw-r--r--test/tsan/race_on_heap.cc47
-rw-r--r--test/tsan/race_on_mutex.c42
-rw-r--r--test/tsan/race_on_mutex2.c24
-rw-r--r--test/tsan/race_on_puts.cc29
-rw-r--r--test/tsan/race_on_read.cc41
-rw-r--r--test/tsan/race_on_speculative_load.cc27
-rw-r--r--test/tsan/race_on_write.cc39
-rw-r--r--test/tsan/race_with_finished_thread.cc43
-rw-r--r--test/tsan/signal_errno.cc49
-rw-r--r--test/tsan/signal_longjmp.cc69
-rw-r--r--test/tsan/signal_malloc.cc26
-rw-r--r--test/tsan/signal_recursive.cc132
-rw-r--r--test/tsan/signal_sync.cc58
-rw-r--r--test/tsan/signal_write.cc27
-rw-r--r--test/tsan/sigsuspend.cc44
-rw-r--r--test/tsan/simple_race.c29
-rw-r--r--test/tsan/simple_race.cc29
-rw-r--r--test/tsan/simple_stack.c66
-rw-r--r--test/tsan/simple_stack2.cc53
-rw-r--r--test/tsan/sleep_sync.cc30
-rw-r--r--test/tsan/sleep_sync2.cc22
-rw-r--r--test/tsan/stack_race.cc22
-rw-r--r--test/tsan/stack_race2.cc29
-rw-r--r--test/tsan/static_init1.cc27
-rw-r--r--test/tsan/static_init2.cc33
-rw-r--r--test/tsan/static_init3.cc47
-rw-r--r--test/tsan/static_init4.cc37
-rw-r--r--test/tsan/static_init5.cc42
-rw-r--r--test/tsan/static_init6.cc42
-rw-r--r--test/tsan/sunrpc.cc25
-rw-r--r--test/tsan/suppress_same_address.cc29
-rw-r--r--test/tsan/suppress_same_stacks.cc27
-rw-r--r--test/tsan/suppressions_global.cc29
-rw-r--r--test/tsan/suppressions_global.cc.supp (renamed from lib/tsan/lit_tests/suppressions_global.cc.supp)0
-rw-r--r--test/tsan/suppressions_race.cc31
-rw-r--r--test/tsan/suppressions_race.cc.supp (renamed from lib/tsan/lit_tests/suppressions_race.cc.supp)0
-rw-r--r--test/tsan/suppressions_race2.cc31
-rw-r--r--test/tsan/suppressions_race2.cc.supp (renamed from lib/tsan/lit_tests/suppressions_race2.cc.supp)0
-rwxr-xr-xtest/tsan/test_output.sh66
-rw-r--r--test/tsan/thread_detach.c20
-rw-r--r--test/tsan/thread_end_with_ignore.cc24
-rw-r--r--test/tsan/thread_end_with_ignore2.cc12
-rw-r--r--test/tsan/thread_end_with_ignore3.cc22
-rw-r--r--test/tsan/thread_leak.c17
-rw-r--r--test/tsan/thread_leak2.c17
-rw-r--r--test/tsan/thread_leak3.c17
-rw-r--r--test/tsan/thread_leak4.c18
-rw-r--r--test/tsan/thread_leak5.c20
-rw-r--r--test/tsan/thread_name.cc47
-rw-r--r--test/tsan/thread_name2.cc36
-rw-r--r--test/tsan/tiny_race.c21
-rw-r--r--test/tsan/tls_race.cc21
-rw-r--r--test/tsan/tls_race2.cc29
-rw-r--r--test/tsan/tsan-vs-gvn.cc38
-rw-r--r--test/tsan/unaligned_norace.cc84
-rw-r--r--test/tsan/unaligned_race.cc139
-rw-r--r--test/tsan/vfork.cc51
-rw-r--r--test/tsan/virtual_inheritance_compile_bug.cc15
-rw-r--r--test/tsan/vptr_benign_race.cc51
-rw-r--r--test/tsan/vptr_harmful_race.cc51
-rw-r--r--test/tsan/vptr_harmful_race2.cc51
-rw-r--r--test/tsan/vptr_harmful_race3.cc53
-rw-r--r--test/tsan/vptr_harmful_race4.cc34
-rw-r--r--test/tsan/write_in_reader_lock.cc35
-rw-r--r--test/ubsan/CMakeLists.txt25
-rw-r--r--test/ubsan/TestCases/Float/cast-overflow.cpp134
-rw-r--r--test/ubsan/TestCases/Integer/add-overflow.cpp32
-rw-r--r--test/ubsan/TestCases/Integer/div-overflow.cpp10
-rw-r--r--test/ubsan/TestCases/Integer/div-zero.cpp15
-rw-r--r--test/ubsan/TestCases/Integer/incdec-overflow.cpp16
-rw-r--r--test/ubsan/TestCases/Integer/mul-overflow.cpp14
-rw-r--r--test/ubsan/TestCases/Integer/negate-overflow.cpp12
-rw-r--r--test/ubsan/TestCases/Integer/no-recover.cpp22
-rw-r--r--test/ubsan/TestCases/Integer/shift.cpp37
-rw-r--r--test/ubsan/TestCases/Integer/sub-overflow.cpp31
-rw-r--r--test/ubsan/TestCases/Integer/summary.cpp10
-rw-r--r--test/ubsan/TestCases/Integer/uadd-overflow.cpp32
-rw-r--r--test/ubsan/TestCases/Integer/uincdec-overflow.cpp16
-rw-r--r--test/ubsan/TestCases/Integer/umul-overflow.cpp19
-rw-r--r--test/ubsan/TestCases/Integer/usub-overflow.cpp31
-rw-r--r--test/ubsan/TestCases/Misc/bool.cpp10
-rw-r--r--test/ubsan/TestCases/Misc/bounds.cpp15
-rw-r--r--test/ubsan/TestCases/Misc/deduplication.cpp25
-rw-r--r--test/ubsan/TestCases/Misc/enum.cpp17
-rw-r--r--test/ubsan/TestCases/Misc/missing_return.cpp17
-rw-r--r--test/ubsan/TestCases/Misc/nonnull-arg.cpp58
-rw-r--r--test/ubsan/TestCases/Misc/nonnull.cpp15
-rw-r--r--test/ubsan/TestCases/Misc/unreachable.cpp6
-rw-r--r--test/ubsan/TestCases/Misc/vla.c11
-rw-r--r--test/ubsan/TestCases/TypeCheck/Function/function.cpp24
-rw-r--r--test/ubsan/TestCases/TypeCheck/Function/lit.local.cfg (renamed from lib/ubsan/lit_tests/TestCases/TypeCheck/Function/lit.local.cfg)0
-rw-r--r--test/ubsan/TestCases/TypeCheck/misaligned.cpp105
-rw-r--r--test/ubsan/TestCases/TypeCheck/null.cpp38
-rw-r--r--test/ubsan/TestCases/TypeCheck/vptr-virtual-base.cpp19
-rw-r--r--test/ubsan/TestCases/TypeCheck/vptr.cpp166
-rw-r--r--test/ubsan/lit.common.cfg56
-rw-r--r--test/ubsan/lit.site.cfg.in8
-rw-r--r--unittests/CMakeLists.txt3
-rw-r--r--unittests/lit.common.unit.cfg (renamed from lib/lit.common.unit.cfg)0
-rw-r--r--unittests/lit.common.unit.configured.in25
-rw-r--r--www/index.html163
2209 files changed, 143965 insertions, 110277 deletions
diff --git a/.arcconfig b/.arcconfig
index 413b70b05f7b..ef3e3276aef1 100644
--- a/.arcconfig
+++ b/.arcconfig
@@ -1,4 +1,4 @@
{
"project_id" : "compiler-rt",
- "conduit_uri" : "http://llvm-reviews.chandlerc.com/"
+ "conduit_uri" : "http://reviews.llvm.org/"
}
diff --git a/.gitignore b/.gitignore
index 7c534314923e..2a7bdd6a8910 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
darwin_fat
clang_darwin
multi_arch
+*.sw?
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a4424086c696..a6a4ed96105e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,49 +1,166 @@
# CMake build for CompilerRT.
#
# This build assumes that CompilerRT is checked out into the
-# 'projects/compiler-rt' inside of an LLVM tree, it is not a stand-alone build
-# system.
+# 'projects/compiler-rt' inside of an LLVM tree.
+# Standalone build system for CompilerRT is not yet ready.
#
# An important constraint of the build is that it only produces libraries
# based on the ability of the host toolchain to target various platforms.
-include(LLVMParseArguments)
+# Check if compiler-rt is built as a standalone project.
+if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
+ project(CompilerRT C CXX)
+ set(COMPILER_RT_STANDALONE_BUILD TRUE)
+else()
+ set(COMPILER_RT_STANDALONE_BUILD FALSE)
+endif()
# The CompilerRT build system requires CMake version 2.8.8 or higher in order
# to use its support for building convenience "libraries" as a collection of
# .o files. This is particularly useful in producing larger, more complex
# runtime libraries.
-cmake_minimum_required(VERSION 2.8.8)
+if (NOT MSVC)
+ cmake_minimum_required(VERSION 2.8.8)
+else()
+ # Version 2.8.12.1 is required to build with Visual Studion 2013.
+ cmake_minimum_required(VERSION 2.8.12.1)
+endif()
+
+# FIXME: It may be removed when we use 2.8.12.
+if(CMAKE_VERSION VERSION_LESS 2.8.12)
+ # Invalidate a couple of keywords.
+ set(cmake_2_8_12_INTERFACE)
+ set(cmake_2_8_12_PRIVATE)
+else()
+ # Use ${cmake_2_8_12_KEYWORD} intead of KEYWORD in target_link_libraries().
+ set(cmake_2_8_12_INTERFACE INTERFACE)
+ set(cmake_2_8_12_PRIVATE PRIVATE)
+ if(POLICY CMP0022)
+ cmake_policy(SET CMP0022 NEW) # automatic when 2.8.12 is required
+ endif()
+endif()
# Top level target used to build all compiler-rt libraries.
-add_custom_target(compiler-rt)
-
-# Compute the Clang version from the LLVM version.
-# FIXME: We should be able to reuse CLANG_VERSION variable calculated
-# in Clang cmake files, instead of copying the rules here.
-string(REGEX MATCH "[0-9]+\\.[0-9]+(\\.[0-9]+)?" CLANG_VERSION
- ${PACKAGE_VERSION})
-# Setup the paths where compiler-rt runtimes and headers should be stored.
-set(LIBCLANG_INSTALL_PATH lib${LLVM_LIBDIR_SUFFIX}/clang/${CLANG_VERSION})
-string(TOLOWER ${CMAKE_SYSTEM_NAME} LIBCLANG_OS_DIR)
-set(CLANG_RESOURCE_DIR ${LLVM_BINARY_DIR}/lib/clang/${CLANG_VERSION})
-set(COMPILER_RT_LIBRARY_OUTPUT_DIR ${CLANG_RESOURCE_DIR}/lib/${LIBCLANG_OS_DIR})
+add_custom_target(compiler-rt ALL)
+
+if (NOT COMPILER_RT_STANDALONE_BUILD)
+ # Compute the Clang version from the LLVM version.
+ # FIXME: We should be able to reuse CLANG_VERSION variable calculated
+ # in Clang cmake files, instead of copying the rules here.
+ string(REGEX MATCH "[0-9]+\\.[0-9]+(\\.[0-9]+)?" CLANG_VERSION
+ ${PACKAGE_VERSION})
+ # Setup the paths where compiler-rt runtimes and headers should be stored.
+ set(COMPILER_RT_OUTPUT_DIR ${LLVM_LIBRARY_OUTPUT_INTDIR}/clang/${CLANG_VERSION})
+ set(COMPILER_RT_EXEC_OUTPUT_DIR ${LLVM_RUNTIME_OUTPUT_INTDIR})
+ set(COMPILER_RT_INSTALL_PATH lib${LLVM_LIBDIR_SUFFIX}/clang/${CLANG_VERSION})
+ option(COMPILER_RT_INCLUDE_TESTS "Generate and build compiler-rt unit tests."
+ ${LLVM_INCLUDE_TESTS})
+ option(COMPILER_RT_ENABLE_WERROR "Fail and stop if warning is triggered"
+ ${LLVM_ENABLE_WERROR})
+ # Use just-built Clang to compile/link tests on all platforms, except for
+ # Windows where we need to use clang-cl instead.
+ if(NOT MSVC)
+ set(COMPILER_RT_TEST_COMPILER ${LLVM_RUNTIME_OUTPUT_INTDIR}/clang)
+ else()
+ set(COMPILER_RT_TEST_COMPILER ${LLVM_RUNTIME_OUTPUT_INTDIR}/clang.exe)
+ endif()
+else()
+ # Take output dir and install path from the user.
+ set(COMPILER_RT_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR} CACHE PATH
+ "Path where built compiler-rt libraries should be stored.")
+ set(COMPILER_RT_EXEC_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR}/bin CACHE PATH
+ "Path where built compiler-rt executables should be stored.")
+ set(COMPILER_RT_INSTALL_PATH ${CMAKE_INSTALL_PREFIX} CACHE PATH
+ "Path where built compiler-rt libraries should be installed.")
+ option(COMPILER_RT_INCLUDE_TESTS "Generate and build compiler-rt unit tests." OFF)
+ option(COMPILER_RT_ENABLE_WERROR "Fail and stop if warning is triggered" OFF)
+ # Use a host compiler to compile/link tests.
+ set(COMPILER_RT_TEST_COMPILER ${CMAKE_C_COMPILER} CACHE PATH "Compiler to use for testing")
+
+ if (NOT LLVM_CONFIG_PATH)
+ find_program(LLVM_CONFIG_PATH "llvm-config"
+ DOC "Path to llvm-config binary")
+ if (NOT LLVM_CONFIG_PATH)
+ message(FATAL_ERROR "llvm-config not found: specify LLVM_CONFIG_PATH")
+ endif()
+ endif()
+ execute_process(
+ COMMAND ${LLVM_CONFIG_PATH} "--obj-root" "--bindir" "--libdir" "--src-root"
+ RESULT_VARIABLE HAD_ERROR
+ OUTPUT_VARIABLE CONFIG_OUTPUT)
+ if (HAD_ERROR)
+ message(FATAL_ERROR "llvm-config failed with status ${HAD_ERROR}")
+ endif()
+ string(REGEX REPLACE "[ \t]*[\r\n]+[ \t]*" ";" CONFIG_OUTPUT ${CONFIG_OUTPUT})
+ list(GET CONFIG_OUTPUT 0 LLVM_BINARY_DIR)
+ list(GET CONFIG_OUTPUT 1 LLVM_TOOLS_BINARY_DIR)
+ list(GET CONFIG_OUTPUT 2 LLVM_LIBRARY_DIR)
+ list(GET CONFIG_OUTPUT 3 LLVM_MAIN_SRC_DIR)
+
+ # Make use of LLVM CMake modules.
+ file(TO_CMAKE_PATH ${LLVM_BINARY_DIR} LLVM_BINARY_DIR_CMAKE_STYLE)
+ set(LLVM_CMAKE_PATH "${LLVM_BINARY_DIR_CMAKE_STYLE}/share/llvm/cmake")
+ list(APPEND CMAKE_MODULE_PATH "${LLVM_CMAKE_PATH}")
+ # Get some LLVM variables from LLVMConfig.
+ include("${LLVM_CMAKE_PATH}/LLVMConfig.cmake")
+
+ set(LLVM_LIBRARY_OUTPUT_INTDIR ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/lib)
+
+ # Find Python interpreter.
+ set(Python_ADDITIONAL_VERSIONS 2.7 2.6 2.5)
+ include(FindPythonInterp)
+ if(NOT PYTHONINTERP_FOUND)
+ message(FATAL_ERROR "
+ Unable to find Python interpreter required testing. Please install Python
+ or specify the PYTHON_EXECUTABLE CMake variable.")
+ endif()
+
+ # Define default arguments to lit.
+ set(LIT_ARGS_DEFAULT "-sv")
+ if (MSVC OR XCODE)
+ set(LIT_ARGS_DEFAULT "${LIT_ARGS_DEFAULT} --no-progress-bar")
+ endif()
+ set(LLVM_LIT_ARGS "${LIT_ARGS_DEFAULT}" CACHE STRING "Default options for lit")
+endif()
+
+if("${COMPILER_RT_TEST_COMPILER}" MATCHES "clang[+]*$")
+ set(COMPILER_RT_TEST_COMPILER_ID Clang)
+elseif("${COMPILER_RT_TEST_COMPILER}" MATCHES "clang.*.exe$")
+ set(COMPILER_RT_TEST_COMPILER_ID Clang)
+else()
+ set(COMPILER_RT_TEST_COMPILER_ID GNU)
+endif()
+
+# Tests using XFAIL use the first value in COMPILER_RT_TEST_TARGET_TRIPLE
+set(COMPILER_RT_TEST_TARGET_TRIPLE ${TARGET_TRIPLE} CACHE STRING
+ "Default triple for cross-compiled executables")
+string(REPLACE "-" ";" TARGET_TRIPLE_LIST ${COMPILER_RT_TEST_TARGET_TRIPLE})
+list(GET TARGET_TRIPLE_LIST 0 COMPILER_RT_TEST_TARGET_ARCH)
+list(GET TARGET_TRIPLE_LIST 1 COMPILER_RT_TEST_TARGET_OS)
+list(GET TARGET_TRIPLE_LIST 2 COMPILER_RT_TEST_TARGET_ABI)
+
+if ("${COMPILER_RT_TEST_TARGET_ABI}" STREQUAL "androideabi")
+ set(ANDROID 1)
+endif()
+
+string(TOLOWER ${CMAKE_SYSTEM_NAME} COMPILER_RT_OS_DIR)
+set(COMPILER_RT_LIBRARY_OUTPUT_DIR
+ ${COMPILER_RT_OUTPUT_DIR}/lib/${COMPILER_RT_OS_DIR})
set(COMPILER_RT_LIBRARY_INSTALL_DIR
- ${LIBCLANG_INSTALL_PATH}/lib/${LIBCLANG_OS_DIR})
+ ${COMPILER_RT_INSTALL_PATH}/lib/${COMPILER_RT_OS_DIR})
-# Add path for custom modules
+# Add path for custom compiler-rt modules.
set(CMAKE_MODULE_PATH