Date: Thu, 6 Nov 2014 22:49:14 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org Subject: svn commit: r274201 - in vendor/compiler-rt/dist: . SDKs/darwin/usr/include SDKs/darwin/usr/include/sys cmake/Modules include include/sanitizer lib lib/arm lib/asan lib/asan/lit_tests lib/asan/lit_... Message-ID: <201411062249.sA6MnEcZ019081@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dim Date: Thu Nov 6 22:49:13 2014 New Revision: 274201 URL: https://svnweb.freebsd.org/changeset/base/274201 Log: Import compiler-rt release_34 branch r197381. https://llvm.org/svn/llvm-project/compiler-rt/branches/release_34@197381 Added: vendor/compiler-rt/dist/SDKs/darwin/usr/include/errno.h (contents, props changed) vendor/compiler-rt/dist/SDKs/darwin/usr/include/sys/errno.h (contents, props changed) vendor/compiler-rt/dist/cmake/Modules/SanitizerUtils.cmake vendor/compiler-rt/dist/include/sanitizer/dfsan_interface.h (contents, props changed) vendor/compiler-rt/dist/include/sanitizer/lsan_interface.h (contents, props changed) vendor/compiler-rt/dist/lib/asan/asan.syms.extra vendor/compiler-rt/dist/lib/asan/asan_dll_thunk.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/32bitConfig/ vendor/compiler-rt/dist/lib/asan/lit_tests/32bitConfig/lit.site.cfg.in (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/64bitConfig/ vendor/compiler-rt/dist/lib/asan/lit_tests/64bitConfig/lit.site.cfg.in (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/ vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Darwin/ vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Darwin/interface_symbols_darwin.c (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Darwin/lit.local.cfg vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Darwin/malloc_set_zone_name-mprotect.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Darwin/malloc_zone-protected.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Darwin/reexec-insert-libraries-env.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Darwin/unset-insert-libraries-on-exec.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Helpers/ vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Helpers/blacklist-extra.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Helpers/echo-env.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Helpers/init-order-atexit-extra.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Helpers/init-order-pthread-create-extra.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Helpers/initialization-blacklist-extra.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Helpers/initialization-blacklist-extra2.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Helpers/initialization-blacklist.txt (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Helpers/initialization-bug-extra.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Helpers/initialization-bug-extra2.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Helpers/initialization-constexpr-extra.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Helpers/initialization-nobug-extra.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Helpers/lit.local.cfg vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Linux/ vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Linux/asan_prelink_test.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Linux/clone_test.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Linux/coverage.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Linux/glob.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Linux/glob_test_root/ vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Linux/glob_test_root/aa vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Linux/glob_test_root/ab vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Linux/glob_test_root/ba vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Linux/heap-overflow-large.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Linux/heavy_uar_test.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Linux/initialization-bug-any-order.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Linux/interception_failure_test.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Linux/interception_malloc_test.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Linux/interception_readdir_r_test.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Linux/interception_test.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Linux/interface_symbols_linux.c (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Linux/lit.local.cfg vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Linux/malloc-in-qsort.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Linux/malloc_delete_mismatch.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Linux/overflow-in-qsort.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Linux/preinit_test.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Linux/ptrace.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Linux/rlimit_mmap_test.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Linux/swapcontext_test.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Linux/syscalls.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Linux/time_null_regtest.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Linux/tsd_dtor_leak.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Linux/uar_signals.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Linux/unpoison_tls.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Linux/zero-base-shadow32.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/Linux/zero-base-shadow64.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/SharedLibs/ vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/SharedLibs/darwin-dummy-shared-lib-so.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/SharedLibs/dlclose-test-so.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/SharedLibs/init-order-dlopen-so.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/SharedLibs/lit.local.cfg vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/SharedLibs/shared-lib-test-so.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/allocator_returns_null.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/allow_user_segv.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/asan-symbolize-sanity-test.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/assign_large_valloc_to_global.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/atexit_stats.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/blacklist.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/contiguous_container.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/current_allocated_bytes.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/deep_call_stack.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/deep_stack_uaf.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/deep_tail_call.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/deep_thread_stack.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/default_blacklist.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/default_options.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/dlclose-test.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/double-free.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/force_inline_opt0.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/free_hook_realloc.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/global-demangle.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/global-overflow.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/heap-overflow.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/huge_negative_hea_oob.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/init-order-atexit.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/init-order-dlopen.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/init-order-pthread-create.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/initialization-blacklist.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/initialization-bug.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/initialization-constexpr.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/initialization-nobug.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/inline.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/interface_test.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/invalid-free.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/ioctl.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/large_func_test.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/log-path_test.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/log_path_fork_test.cc.disabled vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/lsan_annotations.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/malloc_context_size.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/malloc_fill.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/malloc_hook.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/memcmp_strict_test.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/memcmp_test.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/null_deref.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/on_error_callback.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/partial_right.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/poison_partial.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/print_summary.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/readv.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/sanity_check_pure_c.c (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/shared-lib-test.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/sleep_before_dying.c (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/stack-buffer-overflow-with-position.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/stack-frame-demangle.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/stack-oob-frames.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/stack-overflow.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/stack-use-after-return.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/strdup_oob_test.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/strerror_r_test.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/strip_path_prefix.c (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/strncpy-overflow.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/symbolize_callback.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/throw_call_test.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/throw_invoke_test.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/time_interceptor.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/uar_and_exceptions.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/unaligned_loads_and_stores.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/use-after-free-right.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/use-after-free.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/use-after-poison.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/use-after-scope-dtor-order.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/use-after-scope-inlined.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/use-after-scope-nobug.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/use-after-scope-temp.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/use-after-scope.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/lit_tests/TestCases/wait.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/tests/asan_fake_stack_test.cc (contents, props changed) vendor/compiler-rt/dist/lib/asan/tests/asan_interface_test.cc (contents, props changed) vendor/compiler-rt/dist/lib/dfsan/ vendor/compiler-rt/dist/lib/dfsan/CMakeLists.txt (contents, props changed) vendor/compiler-rt/dist/lib/dfsan/Makefile.mk (contents, props changed) vendor/compiler-rt/dist/lib/dfsan/dfsan.cc (contents, props changed) vendor/compiler-rt/dist/lib/dfsan/dfsan.h (contents, props changed) vendor/compiler-rt/dist/lib/dfsan/dfsan.syms.extra vendor/compiler-rt/dist/lib/dfsan/dfsan_custom.cc (contents, props changed) vendor/compiler-rt/dist/lib/dfsan/dfsan_interceptors.cc (contents, props changed) vendor/compiler-rt/dist/lib/dfsan/done_abilist.txt (contents, props changed) vendor/compiler-rt/dist/lib/dfsan/libc_ubuntu1204_abilist.txt (contents, props changed) vendor/compiler-rt/dist/lib/dfsan/lit_tests/ vendor/compiler-rt/dist/lib/dfsan/lit_tests/CMakeLists.txt (contents, props changed) vendor/compiler-rt/dist/lib/dfsan/lit_tests/Inputs/ vendor/compiler-rt/dist/lib/dfsan/lit_tests/Inputs/flags_abilist.txt (contents, props changed) vendor/compiler-rt/dist/lib/dfsan/lit_tests/basic.c (contents, props changed) vendor/compiler-rt/dist/lib/dfsan/lit_tests/custom.c (contents, props changed) vendor/compiler-rt/dist/lib/dfsan/lit_tests/flags.c (contents, props changed) vendor/compiler-rt/dist/lib/dfsan/lit_tests/fncall.c (contents, props changed) vendor/compiler-rt/dist/lib/dfsan/lit_tests/lit.cfg vendor/compiler-rt/dist/lib/dfsan/lit_tests/lit.site.cfg.in (contents, props changed) vendor/compiler-rt/dist/lib/dfsan/lit_tests/propagate.c (contents, props changed) vendor/compiler-rt/dist/lib/dfsan/scripts/ vendor/compiler-rt/dist/lib/dfsan/scripts/build-libc-list.py (contents, props changed) vendor/compiler-rt/dist/lib/lit.common.configured.in (contents, props changed) vendor/compiler-rt/dist/lib/lit.common.unit.configured.in (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/AsanConfig/ vendor/compiler-rt/dist/lib/lsan/lit_tests/AsanConfig/lit.cfg vendor/compiler-rt/dist/lib/lsan/lit_tests/AsanConfig/lit.site.cfg.in (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/LsanConfig/ vendor/compiler-rt/dist/lib/lsan/lit_tests/LsanConfig/lit.cfg vendor/compiler-rt/dist/lib/lsan/lit_tests/LsanConfig/lit.site.cfg.in (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/ vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/SharedLibs/ vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/SharedLibs/huge_tls_lib_so.cc (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/SharedLibs/lit.local.cfg vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/cleanup_in_tsd_destructor.cc (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/disabler.cc (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/disabler_in_tsd_destructor.cc (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/do_leak_check_override.cc (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/fork.cc (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/fork_threaded.cc (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/high_allocator_contention.cc (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/ignore_object.cc (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/ignore_object_errors.cc (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/large_allocation_leak.cc (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/leak_check_at_exit.cc (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/link_turned_off.cc (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/pointer_to_self.cc (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/sanity_check_pure_c.c (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/stale_stack_leak.cc (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/suppressions_default.cc (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/suppressions_file.cc (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/suppressions_file.cc.supp vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/swapcontext.cc (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/use_after_return.cc (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/use_globals_initialized.cc (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/use_globals_uninitialized.cc (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/use_registers.cc (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/use_stacks.cc (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/use_stacks_threaded.cc (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/use_tls_dynamic.cc (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/use_tls_pthread_specific_dynamic.cc (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/use_tls_pthread_specific_static.cc (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/use_tls_static.cc (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/TestCases/use_unaligned.cc (contents, props changed) vendor/compiler-rt/dist/lib/lsan/lit_tests/lit.common.cfg vendor/compiler-rt/dist/lib/lsan/lsan_preinit.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/Linux/glob_altdirfunc.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/Linux/glob_nomatch.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/Linux/tcgetattr.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/SharedLibs/ vendor/compiler-rt/dist/lib/msan/lit_tests/SharedLibs/dso-origin-so.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/SharedLibs/dso-origin.h (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/SharedLibs/lit.local.cfg vendor/compiler-rt/dist/lib/msan/lit_tests/allocator_returns_null.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/backtrace.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/cxa_atexit.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/dlerror.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/dso-origin.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/errno.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/getline.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/getline_test_data vendor/compiler-rt/dist/lib/msan/lit_tests/initgroups.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/inline.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/insertvalue_origin.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/ioctl.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/ioctl_custom.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/keep-going-dso.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/keep-going.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/malloc_hook.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/poison_in_free.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/ptrace.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/scandir.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/scandir_null.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/scandir_test_root/ vendor/compiler-rt/dist/lib/msan/lit_tests/scandir_test_root/aaa vendor/compiler-rt/dist/lib/msan/lit_tests/scandir_test_root/aab vendor/compiler-rt/dist/lib/msan/lit_tests/scandir_test_root/bbb vendor/compiler-rt/dist/lib/msan/lit_tests/select.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/setlocale.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/signal_stress_test.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/sigwait.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/sigwaitinfo.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/sync_lock_set_and_test.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/tzset.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/unaligned_read_origin.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/use-after-free.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/vector_cvt.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/vector_select.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/wrap_indirect_calls/ vendor/compiler-rt/dist/lib/msan/lit_tests/wrap_indirect_calls.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/wrap_indirect_calls/caller.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/wrap_indirect_calls/lit.local.cfg vendor/compiler-rt/dist/lib/msan/lit_tests/wrap_indirect_calls/one.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/wrap_indirect_calls/two.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/lit_tests/wrap_indirect_calls/wrapper.cc (contents, props changed) vendor/compiler-rt/dist/lib/msan/msan.syms.extra vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_allocator_internal.h (contents, props changed) vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_common_interceptors_ioctl.inc (contents, props changed) vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_coverage.cc (contents, props changed) vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_libignore.cc (contents, props changed) vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_libignore.h (contents, props changed) vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_platform_limits_linux.cc (contents, props changed) vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_stacktrace_libcdep.cc (contents, props changed) vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_suppressions.cc (contents, props changed) vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_suppressions.h (contents, props changed) vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_symbolizer.cc (contents, props changed) vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc (contents, props changed) vendor/compiler-rt/dist/lib/sanitizer_common/scripts/cpplint.py (contents, props changed) vendor/compiler-rt/dist/lib/sanitizer_common/scripts/gen_dynamic_list.py (contents, props changed) vendor/compiler-rt/dist/lib/sanitizer_common/scripts/sancov.py (contents, props changed) vendor/compiler-rt/dist/lib/sanitizer_common/tests/sanitizer_ioctl_test.cc (contents, props changed) vendor/compiler-rt/dist/lib/sanitizer_common/tests/sanitizer_nolibc_test.cc (contents, props changed) vendor/compiler-rt/dist/lib/sanitizer_common/tests/sanitizer_nolibc_test_main.cc (contents, props changed) vendor/compiler-rt/dist/lib/sanitizer_common/tests/sanitizer_posix_test.cc (contents, props changed) vendor/compiler-rt/dist/lib/sanitizer_common/tests/sanitizer_procmaps_test.cc (contents, props changed) vendor/compiler-rt/dist/lib/sanitizer_common/tests/sanitizer_suppressions_test.cc (contents, props changed) vendor/compiler-rt/dist/lib/tsan/lit_tests/allocator_returns_null.cc (contents, props changed) vendor/compiler-rt/dist/lib/tsan/lit_tests/cond.c (contents, props changed) vendor/compiler-rt/dist/lib/tsan/lit_tests/cond_race.cc (contents, props changed) vendor/compiler-rt/dist/lib/tsan/lit_tests/cond_version.c (contents, props changed) vendor/compiler-rt/dist/lib/tsan/lit_tests/deep_stack1.cc (contents, props changed) vendor/compiler-rt/dist/lib/tsan/lit_tests/default_options.cc (contents, props changed) vendor/compiler-rt/dist/lib/tsan/lit_tests/fd_close_norace2.cc (contents, props changed) vendor/compiler-rt/dist/lib/tsan/lit_tests/free_race.c.supp vendor/compiler-rt/dist/lib/tsan/lit_tests/halt_on_error.cc (contents, props changed) vendor/compiler-rt/dist/lib/tsan/lit_tests/ignore_free.cc (contents, props changed) vendor/compiler-rt/dist/lib/tsan/lit_tests/ignore_lib0.cc (contents, props changed) vendor/compiler-rt/dist/lib/tsan/lit_tests/ignore_lib0.cc.supp vendor/compiler-rt/dist/lib/tsan/lit_tests/ignore_lib1.cc (contents, props changed) vendor/compiler-rt/dist/lib/tsan/lit_tests/ignore_lib1.cc.supp vendor/compiler-rt/dist/lib/tsan/lit_tests/ignore_lib2.cc (contents, props changed) vendor/compiler-rt/dist/lib/tsan/lit_tests/ignore_lib2.cc.supp vendor/compiler-rt/dist/lib/tsan/lit_tests/ignore_lib3.cc (contents, props changed) vendor/compiler-rt/dist/lib/tsan/lit_tests/ignore_lib3.cc.supp vendor/compiler-rt/dist/lib/tsan/lit_tests/ignore_lib_lib.h (contents, props changed) vendor/compiler-rt/dist/lib/tsan/lit_tests/ignore_malloc.cc (contents, props changed) vendor/compiler-rt/dist/lib/tsan/lit_tests/ignore_sync.cc (contents, props changed) vendor/compiler-rt/dist/lib/tsan/lit_tests/mutex_robust.cc (contents, props changed) vendor/compiler-rt/dist/lib/tsan/lit_tests/mutex_robust2.cc (contents, props changed) vendor/compiler-rt/dist/lib/tsan/lit_tests/sigsuspend.cc (contents, props changed) vendor/compiler-rt/dist/lib/tsan/lit_tests/suppressions_global.cc (contents, props changed) vendor/compiler-rt/dist/lib/tsan/lit_tests/suppressions_global.cc.supp vendor/compiler-rt/dist/lib/tsan/lit_tests/suppressions_race.cc (contents, props changed) vendor/compiler-rt/dist/lib/tsan/lit_tests/suppressions_race.cc.supp vendor/compiler-rt/dist/lib/tsan/lit_tests/suppressions_race2.cc (contents, props changed) vendor/compiler-rt/dist/lib/tsan/lit_tests/suppressions_race2.cc.supp vendor/compiler-rt/dist/lib/tsan/lit_tests/thread_name2.cc (contents, props changed) vendor/compiler-rt/dist/lib/tsan/rtl/tsan.syms.extra vendor/compiler-rt/dist/lib/tsan/tests/unit/tsan_unit_test_main.cc (contents, props changed) vendor/compiler-rt/dist/lib/ubsan/lit_tests/AsanConfig/ vendor/compiler-rt/dist/lib/ubsan/lit_tests/AsanConfig/lit.cfg vendor/compiler-rt/dist/lib/ubsan/lit_tests/AsanConfig/lit.site.cfg.in (contents, props changed) vendor/compiler-rt/dist/lib/ubsan/lit_tests/TestCases/ vendor/compiler-rt/dist/lib/ubsan/lit_tests/TestCases/Float/ vendor/compiler-rt/dist/lib/ubsan/lit_tests/TestCases/Float/cast-overflow.cpp (contents, props changed) vendor/compiler-rt/dist/lib/ubsan/lit_tests/TestCases/Integer/ vendor/compiler-rt/dist/lib/ubsan/lit_tests/TestCases/Integer/add-overflow.cpp (contents, props changed) vendor/compiler-rt/dist/lib/ubsan/lit_tests/TestCases/Integer/div-overflow.cpp (contents, props changed) vendor/compiler-rt/dist/lib/ubsan/lit_tests/TestCases/Integer/div-zero.cpp (contents, props changed) vendor/compiler-rt/dist/lib/ubsan/lit_tests/TestCases/Integer/incdec-overflow.cpp (contents, props changed) vendor/compiler-rt/dist/lib/ubsan/lit_tests/TestCases/Integer/mul-overflow.cpp (contents, props changed) vendor/compiler-rt/dist/lib/ubsan/lit_tests/TestCases/Integer/negate-overflow.cpp (contents, props changed) vendor/compiler-rt/dist/lib/ubsan/lit_tests/TestCases/Integer/no-recover.cpp (contents, props changed) vendor/compiler-rt/dist/lib/ubsan/lit_tests/TestCases/Integer/shift.cpp (contents, props changed) vendor/compiler-rt/dist/lib/ubsan/lit_tests/TestCases/Integer/sub-overflow.cpp (contents, props changed) vendor/compiler-rt/dist/lib/ubsan/lit_tests/TestCases/Integer/uadd-overflow.cpp (contents, props changed) vendor/compiler-rt/dist/lib/ubsan/lit_tests/TestCases/Integer/uincdec-overflow.cpp (contents, props changed) vendor/compiler-rt/dist/lib/ubsan/lit_tests/TestCases/Integer/umul-overflow.cpp (contents, props changed) vendor/compiler-rt/dist/lib/ubsan/lit_tests/TestCases/Integer/usub-overflow.cpp (contents, props changed) vendor/compiler-rt/dist/lib/ubsan/lit_tests/TestCases/Misc/ vendor/compiler-rt/dist/lib/ubsan/lit_tests/TestCases/Misc/bool.cpp (contents, props changed) vendor/compiler-rt/dist/lib/ubsan/lit_tests/TestCases/Misc/bounds.cpp (contents, props changed) vendor/compiler-rt/dist/lib/ubsan/lit_tests/TestCases/Misc/deduplication.cpp (contents, props changed) vendor/compiler-rt/dist/lib/ubsan/lit_tests/TestCases/Misc/enum.cpp (contents, props changed) vendor/compiler-rt/dist/lib/ubsan/lit_tests/TestCases/Misc/missing_return.cpp (contents, props changed) vendor/compiler-rt/dist/lib/ubsan/lit_tests/TestCases/Misc/unreachable.cpp (contents, props changed) vendor/compiler-rt/dist/lib/ubsan/lit_tests/TestCases/Misc/vla.c (contents, props changed) vendor/compiler-rt/dist/lib/ubsan/lit_tests/TestCases/TypeCheck/ vendor/compiler-rt/dist/lib/ubsan/lit_tests/TestCases/TypeCheck/Function/ vendor/compiler-rt/dist/lib/ubsan/lit_tests/TestCases/TypeCheck/Function/function.cpp (contents, props changed) vendor/compiler-rt/dist/lib/ubsan/lit_tests/TestCases/TypeCheck/Function/lit.local.cfg vendor/compiler-rt/dist/lib/ubsan/lit_tests/TestCases/TypeCheck/misaligned.cpp (contents, props changed) vendor/compiler-rt/dist/lib/ubsan/lit_tests/TestCases/TypeCheck/null.cpp (contents, props changed) vendor/compiler-rt/dist/lib/ubsan/lit_tests/TestCases/TypeCheck/vptr.cpp (contents, props changed) vendor/compiler-rt/dist/lib/ubsan/lit_tests/UbsanConfig/ vendor/compiler-rt/dist/lib/ubsan/lit_tests/UbsanConfig/lit.cfg vendor/compiler-rt/dist/lib/ubsan/lit_tests/UbsanConfig/lit.site.cfg.in (contents, props changed) vendor/compiler-rt/dist/lib/ubsan/lit_tests/lit.common.cfg vendor/compiler-rt/dist/lib/ubsan/ubsan.syms.extra vendor/compiler-rt/dist/make/platform/clang_darwin_embedded.mk (contents, props changed) Deleted: vendor/compiler-rt/dist/lib/asan/asan.syms vendor/compiler-rt/dist/lib/asan/lit_tests/Darwin/ vendor/compiler-rt/dist/lib/asan/lit_tests/Helpers/ vendor/compiler-rt/dist/lib/asan/lit_tests/Linux/ vendor/compiler-rt/dist/lib/asan/lit_tests/SharedLibs/ vendor/compiler-rt/dist/lib/asan/lit_tests/Unit/lit.cfg vendor/compiler-rt/dist/lib/asan/lit_tests/allow_user_segv.cc vendor/compiler-rt/dist/lib/asan/lit_tests/blacklist.cc vendor/compiler-rt/dist/lib/asan/lit_tests/deep_stack_uaf.cc vendor/compiler-rt/dist/lib/asan/lit_tests/deep_tail_call.cc vendor/compiler-rt/dist/lib/asan/lit_tests/deep_thread_stack.cc vendor/compiler-rt/dist/lib/asan/lit_tests/default_blacklist.cc vendor/compiler-rt/dist/lib/asan/lit_tests/default_options.cc vendor/compiler-rt/dist/lib/asan/lit_tests/dlclose-test.cc vendor/compiler-rt/dist/lib/asan/lit_tests/double-free.cc vendor/compiler-rt/dist/lib/asan/lit_tests/force_inline_opt0.cc vendor/compiler-rt/dist/lib/asan/lit_tests/global-demangle.cc vendor/compiler-rt/dist/lib/asan/lit_tests/global-overflow.cc vendor/compiler-rt/dist/lib/asan/lit_tests/heap-overflow.cc vendor/compiler-rt/dist/lib/asan/lit_tests/huge_negative_hea_oob.cc vendor/compiler-rt/dist/lib/asan/lit_tests/init-order-atexit.cc vendor/compiler-rt/dist/lib/asan/lit_tests/init-order-dlopen.cc vendor/compiler-rt/dist/lib/asan/lit_tests/initialization-blacklist.cc vendor/compiler-rt/dist/lib/asan/lit_tests/initialization-bug.cc vendor/compiler-rt/dist/lib/asan/lit_tests/initialization-constexpr.cc vendor/compiler-rt/dist/lib/asan/lit_tests/initialization-nobug.cc vendor/compiler-rt/dist/lib/asan/lit_tests/interface_test.cc vendor/compiler-rt/dist/lib/asan/lit_tests/invalid-free.cc vendor/compiler-rt/dist/lib/asan/lit_tests/large_func_test.cc vendor/compiler-rt/dist/lib/asan/lit_tests/lit.site.cfg.in vendor/compiler-rt/dist/lib/asan/lit_tests/log-path_test.cc vendor/compiler-rt/dist/lib/asan/lit_tests/log_path_fork_test.cc.disabled vendor/compiler-rt/dist/lib/asan/lit_tests/malloc_fill.cc vendor/compiler-rt/dist/lib/asan/lit_tests/malloc_hook.cc vendor/compiler-rt/dist/lib/asan/lit_tests/memcmp_strict_test.cc vendor/compiler-rt/dist/lib/asan/lit_tests/memcmp_test.cc vendor/compiler-rt/dist/lib/asan/lit_tests/null_deref.cc vendor/compiler-rt/dist/lib/asan/lit_tests/on_error_callback.cc vendor/compiler-rt/dist/lib/asan/lit_tests/partial_right.cc vendor/compiler-rt/dist/lib/asan/lit_tests/sanity_check_pure_c.c vendor/compiler-rt/dist/lib/asan/lit_tests/shared-lib-test.cc vendor/compiler-rt/dist/lib/asan/lit_tests/sleep_before_dying.c vendor/compiler-rt/dist/lib/asan/lit_tests/stack-frame-demangle.cc vendor/compiler-rt/dist/lib/asan/lit_tests/stack-oob-frames.cc vendor/compiler-rt/dist/lib/asan/lit_tests/stack-overflow.cc vendor/compiler-rt/dist/lib/asan/lit_tests/stack-use-after-return.cc vendor/compiler-rt/dist/lib/asan/lit_tests/strip_path_prefix.c vendor/compiler-rt/dist/lib/asan/lit_tests/strncpy-overflow.cc vendor/compiler-rt/dist/lib/asan/lit_tests/symbolize_callback.cc vendor/compiler-rt/dist/lib/asan/lit_tests/throw_call_test.cc vendor/compiler-rt/dist/lib/asan/lit_tests/throw_invoke_test.cc vendor/compiler-rt/dist/lib/asan/lit_tests/time_interceptor.cc vendor/compiler-rt/dist/lib/asan/lit_tests/unaligned_loads_and_stores.cc vendor/compiler-rt/dist/lib/asan/lit_tests/use-after-free-right.cc vendor/compiler-rt/dist/lib/asan/lit_tests/use-after-free.cc vendor/compiler-rt/dist/lib/asan/lit_tests/use-after-poison.cc vendor/compiler-rt/dist/lib/asan/lit_tests/use-after-scope-inlined.cc vendor/compiler-rt/dist/lib/asan/lit_tests/wait.cc vendor/compiler-rt/dist/lib/lsan/lit_tests/SharedLibs/ vendor/compiler-rt/dist/lib/lsan/lit_tests/Unit/lit.cfg vendor/compiler-rt/dist/lib/lsan/lit_tests/lit.cfg vendor/compiler-rt/dist/lib/lsan/lit_tests/lit.site.cfg.in vendor/compiler-rt/dist/lib/lsan/lit_tests/use_globals_initialized.cc vendor/compiler-rt/dist/lib/msan/lit_tests/Unit/lit.cfg vendor/compiler-rt/dist/lib/msan/msan.syms vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_symbolizer_itanium.cc vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_symbolizer_linux_libcdep.cc vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_symbolizer_mac.cc vendor/compiler-rt/dist/lib/sanitizer_common/tests/lit.cfg vendor/compiler-rt/dist/lib/tsan/rtl/CMakeLists.txt vendor/compiler-rt/dist/lib/tsan/rtl/tsan.syms vendor/compiler-rt/dist/lib/tsan/tests/unit/tsan_suppressions_test.cc vendor/compiler-rt/dist/lib/ubsan/lit_tests/Float/ vendor/compiler-rt/dist/lib/ubsan/lit_tests/Integer/ vendor/compiler-rt/dist/lib/ubsan/lit_tests/Misc/ vendor/compiler-rt/dist/lib/ubsan/lit_tests/TypeCheck/ vendor/compiler-rt/dist/lib/ubsan/lit_tests/lit.cfg vendor/compiler-rt/dist/lib/ubsan/lit_tests/lit.site.cfg.in vendor/compiler-rt/dist/lib/ubsan/ubsan.syms Modified: vendor/compiler-rt/dist/CMakeLists.txt vendor/compiler-rt/dist/SDKs/darwin/usr/include/string.h vendor/compiler-rt/dist/cmake/Modules/AddCompilerRT.cmake vendor/compiler-rt/dist/cmake/Modules/CompilerRTUtils.cmake vendor/compiler-rt/dist/include/CMakeLists.txt vendor/compiler-rt/dist/include/sanitizer/common_interface_defs.h vendor/compiler-rt/dist/include/sanitizer/linux_syscall_hooks.h vendor/compiler-rt/dist/include/sanitizer/msan_interface.h vendor/compiler-rt/dist/lib/CMakeLists.txt vendor/compiler-rt/dist/lib/Makefile.mk vendor/compiler-rt/dist/lib/apple_versioning.c vendor/compiler-rt/dist/lib/arm/Makefile.mk vendor/compiler-rt/dist/lib/arm/comparesf2.S vendor/compiler-rt/dist/lib/arm/divmodsi4.S vendor/compiler-rt/dist/lib/arm/divsi3.S vendor/compiler-rt/dist/lib/arm/modsi3.S vendor/compiler-rt/dist/lib/arm/switch16.S vendor/compiler-rt/dist/lib/arm/switch32.S vendor/compiler-rt/dist/lib/arm/switch8.S vendor/compiler-rt/dist/lib/arm/switchu8.S vendor/compiler-rt/dist/lib/arm/udivmodsi4.S vendor/compiler-rt/dist/lib/arm/udivsi3.S vendor/compiler-rt/dist/lib/arm/umodsi3.S vendor/compiler-rt/dist/lib/asan/CMakeLists.txt vendor/compiler-rt/dist/lib/asan/asan_allocator.h vendor/compiler-rt/dist/lib/asan/asan_allocator2.cc vendor/compiler-rt/dist/lib/asan/asan_blacklist.txt vendor/compiler-rt/dist/lib/asan/asan_fake_stack.cc vendor/compiler-rt/dist/lib/asan/asan_fake_stack.h vendor/compiler-rt/dist/lib/asan/asan_flags.h vendor/compiler-rt/dist/lib/asan/asan_globals.cc vendor/compiler-rt/dist/lib/asan/asan_intercepted_functions.h vendor/compiler-rt/dist/lib/asan/asan_interceptors.cc vendor/compiler-rt/dist/lib/asan/asan_interface_internal.h vendor/compiler-rt/dist/lib/asan/asan_internal.h vendor/compiler-rt/dist/lib/asan/asan_linux.cc vendor/compiler-rt/dist/lib/asan/asan_mac.cc vendor/compiler-rt/dist/lib/asan/asan_mac.h vendor/compiler-rt/dist/lib/asan/asan_malloc_linux.cc vendor/compiler-rt/dist/lib/asan/asan_malloc_mac.cc vendor/compiler-rt/dist/lib/asan/asan_malloc_win.cc vendor/compiler-rt/dist/lib/asan/asan_mapping.h vendor/compiler-rt/dist/lib/asan/asan_poisoning.cc vendor/compiler-rt/dist/lib/asan/asan_poisoning.h vendor/compiler-rt/dist/lib/asan/asan_posix.cc vendor/compiler-rt/dist/lib/asan/asan_report.cc vendor/compiler-rt/dist/lib/asan/asan_report.h vendor/compiler-rt/dist/lib/asan/asan_rtl.cc vendor/compiler-rt/dist/lib/asan/asan_stack.cc vendor/compiler-rt/dist/lib/asan/asan_stack.h vendor/compiler-rt/dist/lib/asan/asan_stats.cc vendor/compiler-rt/dist/lib/asan/asan_stats.h vendor/compiler-rt/dist/lib/asan/asan_thread.cc vendor/compiler-rt/dist/lib/asan/asan_thread.h vendor/compiler-rt/dist/lib/asan/asan_win.cc vendor/compiler-rt/dist/lib/asan/lit_tests/CMakeLists.txt vendor/compiler-rt/dist/lib/asan/lit_tests/Unit/lit.site.cfg.in vendor/compiler-rt/dist/lib/asan/lit_tests/lit.cfg vendor/compiler-rt/dist/lib/asan/scripts/asan_symbolize.py vendor/compiler-rt/dist/lib/asan/tests/CMakeLists.txt vendor/compiler-rt/dist/lib/asan/tests/asan_mac_test_helpers.mm vendor/compiler-rt/dist/lib/asan/tests/asan_noinst_test.cc vendor/compiler-rt/dist/lib/asan/tests/asan_str_test.cc vendor/compiler-rt/dist/lib/asan/tests/asan_test.cc vendor/compiler-rt/dist/lib/asan/tests/asan_test_utils.h vendor/compiler-rt/dist/lib/eprintf.c vendor/compiler-rt/dist/lib/int_endianness.h vendor/compiler-rt/dist/lib/int_util.c vendor/compiler-rt/dist/lib/interception/CMakeLists.txt vendor/compiler-rt/dist/lib/interception/interception.h vendor/compiler-rt/dist/lib/interception/interception_linux.cc vendor/compiler-rt/dist/lib/interception/interception_linux.h vendor/compiler-rt/dist/lib/interception/interception_mac.h vendor/compiler-rt/dist/lib/interception/interception_win.h vendor/compiler-rt/dist/lib/lit.common.cfg vendor/compiler-rt/dist/lib/lit.common.unit.cfg vendor/compiler-rt/dist/lib/lsan/CMakeLists.txt vendor/compiler-rt/dist/lib/lsan/Makefile.mk vendor/compiler-rt/dist/lib/lsan/lit_tests/CMakeLists.txt vendor/compiler-rt/dist/lib/lsan/lit_tests/Unit/lit.site.cfg.in vendor/compiler-rt/dist/lib/lsan/lsan.cc vendor/compiler-rt/dist/lib/lsan/lsan.h vendor/compiler-rt/dist/lib/lsan/lsan_allocator.cc vendor/compiler-rt/dist/lib/lsan/lsan_common.cc vendor/compiler-rt/dist/lib/lsan/lsan_common.h vendor/compiler-rt/dist/lib/lsan/lsan_common_linux.cc vendor/compiler-rt/dist/lib/lsan/lsan_interceptors.cc vendor/compiler-rt/dist/lib/lsan/lsan_thread.cc vendor/compiler-rt/dist/lib/lsan/lsan_thread.h vendor/compiler-rt/dist/lib/lsan/tests/CMakeLists.txt vendor/compiler-rt/dist/lib/lsan/tests/lsan_dummy_unittest.cc vendor/compiler-rt/dist/lib/lsan/tests/lsan_testlib.cc vendor/compiler-rt/dist/lib/msan/CMakeLists.txt vendor/compiler-rt/dist/lib/msan/lit_tests/CMakeLists.txt vendor/compiler-rt/dist/lib/msan/lit_tests/Linux/glob.cc vendor/compiler-rt/dist/lib/msan/lit_tests/Linux/syscalls.cc vendor/compiler-rt/dist/lib/msan/lit_tests/Unit/lit.site.cfg.in vendor/compiler-rt/dist/lib/msan/lit_tests/getaddrinfo-positive.cc vendor/compiler-rt/dist/lib/msan/lit_tests/heap-origin.cc vendor/compiler-rt/dist/lib/msan/lit_tests/lit.cfg vendor/compiler-rt/dist/lib/msan/lit_tests/lit.site.cfg.in vendor/compiler-rt/dist/lib/msan/lit_tests/no_sanitize_memory_prop.cc vendor/compiler-rt/dist/lib/msan/lit_tests/stack-origin.cc vendor/compiler-rt/dist/lib/msan/msan.cc vendor/compiler-rt/dist/lib/msan/msan.h vendor/compiler-rt/dist/lib/msan/msan_allocator.cc vendor/compiler-rt/dist/lib/msan/msan_flags.h vendor/compiler-rt/dist/lib/msan/msan_interceptors.cc vendor/compiler-rt/dist/lib/msan/msan_interface_internal.h vendor/compiler-rt/dist/lib/msan/msan_linux.cc vendor/compiler-rt/dist/lib/msan/msan_new_delete.cc vendor/compiler-rt/dist/lib/msan/msan_report.cc vendor/compiler-rt/dist/lib/msan/tests/CMakeLists.txt vendor/compiler-rt/dist/lib/msan/tests/msan_test.cc vendor/compiler-rt/dist/lib/msandr/README.txt vendor/compiler-rt/dist/lib/msandr/msandr.cc vendor/compiler-rt/dist/lib/profile/CMakeLists.txt vendor/compiler-rt/dist/lib/profile/GCDAProfiling.c vendor/compiler-rt/dist/lib/sanitizer_common/CMakeLists.txt vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_allocator.cc vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_allocator.h vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_atomic_clang.h vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_common.cc vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_common.h vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_common_interceptors.inc vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_common_interceptors_scanf.inc vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_common_libcdep.cc vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_common_syscalls.inc vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_flags.cc vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_flags.h vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_internal_defs.h vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_libc.cc vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_libc.h vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_linux.cc vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_linux.h vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_linux_libcdep.cc vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_mac.cc vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_mutex.h vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_placement_new.h vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_platform.h vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_platform_interceptors.h vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_platform_limits_posix.cc vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_platform_limits_posix.h vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_posix.cc vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_posix_libcdep.cc vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_printf.cc vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_procmaps.h vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_quarantine.h vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_report_decorator.h vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_stackdepot.cc vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_stackdepot.h vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_stacktrace.cc vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_stacktrace.h vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_stoptheworld.h vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_symbolizer.h vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_symbolizer_libcdep.cc vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_symbolizer_win.cc vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_syscall_linux_x86_64.inc vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_thread_registry.cc vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_thread_registry.h vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_win.cc vendor/compiler-rt/dist/lib/sanitizer_common/scripts/check_lint.sh vendor/compiler-rt/dist/lib/sanitizer_common/tests/CMakeLists.txt vendor/compiler-rt/dist/lib/sanitizer_common/tests/lit.site.cfg.in vendor/compiler-rt/dist/lib/sanitizer_common/tests/sanitizer_allocator_test.cc vendor/compiler-rt/dist/lib/sanitizer_common/tests/sanitizer_common_test.cc vendor/compiler-rt/dist/lib/sanitizer_common/tests/sanitizer_libc_test.cc vendor/compiler-rt/dist/lib/sanitizer_common/tests/sanitizer_linux_test.cc vendor/compiler-rt/dist/lib/sanitizer_common/tests/sanitizer_mutex_test.cc vendor/compiler-rt/dist/lib/sanitizer_common/tests/sanitizer_printf_test.cc vendor/compiler-rt/dist/lib/sanitizer_common/tests/sanitizer_scanf_interceptor_test.cc vendor/compiler-rt/dist/lib/sanitizer_common/tests/sanitizer_stackdepot_test.cc vendor/compiler-rt/dist/lib/sanitizer_common/tests/sanitizer_stacktrace_test.cc vendor/compiler-rt/dist/lib/sanitizer_common/tests/sanitizer_stoptheworld_test.cc vendor/compiler-rt/dist/lib/sanitizer_common/tests/sanitizer_test_main.cc vendor/compiler-rt/dist/lib/sanitizer_common/tests/sanitizer_test_utils.h vendor/compiler-rt/dist/lib/sanitizer_common/tests/sanitizer_thread_registry_test.cc vendor/compiler-rt/dist/lib/tsan/CMakeLists.txt vendor/compiler-rt/dist/lib/tsan/Makefile.old vendor/compiler-rt/dist/lib/tsan/check_cmake.sh vendor/compiler-rt/dist/lib/tsan/go/buildgo.sh vendor/compiler-rt/dist/lib/tsan/go/test.c vendor/compiler-rt/dist/lib/tsan/go/tsan_go.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/CMakeLists.txt vendor/compiler-rt/dist/lib/tsan/lit_tests/Unit/lit.cfg vendor/compiler-rt/dist/lib/tsan/lit_tests/Unit/lit.site.cfg.in vendor/compiler-rt/dist/lib/tsan/lit_tests/atomic_free.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/atomic_free2.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/atomic_race.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/atomic_stack.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/fd_location.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/fd_pipe_race.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/fd_stdout_race.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/free_race.c vendor/compiler-rt/dist/lib/tsan/lit_tests/free_race2.c vendor/compiler-rt/dist/lib/tsan/lit_tests/global_race.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/heap_race.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/inlined_memcpy_race.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/java.h vendor/compiler-rt/dist/lib/tsan/lit_tests/java_lock_rec_race.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/java_race.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/java_race_move.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/lit.cfg vendor/compiler-rt/dist/lib/tsan/lit_tests/lit.site.cfg.in vendor/compiler-rt/dist/lib/tsan/lit_tests/load_shared_lib.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/longjmp3.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/longjmp4.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/malloc_overflow.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/malloc_stack.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/memcpy_race.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/mop_with_offset.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/mop_with_offset2.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/mutex_destroy_locked.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/mutexset1.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/mutexset2.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/mutexset3.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/mutexset4.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/mutexset5.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/mutexset6.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/mutexset7.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/mutexset8.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/oob_race.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/race_on_barrier.c vendor/compiler-rt/dist/lib/tsan/lit_tests/race_on_barrier2.c vendor/compiler-rt/dist/lib/tsan/lit_tests/race_on_heap.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/race_on_mutex.c vendor/compiler-rt/dist/lib/tsan/lit_tests/race_on_mutex2.c vendor/compiler-rt/dist/lib/tsan/lit_tests/race_on_read.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/race_on_write.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/race_with_finished_thread.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/signal_errno.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/signal_malloc.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/simple_race.c vendor/compiler-rt/dist/lib/tsan/lit_tests/simple_race.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/simple_stack.c vendor/compiler-rt/dist/lib/tsan/lit_tests/simple_stack2.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/sleep_sync.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/sleep_sync2.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/stack_race.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/stack_race2.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/static_init3.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/suppress_same_address.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/suppress_same_stacks.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/test_output.sh vendor/compiler-rt/dist/lib/tsan/lit_tests/thread_leak3.c vendor/compiler-rt/dist/lib/tsan/lit_tests/thread_leak5.c vendor/compiler-rt/dist/lib/tsan/lit_tests/thread_name.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/tiny_race.c vendor/compiler-rt/dist/lib/tsan/lit_tests/tls_race.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/tls_race2.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/unaligned_race.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/vptr_harmful_race.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/vptr_harmful_race2.cc vendor/compiler-rt/dist/lib/tsan/lit_tests/write_in_reader_lock.cc vendor/compiler-rt/dist/lib/tsan/rtl/tsan_defs.h vendor/compiler-rt/dist/lib/tsan/rtl/tsan_fd.cc vendor/compiler-rt/dist/lib/tsan/rtl/tsan_flags.cc vendor/compiler-rt/dist/lib/tsan/rtl/tsan_flags.h vendor/compiler-rt/dist/lib/tsan/rtl/tsan_interceptors.cc vendor/compiler-rt/dist/lib/tsan/rtl/tsan_interface.cc vendor/compiler-rt/dist/lib/tsan/rtl/tsan_interface.h vendor/compiler-rt/dist/lib/tsan/rtl/tsan_interface_ann.cc vendor/compiler-rt/dist/lib/tsan/rtl/tsan_interface_ann.h vendor/compiler-rt/dist/lib/tsan/rtl/tsan_interface_atomic.cc vendor/compiler-rt/dist/lib/tsan/rtl/tsan_interface_java.cc vendor/compiler-rt/dist/lib/tsan/rtl/tsan_mman.cc vendor/compiler-rt/dist/lib/tsan/rtl/tsan_platform.h vendor/compiler-rt/dist/lib/tsan/rtl/tsan_platform_linux.cc vendor/compiler-rt/dist/lib/tsan/rtl/tsan_report.cc vendor/compiler-rt/dist/lib/tsan/rtl/tsan_rtl.cc vendor/compiler-rt/dist/lib/tsan/rtl/tsan_rtl.h vendor/compiler-rt/dist/lib/tsan/rtl/tsan_rtl_mutex.cc vendor/compiler-rt/dist/lib/tsan/rtl/tsan_rtl_report.cc vendor/compiler-rt/dist/lib/tsan/rtl/tsan_rtl_thread.cc vendor/compiler-rt/dist/lib/tsan/rtl/tsan_stat.cc vendor/compiler-rt/dist/lib/tsan/rtl/tsan_stat.h vendor/compiler-rt/dist/lib/tsan/rtl/tsan_suppressions.cc vendor/compiler-rt/dist/lib/tsan/rtl/tsan_suppressions.h vendor/compiler-rt/dist/lib/tsan/rtl/tsan_symbolize.cc vendor/compiler-rt/dist/lib/tsan/rtl/tsan_symbolize.h vendor/compiler-rt/dist/lib/tsan/rtl/tsan_symbolize_addr2line_linux.cc vendor/compiler-rt/dist/lib/tsan/rtl/tsan_sync.cc vendor/compiler-rt/dist/lib/tsan/rtl/tsan_trace.h vendor/compiler-rt/dist/lib/tsan/rtl/tsan_update_shadow_word_inl.h vendor/compiler-rt/dist/lib/tsan/tests/CMakeLists.txt vendor/compiler-rt/dist/lib/tsan/tests/rtl/CMakeLists.txt vendor/compiler-rt/dist/lib/tsan/tests/unit/CMakeLists.txt vendor/compiler-rt/dist/lib/tsan/tests/unit/tsan_mman_test.cc vendor/compiler-rt/dist/lib/tsan/tests/unit/tsan_stack_test.cc vendor/compiler-rt/dist/lib/ubsan/CMakeLists.txt vendor/compiler-rt/dist/lib/ubsan/lit_tests/CMakeLists.txt vendor/compiler-rt/dist/lib/ubsan/ubsan_diag.cc vendor/compiler-rt/dist/lib/ubsan/ubsan_diag.h vendor/compiler-rt/dist/lib/ubsan/ubsan_handlers.cc vendor/compiler-rt/dist/lib/ubsan/ubsan_handlers.h vendor/compiler-rt/dist/lib/ubsan/ubsan_type_hash.cc vendor/compiler-rt/dist/make/AppleBI.mk vendor/compiler-rt/dist/make/platform/clang_darwin.mk vendor/compiler-rt/dist/make/platform/clang_linux.mk vendor/compiler-rt/dist/make/platform/darwin_bni.mk Modified: vendor/compiler-rt/dist/CMakeLists.txt ============================================================================== --- vendor/compiler-rt/dist/CMakeLists.txt Thu Nov 6 22:46:40 2014 (r274200) +++ vendor/compiler-rt/dist/CMakeLists.txt Thu Nov 6 22:49:13 2014 (r274201) @@ -15,6 +15,9 @@ include(LLVMParseArguments) # runtime libraries. cmake_minimum_required(VERSION 2.8.8) +# 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. @@ -36,21 +39,24 @@ set(CMAKE_MODULE_PATH include(AddCompilerRT) set(COMPILER_RT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) +set(COMPILER_RT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}) # Setup custom SDK sysroots. set(COMPILER_RT_DARWIN_SDK_SYSROOT ${COMPILER_RT_SOURCE_DIR}/SDKs/darwin) set(COMPILER_RT_LINUX_SDK_SYSROOT ${COMPILER_RT_SOURCE_DIR}/SDKs/linux) +include(SanitizerUtils) # Detect whether the current target platform is 32-bit or 64-bit, and setup # the correct commandline flags needed to attempt to target 32-bit and 64-bit. -if(CMAKE_SIZEOF_VOID_P EQUAL 4 OR LLVM_BUILD_32_BITS) +if (NOT CMAKE_SIZEOF_VOID_P EQUAL 4 AND + NOT CMAKE_SIZEOF_VOID_P EQUAL 8) + message(FATAL_ERROR "Please use architecture with 4 or 8 byte pointers.") +endif() +if (NOT MSVC) set(TARGET_64_BIT_CFLAGS "-m64") - set(TARGET_32_BIT_CFLAGS "") + set(TARGET_32_BIT_CFLAGS "-m32") else() - if(NOT CMAKE_SIZEOF_VOID_P EQUAL 8) - message(FATAL_ERROR "Please use a sane architecture with 4 or 8 byte pointers.") - endif() set(TARGET_64_BIT_CFLAGS "") - set(TARGET_32_BIT_CFLAGS "-m32") + set(TARGET_32_BIT_CFLAGS "") endif() # List of architectures we can target. @@ -86,13 +92,12 @@ macro(test_target_arch arch) endmacro() if("${LLVM_NATIVE_ARCH}" STREQUAL "X86") - test_target_arch(x86_64 ${TARGET_64_BIT_CFLAGS}) + if (NOT MSVC) + test_target_arch(x86_64 ${TARGET_64_BIT_CFLAGS}) + endif() test_target_arch(i386 ${TARGET_32_BIT_CFLAGS}) elseif("${LLVM_NATIVE_ARCH}" STREQUAL "PowerPC") - # Explicitly set -m flag on powerpc, because on ppc64 defaults for gcc and - # clang are different. - test_target_arch(powerpc64 "-m64") - test_target_arch(powerpc "-m32") + test_target_arch(powerpc64 ${TARGET_64_BIT_CFLAGS}) endif() # We only support running instrumented tests when we're not cross compiling @@ -119,26 +124,43 @@ function(filter_available_targets out_va set(${out_var} ${archs} PARENT_SCOPE) endfunction() +option(COMPILER_RT_DEBUG "Build runtimes with full debug info" OFF) + +# COMPILER_RT_DEBUG_PYBOOL is used by lit.common.configured.in. +pythonize_bool(COMPILER_RT_DEBUG) + # Provide some common commmandline flags for Sanitizer runtimes. -set(SANITIZER_COMMON_CFLAGS - -fPIC - -fno-builtin - -fno-exceptions - -fomit-frame-pointer - -funwind-tables - -fno-stack-protector - -Wno-gnu # Variadic macros with 0 arguments for ... - -O3 - ) -if(NOT WIN32) - list(APPEND SANITIZER_COMMON_CFLAGS -fvisibility=hidden) -endif() -# Build sanitizer runtimes with debug info. -check_cxx_compiler_flag(-gline-tables-only SUPPORTS_GLINE_TABLES_ONLY_FLAG) -if(SUPPORTS_GLINE_TABLES_ONLY_FLAG) - list(APPEND SANITIZER_COMMON_CFLAGS -gline-tables-only) +if (NOT MSVC) + set(SANITIZER_COMMON_CFLAGS + -fPIC + -fno-builtin + -fno-exceptions + -fomit-frame-pointer + -funwind-tables + -fno-stack-protector + -Wno-gnu # Variadic macros with 0 arguments for ... + -fvisibility=hidden + ) + if (NOT COMPILER_RT_DEBUG) + list(APPEND SANITIZER_COMMON_CFLAGS -O3) + endif() else() - list(APPEND SANITIZER_COMMON_CFLAGS -g) + set(SANITIZER_COMMON_CFLAGS + /MT + /Zi + /Oy- + /GS- + /wd4722 + ) +endif() +# Build sanitizer runtimes with debug info. (MSVC gets /Zi above) +if (NOT MSVC) + check_cxx_compiler_flag(-gline-tables-only SUPPORTS_GLINE_TABLES_ONLY_FLAG) + if(SUPPORTS_GLINE_TABLES_ONLY_FLAG AND NOT COMPILER_RT_DEBUG) + list(APPEND SANITIZER_COMMON_CFLAGS -gline-tables-only) + else() + list(APPEND SANITIZER_COMMON_CFLAGS -g) + endif() endif() # Warnings suppressions. check_cxx_compiler_flag(-Wno-variadic-macros SUPPORTS_NO_VARIADIC_MACROS_FLAG) @@ -155,30 +177,50 @@ check_cxx_compiler_flag(-Wno-non-virtual if (SUPPORTS_NO_NON_VIRTUAL_DTOR_FLAG) list(APPEND SANITIZER_COMMON_CFLAGS -Wno-non-virtual-dtor) endif() +check_cxx_compiler_flag(-Wglobal-constructors SUPPORTS_GLOBAL_CONSTRUCTORS_FLAG) +# Not all sanitizers forbid global constructors. -# Setup min Mac OS X version. if(APPLE) + # Obtain the iOS Simulator SDK path from xcodebuild. + execute_process( + COMMAND xcodebuild -version -sdk iphonesimulator Path + OUTPUT_VARIABLE IOSSIM_SDK_DIR + OUTPUT_STRIP_TRAILING_WHITESPACE + ) + set(SANITIZER_COMMON_SUPPORTED_DARWIN_OS osx) + if (IOSSIM_SDK_DIR) + list(APPEND SANITIZER_COMMON_SUPPORTED_DARWIN_OS iossim) + endif() + if(COMPILER_RT_USES_LIBCXX) set(SANITIZER_MIN_OSX_VERSION 10.7) else() - set(SANITIZER_MIN_OSX_VERSION 10.5) + set(SANITIZER_MIN_OSX_VERSION 10.6) endif() - list(APPEND SANITIZER_COMMON_CFLAGS - -mmacosx-version-min=${SANITIZER_MIN_OSX_VERSION}) + set(DARWIN_osx_CFLAGS -mmacosx-version-min=${SANITIZER_MIN_OSX_VERSION}) + set(DARWIN_iossim_CFLAGS + -mios-simulator-version-min=7.0 -isysroot ${IOSSIM_SDK_DIR}) + set(DARWIN_osx_LINKFLAGS) + set(DARWIN_iossim_LINKFLAGS + -Wl,-ios_simulator_version_min,7.0.0 + -mios-simulator-version-min=7.0 + -isysroot ${IOSSIM_SDK_DIR}) endif() # Architectures supported by Sanitizer runtimes. Specific sanitizers may # support only subset of these (e.g. TSan works on x86_64 only). filter_available_targets(SANITIZER_COMMON_SUPPORTED_ARCH - x86_64 i386 powerpc64 powerpc) + x86_64 i386 powerpc64) -# Add the public header's directory to the includes for all of compiler-rt. -include_directories(include) add_subdirectory(include) set(SANITIZER_COMMON_LIT_TEST_DEPS clang clang-headers FileCheck count not llvm-nm llvm-symbolizer compiler-rt-headers) +# Check code style when running lit tests for sanitizers. +if(UNIX) + list(APPEND SANITIZER_COMMON_LIT_TEST_DEPS SanitizerLintCheck) +endif() add_subdirectory(lib) Added: vendor/compiler-rt/dist/SDKs/darwin/usr/include/errno.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/compiler-rt/dist/SDKs/darwin/usr/include/errno.h Thu Nov 6 22:49:13 2014 (r274201) @@ -0,0 +1,17 @@ +/* ===-- errno.h - stub SDK header for compiler-rt --------------------------=== + * + * The LLVM Compiler Infrastructure + * + * This file is dual licensed under the MIT and the University of Illinois Open + * Source Licenses. See LICENSE.TXT for details. + * + * ===-----------------------------------------------------------------------=== + * + * This is a stub SDK header file. This file is not part of the interface of + * this library nor an official version of the appropriate SDK header. It is + * intended only to stub the features of this header required by compiler-rt. + * + * ===-----------------------------------------------------------------------=== + */ + +#include <sys/errno.h> Modified: vendor/compiler-rt/dist/SDKs/darwin/usr/include/string.h ============================================================================== --- vendor/compiler-rt/dist/SDKs/darwin/usr/include/string.h Thu Nov 6 22:46:40 2014 (r274200) +++ vendor/compiler-rt/dist/SDKs/darwin/usr/include/string.h Thu Nov 6 22:49:13 2014 (r274201) @@ -28,4 +28,25 @@ char *strdup(const char *); size_t strlen(const char *); char *strncpy(char *, const char *, size_t); +/* Determine the appropriate strerror() function. */ +#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) +# if defined(__i386) +# define __STRERROR_NAME "_strerror$UNIX2003" +# elif defined(__x86_64__) || defined(__arm) +# define __STRERROR_NAME "_strerror" +# else +# error "unrecognized architecture for targetting OS X" +# endif +#elif defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) +# if defined(__i386) || defined (__x86_64) || defined(__arm) +# define __STRERROR_NAME "_strerror" +# else +# error "unrecognized architecture for targetting iOS" +# endif +#else +# error "unrecognized architecture for targetting Darwin" +#endif + +char *strerror(int) __asm(__STRERROR_NAME); + #endif /* __STRING_H__ */ Added: vendor/compiler-rt/dist/SDKs/darwin/usr/include/sys/errno.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/compiler-rt/dist/SDKs/darwin/usr/include/sys/errno.h Thu Nov 6 22:49:13 2014 (r274201) @@ -0,0 +1,31 @@ +/* ===-- errno.h - stub SDK header for compiler-rt --------------------------=== + * + * The LLVM Compiler Infrastructure + * + * This file is dual licensed under the MIT and the University of Illinois Open + * Source Licenses. See LICENSE.TXT for details. + * + * ===-----------------------------------------------------------------------=== + * + * This is a stub SDK header file. This file is not part of the interface of + * this library nor an official version of the appropriate SDK header. It is + * intended only to stub the features of this header required by compiler-rt. + * + * ===-----------------------------------------------------------------------=== + */ + +#ifndef _SYS_ERRNO_H_ +#define _SYS_ERRNO_H_ + +#if defined(__cplusplus) +extern "C" { +#endif + +extern int *__error(void); +#define errno (*__error()) + +#if defined(__cplusplus) +} +#endif + +#endif Modified: vendor/compiler-rt/dist/cmake/Modules/AddCompilerRT.cmake ============================================================================== --- vendor/compiler-rt/dist/cmake/Modules/AddCompilerRT.cmake Thu Nov 6 22:46:40 2014 (r274200) +++ vendor/compiler-rt/dist/cmake/Modules/AddCompilerRT.cmake Thu Nov 6 22:49:13 2014 (r274201) @@ -6,29 +6,35 @@ include(CompilerRTUtils) # with name "<name>.<arch>" if architecture can be targeted. # add_compiler_rt_object_library(<name> <arch> # SOURCES <source files> -# CFLAGS <compile flags>) +# CFLAGS <compile flags> +# DEFS <compile definitions>) macro(add_compiler_rt_object_library name arch) if(CAN_TARGET_${arch}) - parse_arguments(LIB "SOURCES;CFLAGS" "" ${ARGN}) + parse_arguments(LIB "SOURCES;CFLAGS;DEFS" "" ${ARGN}) add_library(${name}.${arch} OBJECT ${LIB_SOURCES}) set_target_compile_flags(${name}.${arch} ${TARGET_${arch}_CFLAGS} ${LIB_CFLAGS}) + set_property(TARGET ${name}.${arch} APPEND PROPERTY + COMPILE_DEFINITIONS ${LIB_DEFS}) else() message(FATAL_ERROR "Archtecture ${arch} can't be targeted") endif() endmacro() -# Same as above, but adds universal osx library with name "<name>.osx" -# targeting multiple architectures. -# add_compiler_rt_osx_object_library(<name> ARCH <architectures> -# SOURCES <source files> -# CFLAGS <compile flags>) -macro(add_compiler_rt_osx_object_library name) - parse_arguments(LIB "ARCH;SOURCES;CFLAGS" "" ${ARGN}) - set(libname "${name}.osx") +# Same as above, but adds universal osx library for either OSX or iOS simulator +# with name "<name>.<os>" targeting multiple architectures. +# add_compiler_rt_darwin_object_library(<name> <os> ARCH <architectures> +# SOURCES <source files> +# CFLAGS <compile flags> +# DEFS <compile definitions>) +macro(add_compiler_rt_darwin_object_library name os) + parse_arguments(LIB "ARCH;SOURCES;CFLAGS;DEFS" "" ${ARGN}) + set(libname "${name}.${os}") add_library(${libname} OBJECT ${LIB_SOURCES}) - set_target_compile_flags(${libname} ${LIB_CFLAGS}) + set_target_compile_flags(${libname} ${LIB_CFLAGS} ${DARWIN_${os}_CFLAGS}) set_target_properties(${libname} PROPERTIES OSX_ARCHITECTURES "${LIB_ARCH}") + set_property(TARGET ${libname} APPEND PROPERTY + COMPILE_DEFINITIONS ${LIB_DEFS}) endmacro() # Adds static runtime for a given architecture and puts it in the proper @@ -36,11 +42,10 @@ endmacro() # add_compiler_rt_static_runtime(<name> <arch> # SOURCES <source files> # CFLAGS <compile flags> -# DEFS <compile definitions> -# SYMS <symbols file>) +# DEFS <compile definitions>) macro(add_compiler_rt_static_runtime name arch) if(CAN_TARGET_${arch}) - parse_arguments(LIB "SOURCES;CFLAGS;DEFS;SYMS" "" ${ARGN}) + parse_arguments(LIB "SOURCES;CFLAGS;DEFS" "" ${ARGN}) add_library(${name} STATIC ${LIB_SOURCES}) # Setup compile flags and definitions. set_target_compile_flags(${name} @@ -53,13 +58,7 @@ macro(add_compiler_rt_static_runtime nam # Add installation command. install(TARGETS ${name} ARCHIVE DESTINATION ${COMPILER_RT_LIBRARY_INSTALL_DIR}) - # Generate the .syms file if possible. - if(LIB_SYMS) - get_target_property(libfile ${name} LOCATION) - configure_file(${LIB_SYMS} ${libfile}.syms) - install(FILES ${libfile}.syms - DESTINATION ${COMPILER_RT_LIBRARY_INSTALL_DIR}) - endif(LIB_SYMS) + add_dependencies(compiler-rt ${name}) else() message(FATAL_ERROR "Archtecture ${arch} can't be targeted") endif() @@ -82,19 +81,22 @@ macro(add_compiler_rt_osx_static_runtime ARCHIVE_OUTPUT_DIRECTORY ${COMPILER_RT_LIBRARY_OUTPUT_DIR}) install(TARGETS ${name} ARCHIVE DESTINATION ${COMPILER_RT_LIBRARY_INSTALL_DIR}) + add_dependencies(compiler-rt ${name}) endmacro() -# Adds dynamic runtime library on osx, which supports multiple architectures. -# add_compiler_rt_osx_dynamic_runtime(<name> ARCH <architectures> -# SOURCES <source files> -# CFLAGS <compile flags> -# DEFS <compile definitions> -# LINKFLAGS <link flags>) -macro(add_compiler_rt_osx_dynamic_runtime name) +# Adds dynamic runtime library on osx/iossim, which supports multiple +# architectures. +# add_compiler_rt_darwin_dynamic_runtime(<name> <os> +# ARCH <architectures> +# SOURCES <source files> +# CFLAGS <compile flags> +# DEFS <compile definitions> +# LINKFLAGS <link flags>) +macro(add_compiler_rt_darwin_dynamic_runtime name os) parse_arguments(LIB "ARCH;SOURCES;CFLAGS;DEFS;LINKFLAGS" "" ${ARGN}) add_library(${name} SHARED ${LIB_SOURCES}) - set_target_compile_flags(${name} ${LIB_CFLAGS}) - set_target_link_flags(${name} ${LIB_LINKFLAGS}) + set_target_compile_flags(${name} ${LIB_CFLAGS} ${DARWIN_${os}_CFLAGS}) + set_target_link_flags(${name} ${LIB_LINKFLAGS} ${DARWIN_${os}_LINKFLAGS}) set_property(TARGET ${name} APPEND PROPERTY COMPILE_DEFINITIONS ${LIB_DEFS}) set_target_properties(${name} PROPERTIES @@ -102,14 +104,16 @@ macro(add_compiler_rt_osx_dynamic_runtim LIBRARY_OUTPUT_DIRECTORY ${COMPILER_RT_LIBRARY_OUTPUT_DIR}) install(TARGETS ${name} LIBRARY DESTINATION ${COMPILER_RT_LIBRARY_INSTALL_DIR}) + add_dependencies(compiler-rt ${name}) endmacro() # Unittests support. set(COMPILER_RT_GTEST_PATH ${LLVM_MAIN_SRC_DIR}/utils/unittest/googletest) -set(COMPILER_RT_GTEST_SOURCE ${COMPILER_RT_GTEST_PATH}/gtest-all.cc) +set(COMPILER_RT_GTEST_SOURCE ${COMPILER_RT_GTEST_PATH}/src/gtest-all.cc) set(COMPILER_RT_GTEST_INCLUDE_CFLAGS -DGTEST_NO_LLVM_RAW_OSTREAM=1 -I${COMPILER_RT_GTEST_PATH}/include + -I${COMPILER_RT_GTEST_PATH} ) # Use Clang to link objects into a single executable with just-built Modified: vendor/compiler-rt/dist/cmake/Modules/CompilerRTUtils.cmake ============================================================================== --- vendor/compiler-rt/dist/cmake/Modules/CompilerRTUtils.cmake Thu Nov 6 22:46:40 2014 (r274200) +++ vendor/compiler-rt/dist/cmake/Modules/CompilerRTUtils.cmake Thu Nov 6 22:49:13 2014 (r274201) @@ -26,3 +26,13 @@ function(find_flag_in_string flag_string set(${out_var} FALSE PARENT_SCOPE) endif() endfunction() + +# Set the variable var_PYBOOL to True if var holds a true-ish string, +# otherwise set it to False. +macro(pythonize_bool var) + if (${var}) + set(${var}_PYBOOL True) + else() + set(${var}_PYBOOL False) + endif() +endmacro() Added: vendor/compiler-rt/dist/cmake/Modules/SanitizerUtils.cmake ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/compiler-rt/dist/cmake/Modules/SanitizerUtils.cmake Thu Nov 6 22:49:13 2014 (r274201) @@ -0,0 +1,42 @@ +include(LLVMParseArguments) + +set(SANITIZER_GEN_DYNAMIC_LIST + ${COMPILER_RT_SOURCE_DIR}/lib/sanitizer_common/scripts/gen_dynamic_list.py) + +set(SANITIZER_LINT_SCRIPT + ${COMPILER_RT_SOURCE_DIR}/lib/sanitizer_common/scripts/check_lint.sh) + +# Create a target "<name>-symbols" that would generate the list of symbols +# that need to be exported from sanitizer runtime "<name>". Function +# interceptors are exported automatically, user can also provide files with +# symbol names that should be exported as well. +# add_sanitizer_rt_symbols(<name> <files with extra symbols to export>) +macro(add_sanitizer_rt_symbols name) + get_target_property(libfile ${name} LOCATION) + set(symsfile "${libfile}.syms") + add_custom_command(OUTPUT ${symsfile} + COMMAND ${PYTHON_EXECUTABLE} + ${SANITIZER_GEN_DYNAMIC_LIST} ${libfile} ${ARGN} + > ${symsfile} + DEPENDS ${name} ${SANITIZER_GEN_DYNAMIC_LIST} ${ARGN} + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + COMMENT "Generating exported symbols for ${name}" + VERBATIM) + add_custom_target(${name}-symbols ALL + DEPENDS ${symsfile} + SOURCES ${SANITIZER_GEN_DYNAMIC_LIST} ${ARGN}) + install(FILES ${symsfile} DESTINATION ${COMPILER_RT_LIBRARY_INSTALL_DIR}) + add_dependencies(compiler-rt ${name}-symbols) +endmacro() + +# Add target to check code style for sanitizer runtimes. +if(UNIX) + add_custom_target(SanitizerLintCheck + COMMAND LLVM_CHECKOUT=${LLVM_MAIN_SRC_DIR} SILENT=1 TMPDIR= + PYTHON_EXECUTABLE=${PYTHON_EXECUTABLE} + ${SANITIZER_LINT_SCRIPT} + DEPENDS ${SANITIZER_LINT_SCRIPT} + COMMENT "Running lint check for sanitizer sources..." + VERBATIM) +endif() + Modified: vendor/compiler-rt/dist/include/CMakeLists.txt ============================================================================== --- vendor/compiler-rt/dist/include/CMakeLists.txt Thu Nov 6 22:46:40 2014 (r274200) +++ vendor/compiler-rt/dist/include/CMakeLists.txt Thu Nov 6 22:49:13 2014 (r274201) @@ -1,7 +1,9 @@ set(SANITIZER_HEADERS sanitizer/asan_interface.h sanitizer/common_interface_defs.h + sanitizer/dfsan_interface.h sanitizer/linux_syscall_hooks.h + sanitizer/lsan_interface.h sanitizer/msan_interface.h) set(output_dir ${LLVM_BINARY_DIR}/lib/clang/${CLANG_VERSION}/include) @@ -32,6 +34,7 @@ foreach( f ${SANITIZER_HEADERS} ) endforeach( f ) add_custom_target(compiler-rt-headers ALL DEPENDS ${out_files}) +add_dependencies(compiler-rt compiler-rt-headers) # Install sanitizer headers. install(FILES ${SANITIZER_HEADERS} Modified: vendor/compiler-rt/dist/include/sanitizer/common_interface_defs.h ============================================================================== --- vendor/compiler-rt/dist/include/sanitizer/common_interface_defs.h Thu Nov 6 22:46:40 2014 (r274200) +++ vendor/compiler-rt/dist/include/sanitizer/common_interface_defs.h Thu Nov 6 22:49:13 2014 (r274201) @@ -27,10 +27,6 @@ extern "C" { // Tell the tools to write their reports to "path.<pid>" instead of stderr. void __sanitizer_set_report_path(const char *path); - // Tell the tools to write their reports to given file descriptor instead of - // stderr. - void __sanitizer_set_report_fd(int fd); - // Notify the tools that the sandbox is going to be turned on. The reserved // parameter will be used in the future to hold a structure with functions // that the tools may call to bypass the sandbox. @@ -51,6 +47,33 @@ extern "C" { void __sanitizer_unaligned_store32(void *p, uint32_t x); void __sanitizer_unaligned_store64(void *p, uint64_t x); + // Record and dump coverage info. + void __sanitizer_cov_dump(); + + // Annotate the current state of a contiguous container, such as + // std::vector, std::string or similar. + // A contiguous container is a container that keeps all of its elements + // in a contiguous region of memory. The container owns the region of memory + // [beg, end); the memory [beg, mid) is used to store the current elements + // and the memory [mid, end) is reserved for future elements; + // end <= mid <= end. For example, in "std::vector<> v" + // beg = &v[0]; + // end = beg + v.capacity() * sizeof(v[0]); + // mid = beg + v.size() * sizeof(v[0]); + // + // This annotation tells the Sanitizer tool about the current state of the + // container so that the tool can report errors when memory from [mid, end) + // is accessed. Insert this annotation into methods like push_back/pop_back. + // Supply the old and the new values of mid (old_mid/new_mid). + // In the initial state mid == end and so should be the final + // state when the container is destroyed or when it reallocates the storage. + // + // Use with caution and don't use for anything other than vector-like classes. + // + // For AddressSanitizer, 'beg' should be 8-aligned. + void __sanitizer_annotate_contiguous_container(void *beg, void *end, + void *old_mid, void *new_mid); + #ifdef __cplusplus } // extern "C" #endif Added: vendor/compiler-rt/dist/include/sanitizer/dfsan_interface.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/compiler-rt/dist/include/sanitizer/dfsan_interface.h Thu Nov 6 22:49:13 2014 (r274201) @@ -0,0 +1,87 @@ +//===-- dfsan_interface.h -------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file is a part of DataFlowSanitizer. +// +// Public interface header. +//===----------------------------------------------------------------------===// +#ifndef DFSAN_INTERFACE_H +#define DFSAN_INTERFACE_H + +#include <stddef.h> +#include <stdint.h> +#include <sanitizer/common_interface_defs.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef uint16_t dfsan_label; + +/// Stores information associated with a specific label identifier. A label +/// may be a base label created using dfsan_create_label, with associated +/// text description and user data, or an automatically created union label, +/// which represents the union of two label identifiers (which may themselves +/// be base or union labels). +struct dfsan_label_info { + // Fields for union labels, set to 0 for base labels. + dfsan_label l1; + dfsan_label l2; + + // Fields for base labels. + const char *desc; + void *userdata; +}; + +/// Computes the union of \c l1 and \c l2, possibly creating a union label in +/// the process. +dfsan_label dfsan_union(dfsan_label l1, dfsan_label l2); + +/// Creates and returns a base label with the given description and user data. +dfsan_label dfsan_create_label(const char *desc, void *userdata); + +/// Sets the label for each address in [addr,addr+size) to \c label. +void dfsan_set_label(dfsan_label label, void *addr, size_t size); + +/// Sets the label for each address in [addr,addr+size) to the union of the +/// current label for that address and \c label. +void dfsan_add_label(dfsan_label label, void *addr, size_t size); + +/// Retrieves the label associated with the given data. +/// +/// The type of 'data' is arbitrary. The function accepts a value of any type, +/// which can be truncated or extended (implicitly or explicitly) as necessary. +/// The truncation/extension operations will preserve the label of the original +/// value. +dfsan_label dfsan_get_label(long data); + +/// Retrieves the label associated with the data at the given address. +dfsan_label dfsan_read_label(const void *addr, size_t size); + +/// Retrieves a pointer to the dfsan_label_info struct for the given label. +const struct dfsan_label_info *dfsan_get_label_info(dfsan_label label); + +/// Returns whether the given label label contains the label elem. +int dfsan_has_label(dfsan_label label, dfsan_label elem); + +/// If the given label label contains a label with the description desc, returns +/// that label, else returns 0. +dfsan_label dfsan_has_label_with_desc(dfsan_label label, const char *desc); + +#ifdef __cplusplus +} // extern "C" + +template <typename T> +void dfsan_set_label(dfsan_label label, T &data) { // NOLINT + dfsan_set_label(label, (void *)&data, sizeof(T)); +} + +#endif + +#endif // DFSAN_INTERFACE_H Modified: vendor/compiler-rt/dist/include/sanitizer/linux_syscall_hooks.h ============================================================================== --- vendor/compiler-rt/dist/include/sanitizer/linux_syscall_hooks.h Thu Nov 6 22:46:40 2014 (r274200) +++ vendor/compiler-rt/dist/include/sanitizer/linux_syscall_hooks.h Thu Nov 6 22:49:13 2014 (r274201) @@ -15,788 +15,3056 @@ // actions for the active sanitizer. // Usage: // __sanitizer_syscall_pre_getfoo(...args...); -// int res = syscall(__NR_getfoo, ...args...); +// long res = syscall(__NR_getfoo, ...args...); // __sanitizer_syscall_post_getfoo(res, ...args...); //===----------------------------------------------------------------------===// #ifndef SANITIZER_LINUX_SYSCALL_HOOKS_H #define SANITIZER_LINUX_SYSCALL_HOOKS_H -#ifdef __cplusplus -extern "C" { +#define __sanitizer_syscall_pre_time(tloc) \ + __sanitizer_syscall_pre_impl_time((long)(tloc)) +#define __sanitizer_syscall_post_time(res, tloc) \ + __sanitizer_syscall_post_impl_time(res, (long)(tloc)) +#define __sanitizer_syscall_pre_stime(tptr) \ + __sanitizer_syscall_pre_impl_stime((long)(tptr)) +#define __sanitizer_syscall_post_stime(res, tptr) \ + __sanitizer_syscall_post_impl_stime(res, (long)(tptr)) +#define __sanitizer_syscall_pre_gettimeofday(tv, tz) \ + __sanitizer_syscall_pre_impl_gettimeofday((long)(tv), (long)(tz)) +#define __sanitizer_syscall_post_gettimeofday(res, tv, tz) \ + __sanitizer_syscall_post_impl_gettimeofday(res, (long)(tv), (long)(tz)) +#define __sanitizer_syscall_pre_settimeofday(tv, tz) \ + __sanitizer_syscall_pre_impl_settimeofday((long)(tv), (long)(tz)) +#define __sanitizer_syscall_post_settimeofday(res, tv, tz) \ + __sanitizer_syscall_post_impl_settimeofday(res, (long)(tv), (long)(tz)) +#define __sanitizer_syscall_pre_adjtimex(txc_p) \ + __sanitizer_syscall_pre_impl_adjtimex((long)(txc_p)) +#define __sanitizer_syscall_post_adjtimex(res, txc_p) \ + __sanitizer_syscall_post_impl_adjtimex(res, (long)(txc_p)) +#define __sanitizer_syscall_pre_times(tbuf) \ + __sanitizer_syscall_pre_impl_times((long)(tbuf)) +#define __sanitizer_syscall_post_times(res, tbuf) \ + __sanitizer_syscall_post_impl_times(res, (long)(tbuf)) +#define __sanitizer_syscall_pre_gettid() __sanitizer_syscall_pre_impl_gettid() +#define __sanitizer_syscall_post_gettid(res) \ + __sanitizer_syscall_post_impl_gettid(res) +#define __sanitizer_syscall_pre_nanosleep(rqtp, rmtp) \ + __sanitizer_syscall_pre_impl_nanosleep((long)(rqtp), (long)(rmtp)) +#define __sanitizer_syscall_post_nanosleep(res, rqtp, rmtp) \ + __sanitizer_syscall_post_impl_nanosleep(res, (long)(rqtp), (long)(rmtp)) +#define __sanitizer_syscall_pre_alarm(seconds) \ + __sanitizer_syscall_pre_impl_alarm((long)(seconds)) +#define __sanitizer_syscall_post_alarm(res, seconds) \ + __sanitizer_syscall_post_impl_alarm(res, (long)(seconds)) +#define __sanitizer_syscall_pre_getpid() __sanitizer_syscall_pre_impl_getpid() +#define __sanitizer_syscall_post_getpid(res) \ + __sanitizer_syscall_post_impl_getpid(res) +#define __sanitizer_syscall_pre_getppid() __sanitizer_syscall_pre_impl_getppid() +#define __sanitizer_syscall_post_getppid(res) \ + __sanitizer_syscall_post_impl_getppid(res) +#define __sanitizer_syscall_pre_getuid() __sanitizer_syscall_pre_impl_getuid() +#define __sanitizer_syscall_post_getuid(res) \ + __sanitizer_syscall_post_impl_getuid(res) +#define __sanitizer_syscall_pre_geteuid() __sanitizer_syscall_pre_impl_geteuid() +#define __sanitizer_syscall_post_geteuid(res) \ + __sanitizer_syscall_post_impl_geteuid(res) +#define __sanitizer_syscall_pre_getgid() __sanitizer_syscall_pre_impl_getgid() +#define __sanitizer_syscall_post_getgid(res) \ + __sanitizer_syscall_post_impl_getgid(res) +#define __sanitizer_syscall_pre_getegid() __sanitizer_syscall_pre_impl_getegid() +#define __sanitizer_syscall_post_getegid(res) \ + __sanitizer_syscall_post_impl_getegid(res) +#define __sanitizer_syscall_pre_getresuid(ruid, euid, suid) \ + __sanitizer_syscall_pre_impl_getresuid((long)(ruid), (long)(euid), \ + (long)(suid)) +#define __sanitizer_syscall_post_getresuid(res, ruid, euid, suid) \ + __sanitizer_syscall_post_impl_getresuid(res, (long)(ruid), (long)(euid), \ + (long)(suid)) +#define __sanitizer_syscall_pre_getresgid(rgid, egid, sgid) \ + __sanitizer_syscall_pre_impl_getresgid((long)(rgid), (long)(egid), \ + (long)(sgid)) +#define __sanitizer_syscall_post_getresgid(res, rgid, egid, sgid) \ + __sanitizer_syscall_post_impl_getresgid(res, (long)(rgid), (long)(egid), \ + (long)(sgid)) +#define __sanitizer_syscall_pre_getpgid(pid) \ + __sanitizer_syscall_pre_impl_getpgid((long)(pid)) +#define __sanitizer_syscall_post_getpgid(res, pid) \ + __sanitizer_syscall_post_impl_getpgid(res, (long)(pid)) +#define __sanitizer_syscall_pre_getpgrp() __sanitizer_syscall_pre_impl_getpgrp() +#define __sanitizer_syscall_post_getpgrp(res) \ + __sanitizer_syscall_post_impl_getpgrp(res) +#define __sanitizer_syscall_pre_getsid(pid) \ + __sanitizer_syscall_pre_impl_getsid((long)(pid)) +#define __sanitizer_syscall_post_getsid(res, pid) \ + __sanitizer_syscall_post_impl_getsid(res, (long)(pid)) +#define __sanitizer_syscall_pre_getgroups(gidsetsize, grouplist) \ + __sanitizer_syscall_pre_impl_getgroups((long)(gidsetsize), (long)(grouplist)) +#define __sanitizer_syscall_post_getgroups(res, gidsetsize, grouplist) \ + __sanitizer_syscall_post_impl_getgroups(res, (long)(gidsetsize), \ + (long)(grouplist)) +#define __sanitizer_syscall_pre_setregid(rgid, egid) \ + __sanitizer_syscall_pre_impl_setregid((long)(rgid), (long)(egid)) +#define __sanitizer_syscall_post_setregid(res, rgid, egid) \ + __sanitizer_syscall_post_impl_setregid(res, (long)(rgid), (long)(egid)) +#define __sanitizer_syscall_pre_setgid(gid) \ + __sanitizer_syscall_pre_impl_setgid((long)(gid)) +#define __sanitizer_syscall_post_setgid(res, gid) \ + __sanitizer_syscall_post_impl_setgid(res, (long)(gid)) +#define __sanitizer_syscall_pre_setreuid(ruid, euid) \ + __sanitizer_syscall_pre_impl_setreuid((long)(ruid), (long)(euid)) +#define __sanitizer_syscall_post_setreuid(res, ruid, euid) \ + __sanitizer_syscall_post_impl_setreuid(res, (long)(ruid), (long)(euid)) +#define __sanitizer_syscall_pre_setuid(uid) \ + __sanitizer_syscall_pre_impl_setuid((long)(uid)) +#define __sanitizer_syscall_post_setuid(res, uid) \ + __sanitizer_syscall_post_impl_setuid(res, (long)(uid)) +#define __sanitizer_syscall_pre_setresuid(ruid, euid, suid) \ + __sanitizer_syscall_pre_impl_setresuid((long)(ruid), (long)(euid), \ + (long)(suid)) +#define __sanitizer_syscall_post_setresuid(res, ruid, euid, suid) \ + __sanitizer_syscall_post_impl_setresuid(res, (long)(ruid), (long)(euid), \ + (long)(suid)) +#define __sanitizer_syscall_pre_setresgid(rgid, egid, sgid) \ + __sanitizer_syscall_pre_impl_setresgid((long)(rgid), (long)(egid), \ + (long)(sgid)) +#define __sanitizer_syscall_post_setresgid(res, rgid, egid, sgid) \ + __sanitizer_syscall_post_impl_setresgid(res, (long)(rgid), (long)(egid), \ + (long)(sgid)) +#define __sanitizer_syscall_pre_setfsuid(uid) \ + __sanitizer_syscall_pre_impl_setfsuid((long)(uid)) +#define __sanitizer_syscall_post_setfsuid(res, uid) \ + __sanitizer_syscall_post_impl_setfsuid(res, (long)(uid)) +#define __sanitizer_syscall_pre_setfsgid(gid) \ + __sanitizer_syscall_pre_impl_setfsgid((long)(gid)) +#define __sanitizer_syscall_post_setfsgid(res, gid) \ + __sanitizer_syscall_post_impl_setfsgid(res, (long)(gid)) +#define __sanitizer_syscall_pre_setpgid(pid, pgid) \ + __sanitizer_syscall_pre_impl_setpgid((long)(pid), (long)(pgid)) +#define __sanitizer_syscall_post_setpgid(res, pid, pgid) \ + __sanitizer_syscall_post_impl_setpgid(res, (long)(pid), (long)(pgid)) +#define __sanitizer_syscall_pre_setsid() __sanitizer_syscall_pre_impl_setsid() +#define __sanitizer_syscall_post_setsid(res) \ + __sanitizer_syscall_post_impl_setsid(res) +#define __sanitizer_syscall_pre_setgroups(gidsetsize, grouplist) \ + __sanitizer_syscall_pre_impl_setgroups((long)(gidsetsize), (long)(grouplist)) +#define __sanitizer_syscall_post_setgroups(res, gidsetsize, grouplist) \ + __sanitizer_syscall_post_impl_setgroups(res, (long)(gidsetsize), \ + (long)(grouplist)) +#define __sanitizer_syscall_pre_acct(name) \ + __sanitizer_syscall_pre_impl_acct((long)(name)) +#define __sanitizer_syscall_post_acct(res, name) \ + __sanitizer_syscall_post_impl_acct(res, (long)(name)) +#define __sanitizer_syscall_pre_capget(header, dataptr) \ + __sanitizer_syscall_pre_impl_capget((long)(header), (long)(dataptr)) +#define __sanitizer_syscall_post_capget(res, header, dataptr) \ + __sanitizer_syscall_post_impl_capget(res, (long)(header), (long)(dataptr)) +#define __sanitizer_syscall_pre_capset(header, data) \ + __sanitizer_syscall_pre_impl_capset((long)(header), (long)(data)) +#define __sanitizer_syscall_post_capset(res, header, data) \ + __sanitizer_syscall_post_impl_capset(res, (long)(header), (long)(data)) +#define __sanitizer_syscall_pre_personality(personality) \ + __sanitizer_syscall_pre_impl_personality((long)(personality)) +#define __sanitizer_syscall_post_personality(res, personality) \ + __sanitizer_syscall_post_impl_personality(res, (long)(personality)) +#define __sanitizer_syscall_pre_sigpending(set) \ + __sanitizer_syscall_pre_impl_sigpending((long)(set)) +#define __sanitizer_syscall_post_sigpending(res, set) \ + __sanitizer_syscall_post_impl_sigpending(res, (long)(set)) +#define __sanitizer_syscall_pre_sigprocmask(how, set, oset) \ + __sanitizer_syscall_pre_impl_sigprocmask((long)(how), (long)(set), \ + (long)(oset)) +#define __sanitizer_syscall_post_sigprocmask(res, how, set, oset) \ + __sanitizer_syscall_post_impl_sigprocmask(res, (long)(how), (long)(set), \ + (long)(oset)) +#define __sanitizer_syscall_pre_getitimer(which, value) \ + __sanitizer_syscall_pre_impl_getitimer((long)(which), (long)(value)) +#define __sanitizer_syscall_post_getitimer(res, which, value) \ + __sanitizer_syscall_post_impl_getitimer(res, (long)(which), (long)(value)) +#define __sanitizer_syscall_pre_setitimer(which, value, ovalue) \ + __sanitizer_syscall_pre_impl_setitimer((long)(which), (long)(value), \ + (long)(ovalue)) +#define __sanitizer_syscall_post_setitimer(res, which, value, ovalue) \ + __sanitizer_syscall_post_impl_setitimer(res, (long)(which), (long)(value), \ + (long)(ovalue)) +#define __sanitizer_syscall_pre_timer_create(which_clock, timer_event_spec, \ + created_timer_id) \ + __sanitizer_syscall_pre_impl_timer_create( \ + (long)(which_clock), (long)(timer_event_spec), (long)(created_timer_id)) +#define __sanitizer_syscall_post_timer_create( \ + res, which_clock, timer_event_spec, created_timer_id) \ + __sanitizer_syscall_post_impl_timer_create(res, (long)(which_clock), \ + (long)(timer_event_spec), \ + (long)(created_timer_id)) +#define __sanitizer_syscall_pre_timer_gettime(timer_id, setting) \ + __sanitizer_syscall_pre_impl_timer_gettime((long)(timer_id), (long)(setting)) +#define __sanitizer_syscall_post_timer_gettime(res, timer_id, setting) \ + __sanitizer_syscall_post_impl_timer_gettime(res, (long)(timer_id), \ + (long)(setting)) +#define __sanitizer_syscall_pre_timer_getoverrun(timer_id) \ + __sanitizer_syscall_pre_impl_timer_getoverrun((long)(timer_id)) +#define __sanitizer_syscall_post_timer_getoverrun(res, timer_id) \ + __sanitizer_syscall_post_impl_timer_getoverrun(res, (long)(timer_id)) +#define __sanitizer_syscall_pre_timer_settime(timer_id, flags, new_setting, \ + old_setting) \ + __sanitizer_syscall_pre_impl_timer_settime((long)(timer_id), (long)(flags), \ + (long)(new_setting), \ + (long)(old_setting)) +#define __sanitizer_syscall_post_timer_settime(res, timer_id, flags, \ + new_setting, old_setting) \ + __sanitizer_syscall_post_impl_timer_settime( \ + res, (long)(timer_id), (long)(flags), (long)(new_setting), \ + (long)(old_setting)) +#define __sanitizer_syscall_pre_timer_delete(timer_id) \ + __sanitizer_syscall_pre_impl_timer_delete((long)(timer_id)) +#define __sanitizer_syscall_post_timer_delete(res, timer_id) \ + __sanitizer_syscall_post_impl_timer_delete(res, (long)(timer_id)) +#define __sanitizer_syscall_pre_clock_settime(which_clock, tp) \ + __sanitizer_syscall_pre_impl_clock_settime((long)(which_clock), (long)(tp)) +#define __sanitizer_syscall_post_clock_settime(res, which_clock, tp) \ + __sanitizer_syscall_post_impl_clock_settime(res, (long)(which_clock), \ + (long)(tp)) +#define __sanitizer_syscall_pre_clock_gettime(which_clock, tp) \ + __sanitizer_syscall_pre_impl_clock_gettime((long)(which_clock), (long)(tp)) +#define __sanitizer_syscall_post_clock_gettime(res, which_clock, tp) \ + __sanitizer_syscall_post_impl_clock_gettime(res, (long)(which_clock), \ + (long)(tp)) +#define __sanitizer_syscall_pre_clock_adjtime(which_clock, tx) \ + __sanitizer_syscall_pre_impl_clock_adjtime((long)(which_clock), (long)(tx)) +#define __sanitizer_syscall_post_clock_adjtime(res, which_clock, tx) \ + __sanitizer_syscall_post_impl_clock_adjtime(res, (long)(which_clock), \ + (long)(tx)) +#define __sanitizer_syscall_pre_clock_getres(which_clock, tp) \ + __sanitizer_syscall_pre_impl_clock_getres((long)(which_clock), (long)(tp)) +#define __sanitizer_syscall_post_clock_getres(res, which_clock, tp) \ + __sanitizer_syscall_post_impl_clock_getres(res, (long)(which_clock), \ + (long)(tp)) +#define __sanitizer_syscall_pre_clock_nanosleep(which_clock, flags, rqtp, \ + rmtp) \ + __sanitizer_syscall_pre_impl_clock_nanosleep( \ + (long)(which_clock), (long)(flags), (long)(rqtp), (long)(rmtp)) +#define __sanitizer_syscall_post_clock_nanosleep(res, which_clock, flags, \ + rqtp, rmtp) \ + __sanitizer_syscall_post_impl_clock_nanosleep( \ + res, (long)(which_clock), (long)(flags), (long)(rqtp), (long)(rmtp)) +#define __sanitizer_syscall_pre_nice(increment) \ + __sanitizer_syscall_pre_impl_nice((long)(increment)) +#define __sanitizer_syscall_post_nice(res, increment) \ + __sanitizer_syscall_post_impl_nice(res, (long)(increment)) +#define __sanitizer_syscall_pre_sched_setscheduler(pid, policy, param) \ + __sanitizer_syscall_pre_impl_sched_setscheduler((long)(pid), (long)(policy), \ + (long)(param)) +#define __sanitizer_syscall_post_sched_setscheduler(res, pid, policy, param) \ + __sanitizer_syscall_post_impl_sched_setscheduler( \ + res, (long)(pid), (long)(policy), (long)(param)) +#define __sanitizer_syscall_pre_sched_setparam(pid, param) \ + __sanitizer_syscall_pre_impl_sched_setparam((long)(pid), (long)(param)) +#define __sanitizer_syscall_post_sched_setparam(res, pid, param) \ + __sanitizer_syscall_post_impl_sched_setparam(res, (long)(pid), (long)(param)) +#define __sanitizer_syscall_pre_sched_getscheduler(pid) \ + __sanitizer_syscall_pre_impl_sched_getscheduler((long)(pid)) +#define __sanitizer_syscall_post_sched_getscheduler(res, pid) \ + __sanitizer_syscall_post_impl_sched_getscheduler(res, (long)(pid)) +#define __sanitizer_syscall_pre_sched_getparam(pid, param) \ + __sanitizer_syscall_pre_impl_sched_getparam((long)(pid), (long)(param)) +#define __sanitizer_syscall_post_sched_getparam(res, pid, param) \ + __sanitizer_syscall_post_impl_sched_getparam(res, (long)(pid), (long)(param)) +#define __sanitizer_syscall_pre_sched_setaffinity(pid, len, user_mask_ptr) \ + __sanitizer_syscall_pre_impl_sched_setaffinity((long)(pid), (long)(len), \ + (long)(user_mask_ptr)) +#define __sanitizer_syscall_post_sched_setaffinity(res, pid, len, \ + user_mask_ptr) \ + __sanitizer_syscall_post_impl_sched_setaffinity( \ + res, (long)(pid), (long)(len), (long)(user_mask_ptr)) +#define __sanitizer_syscall_pre_sched_getaffinity(pid, len, user_mask_ptr) \ + __sanitizer_syscall_pre_impl_sched_getaffinity((long)(pid), (long)(len), \ + (long)(user_mask_ptr)) +#define __sanitizer_syscall_post_sched_getaffinity(res, pid, len, \ + user_mask_ptr) \ + __sanitizer_syscall_post_impl_sched_getaffinity( \ + res, (long)(pid), (long)(len), (long)(user_mask_ptr)) +#define __sanitizer_syscall_pre_sched_yield() \ + __sanitizer_syscall_pre_impl_sched_yield() +#define __sanitizer_syscall_post_sched_yield(res) \ + __sanitizer_syscall_post_impl_sched_yield(res) +#define __sanitizer_syscall_pre_sched_get_priority_max(policy) \ + __sanitizer_syscall_pre_impl_sched_get_priority_max((long)(policy)) +#define __sanitizer_syscall_post_sched_get_priority_max(res, policy) \ + __sanitizer_syscall_post_impl_sched_get_priority_max(res, (long)(policy)) +#define __sanitizer_syscall_pre_sched_get_priority_min(policy) \ + __sanitizer_syscall_pre_impl_sched_get_priority_min((long)(policy)) +#define __sanitizer_syscall_post_sched_get_priority_min(res, policy) \ + __sanitizer_syscall_post_impl_sched_get_priority_min(res, (long)(policy)) +#define __sanitizer_syscall_pre_sched_rr_get_interval(pid, interval) \ + __sanitizer_syscall_pre_impl_sched_rr_get_interval((long)(pid), \ + (long)(interval)) +#define __sanitizer_syscall_post_sched_rr_get_interval(res, pid, interval) \ + __sanitizer_syscall_post_impl_sched_rr_get_interval(res, (long)(pid), \ + (long)(interval)) +#define __sanitizer_syscall_pre_setpriority(which, who, niceval) \ + __sanitizer_syscall_pre_impl_setpriority((long)(which), (long)(who), \ + (long)(niceval)) +#define __sanitizer_syscall_post_setpriority(res, which, who, niceval) \ + __sanitizer_syscall_post_impl_setpriority(res, (long)(which), (long)(who), \ + (long)(niceval)) +#define __sanitizer_syscall_pre_getpriority(which, who) \ + __sanitizer_syscall_pre_impl_getpriority((long)(which), (long)(who)) +#define __sanitizer_syscall_post_getpriority(res, which, who) \ + __sanitizer_syscall_post_impl_getpriority(res, (long)(which), (long)(who)) +#define __sanitizer_syscall_pre_shutdown(arg0, arg1) \ + __sanitizer_syscall_pre_impl_shutdown((long)(arg0), (long)(arg1)) +#define __sanitizer_syscall_post_shutdown(res, arg0, arg1) \ + __sanitizer_syscall_post_impl_shutdown(res, (long)(arg0), (long)(arg1)) +#define __sanitizer_syscall_pre_reboot(magic1, magic2, cmd, arg) \ + __sanitizer_syscall_pre_impl_reboot((long)(magic1), (long)(magic2), \ + (long)(cmd), (long)(arg)) +#define __sanitizer_syscall_post_reboot(res, magic1, magic2, cmd, arg) \ + __sanitizer_syscall_post_impl_reboot(res, (long)(magic1), (long)(magic2), \ + (long)(cmd), (long)(arg)) +#define __sanitizer_syscall_pre_restart_syscall() \ + __sanitizer_syscall_pre_impl_restart_syscall() +#define __sanitizer_syscall_post_restart_syscall(res) \ + __sanitizer_syscall_post_impl_restart_syscall(res) +#define __sanitizer_syscall_pre_kexec_load(entry, nr_segments, segments, \ + flags) \ + __sanitizer_syscall_pre_impl_kexec_load((long)(entry), (long)(nr_segments), \ + (long)(segments), (long)(flags)) +#define __sanitizer_syscall_post_kexec_load(res, entry, nr_segments, segments, \ + flags) \ + __sanitizer_syscall_post_impl_kexec_load(res, (long)(entry), \ + (long)(nr_segments), \ + (long)(segments), (long)(flags)) +#define __sanitizer_syscall_pre_exit(error_code) \ + __sanitizer_syscall_pre_impl_exit((long)(error_code)) +#define __sanitizer_syscall_post_exit(res, error_code) \ + __sanitizer_syscall_post_impl_exit(res, (long)(error_code)) +#define __sanitizer_syscall_pre_exit_group(error_code) \ + __sanitizer_syscall_pre_impl_exit_group((long)(error_code)) +#define __sanitizer_syscall_post_exit_group(res, error_code) \ + __sanitizer_syscall_post_impl_exit_group(res, (long)(error_code)) +#define __sanitizer_syscall_pre_wait4(pid, stat_addr, options, ru) \ + __sanitizer_syscall_pre_impl_wait4((long)(pid), (long)(stat_addr), \ + (long)(options), (long)(ru)) +#define __sanitizer_syscall_post_wait4(res, pid, stat_addr, options, ru) \ + __sanitizer_syscall_post_impl_wait4(res, (long)(pid), (long)(stat_addr), \ + (long)(options), (long)(ru)) +#define __sanitizer_syscall_pre_waitid(which, pid, infop, options, ru) \ + __sanitizer_syscall_pre_impl_waitid( \ + (long)(which), (long)(pid), (long)(infop), (long)(options), (long)(ru)) +#define __sanitizer_syscall_post_waitid(res, which, pid, infop, options, ru) \ + __sanitizer_syscall_post_impl_waitid(res, (long)(which), (long)(pid), \ + (long)(infop), (long)(options), \ + (long)(ru)) +#define __sanitizer_syscall_pre_waitpid(pid, stat_addr, options) \ + __sanitizer_syscall_pre_impl_waitpid((long)(pid), (long)(stat_addr), \ + (long)(options)) +#define __sanitizer_syscall_post_waitpid(res, pid, stat_addr, options) \ + __sanitizer_syscall_post_impl_waitpid(res, (long)(pid), (long)(stat_addr), \ + (long)(options)) +#define __sanitizer_syscall_pre_set_tid_address(tidptr) \ + __sanitizer_syscall_pre_impl_set_tid_address((long)(tidptr)) +#define __sanitizer_syscall_post_set_tid_address(res, tidptr) \ + __sanitizer_syscall_post_impl_set_tid_address(res, (long)(tidptr)) +#define __sanitizer_syscall_pre_init_module(umod, len, uargs) \ + __sanitizer_syscall_pre_impl_init_module((long)(umod), (long)(len), \ + (long)(uargs)) +#define __sanitizer_syscall_post_init_module(res, umod, len, uargs) \ + __sanitizer_syscall_post_impl_init_module(res, (long)(umod), (long)(len), \ + (long)(uargs)) +#define __sanitizer_syscall_pre_delete_module(name_user, flags) \ + __sanitizer_syscall_pre_impl_delete_module((long)(name_user), (long)(flags)) +#define __sanitizer_syscall_post_delete_module(res, name_user, flags) \ + __sanitizer_syscall_post_impl_delete_module(res, (long)(name_user), \ + (long)(flags)) +#define __sanitizer_syscall_pre_rt_sigprocmask(how, set, oset, sigsetsize) \ + __sanitizer_syscall_pre_impl_rt_sigprocmask( \ + (long)(how), (long)(set), (long)(oset), (long)(sigsetsize)) +#define __sanitizer_syscall_post_rt_sigprocmask(res, how, set, oset, \ + sigsetsize) \ + __sanitizer_syscall_post_impl_rt_sigprocmask( \ + res, (long)(how), (long)(set), (long)(oset), (long)(sigsetsize)) +#define __sanitizer_syscall_pre_rt_sigpending(set, sigsetsize) \ + __sanitizer_syscall_pre_impl_rt_sigpending((long)(set), (long)(sigsetsize)) +#define __sanitizer_syscall_post_rt_sigpending(res, set, sigsetsize) \ + __sanitizer_syscall_post_impl_rt_sigpending(res, (long)(set), \ + (long)(sigsetsize)) +#define __sanitizer_syscall_pre_rt_sigtimedwait(uthese, uinfo, uts, \ + sigsetsize) \ + __sanitizer_syscall_pre_impl_rt_sigtimedwait( \ + (long)(uthese), (long)(uinfo), (long)(uts), (long)(sigsetsize)) +#define __sanitizer_syscall_post_rt_sigtimedwait(res, uthese, uinfo, uts, \ + sigsetsize) \ + __sanitizer_syscall_post_impl_rt_sigtimedwait( \ + res, (long)(uthese), (long)(uinfo), (long)(uts), (long)(sigsetsize)) +#define __sanitizer_syscall_pre_rt_tgsigqueueinfo(tgid, pid, sig, uinfo) \ + __sanitizer_syscall_pre_impl_rt_tgsigqueueinfo((long)(tgid), (long)(pid), \ *** DIFF OUTPUT TRUNCATED AT 1000 LINES ***
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411062249.sA6MnEcZ019081>