Date: Fri, 18 Jan 2013 20:08:21 +0000 (UTC) From: Andrew Turner <andrew@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org Subject: svn commit: r245615 - in vendor/compiler-rt/compiler-rt-r172839: . SDKs/darwin/usr/include SDKs/linux/usr/include cmake/Modules include lib lib/arm lib/asan lib/asan/dynamic lib/asan/lit_tests lib/... Message-ID: <201301182008.r0IK8Lka025094@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: andrew Date: Fri Jan 18 20:08:20 2013 New Revision: 245615 URL: http://svnweb.freebsd.org/changeset/base/245615 Log: Tag compiler-rt r172839 Added: vendor/compiler-rt/compiler-rt-r172839/ - copied from r245613, vendor/compiler-rt/dist/ vendor/compiler-rt/compiler-rt-r172839/.arcconfig - copied unchanged from r245614, vendor/compiler-rt/dist/.arcconfig vendor/compiler-rt/compiler-rt-r172839/cmake/Modules/AddCompilerRT.cmake - copied unchanged from r245614, vendor/compiler-rt/dist/cmake/Modules/AddCompilerRT.cmake vendor/compiler-rt/compiler-rt-r172839/cmake/Modules/CompilerRTCompile.cmake - copied unchanged from r245614, vendor/compiler-rt/dist/cmake/Modules/CompilerRTCompile.cmake vendor/compiler-rt/compiler-rt-r172839/cmake/Modules/CompilerRTLink.cmake - copied unchanged from r245614, vendor/compiler-rt/dist/cmake/Modules/CompilerRTLink.cmake vendor/compiler-rt/compiler-rt-r172839/cmake/Modules/CompilerRTUtils.cmake - copied unchanged from r245614, vendor/compiler-rt/dist/cmake/Modules/CompilerRTUtils.cmake vendor/compiler-rt/compiler-rt-r172839/include/ - copied from r245614, vendor/compiler-rt/dist/include/ vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_allocator2.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_allocator2.cc vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_fake_stack.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_fake_stack.cc vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_intercepted_functions.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_intercepted_functions.h vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_report.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_report.cc vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_report.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_report.h vendor/compiler-rt/compiler-rt-r172839/lib/asan/dynamic/ - copied from r245614, vendor/compiler-rt/dist/lib/asan/dynamic/ vendor/compiler-rt/compiler-rt-r172839/lib/asan/lit_tests/ - copied from r245614, vendor/compiler-rt/dist/lib/asan/lit_tests/ vendor/compiler-rt/compiler-rt-r172839/lib/asan/tests/asan_test_main.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/tests/asan_test_main.cc vendor/compiler-rt/compiler-rt-r172839/lib/lit.common.cfg - copied unchanged from r245614, vendor/compiler-rt/dist/lib/lit.common.cfg vendor/compiler-rt/compiler-rt-r172839/lib/lit.common.unit.cfg - copied unchanged from r245614, vendor/compiler-rt/dist/lib/lit.common.unit.cfg vendor/compiler-rt/compiler-rt-r172839/lib/msan/ - copied from r245614, vendor/compiler-rt/dist/lib/msan/ vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_allocator.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_allocator.h vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_common_interceptors.inc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_common_interceptors.inc vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_common_interceptors_scanf.inc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_common_interceptors_scanf.inc vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_lfstack.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_lfstack.h vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_platform_interceptors.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_platform_interceptors.h vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_quarantine.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_quarantine.h vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_report_decorator.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_report_decorator.h vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_stackdepot.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_stackdepot.cc vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_stackdepot.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_stackdepot.h vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_stacktrace.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_stacktrace.cc vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_stacktrace.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_stacktrace.h vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_symbolizer_itanium.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_symbolizer_itanium.cc vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_symbolizer_linux.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_symbolizer_linux.cc vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_symbolizer_mac.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_symbolizer_mac.cc vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_symbolizer_win.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_symbolizer_win.cc vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/scripts/ - copied from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/scripts/ vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/tests/CMakeLists.txt - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/tests/CMakeLists.txt vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/tests/lit.cfg - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/tests/lit.cfg vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/tests/lit.site.cfg.in - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/tests/lit.site.cfg.in vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/tests/sanitizer_allocator_testlib.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/tests/sanitizer_allocator_testlib.cc vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/tests/sanitizer_libc_test.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/tests/sanitizer_libc_test.cc vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/tests/sanitizer_mutex_test.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/tests/sanitizer_mutex_test.cc vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/tests/sanitizer_printf_test.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/tests/sanitizer_printf_test.cc vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/tests/sanitizer_scanf_interceptor_test.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/tests/sanitizer_scanf_interceptor_test.cc vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/tests/sanitizer_stackdepot_test.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/tests/sanitizer_stackdepot_test.cc vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/tests/sanitizer_test_main.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/tests/sanitizer_test_main.cc vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/tests/sanitizer_test_utils.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/tests/sanitizer_test_utils.h vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/tests/standalone_malloc_test.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/tests/standalone_malloc_test.cc vendor/compiler-rt/compiler-rt-r172839/lib/tsan/check_cmake.sh - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/check_cmake.sh vendor/compiler-rt/compiler-rt-r172839/lib/tsan/lit_tests/ - copied from r245614, vendor/compiler-rt/dist/lib/tsan/lit_tests/ vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/CMakeLists.txt - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/CMakeLists.txt vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_fd.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_fd.cc vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_fd.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_fd.h vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_interface_java.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_interface_java.cc vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_interface_java.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_interface_java.h vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_mutexset.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_mutexset.cc vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_mutexset.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_mutexset.h vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_platform_windows.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_platform_windows.cc vendor/compiler-rt/compiler-rt-r172839/lib/tsan/tests/ - copied from r245614, vendor/compiler-rt/dist/lib/tsan/tests/ vendor/compiler-rt/compiler-rt-r172839/lib/ubsan/ - copied from r245614, vendor/compiler-rt/dist/lib/ubsan/ vendor/compiler-rt/compiler-rt-r172839/make/platform/clang_linux_test_input.c - copied unchanged from r245614, vendor/compiler-rt/dist/make/platform/clang_linux_test_input.c Replaced: vendor/compiler-rt/compiler-rt-r172839/CMakeLists.txt - copied unchanged from r245614, vendor/compiler-rt/dist/CMakeLists.txt vendor/compiler-rt/compiler-rt-r172839/LICENSE.TXT - copied unchanged from r245614, vendor/compiler-rt/dist/LICENSE.TXT vendor/compiler-rt/compiler-rt-r172839/Makefile - copied unchanged from r245614, vendor/compiler-rt/dist/Makefile vendor/compiler-rt/compiler-rt-r172839/SDKs/darwin/usr/include/stdio.h - copied unchanged from r245614, vendor/compiler-rt/dist/SDKs/darwin/usr/include/stdio.h vendor/compiler-rt/compiler-rt-r172839/SDKs/linux/usr/include/stdio.h - copied unchanged from r245614, vendor/compiler-rt/dist/SDKs/linux/usr/include/stdio.h vendor/compiler-rt/compiler-rt-r172839/lib/CMakeLists.txt - copied unchanged from r245614, vendor/compiler-rt/dist/lib/CMakeLists.txt vendor/compiler-rt/compiler-rt-r172839/lib/Makefile.mk - copied unchanged from r245614, vendor/compiler-rt/dist/lib/Makefile.mk vendor/compiler-rt/compiler-rt-r172839/lib/arm/Makefile.mk - copied unchanged from r245614, vendor/compiler-rt/dist/lib/arm/Makefile.mk vendor/compiler-rt/compiler-rt-r172839/lib/arm/divsi3.S - copied unchanged from r245614, vendor/compiler-rt/dist/lib/arm/divsi3.S vendor/compiler-rt/compiler-rt-r172839/lib/arm/udivsi3.S - copied unchanged from r245614, vendor/compiler-rt/dist/lib/arm/udivsi3.S vendor/compiler-rt/compiler-rt-r172839/lib/asan/CMakeLists.txt - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/CMakeLists.txt vendor/compiler-rt/compiler-rt-r172839/lib/asan/Makefile.mk - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/Makefile.mk vendor/compiler-rt/compiler-rt-r172839/lib/asan/README.txt - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/README.txt vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_allocator.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_allocator.cc vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_allocator.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_allocator.h vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_flags.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_flags.h vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_globals.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_globals.cc vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_interceptors.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_interceptors.cc vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_interceptors.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_interceptors.h vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_internal.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_internal.h vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_linux.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_linux.cc vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_lock.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_lock.h vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_mac.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_mac.cc vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_mac.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_mac.h vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_malloc_linux.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_malloc_linux.cc vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_malloc_mac.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_malloc_mac.cc vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_malloc_win.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_malloc_win.cc vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_mapping.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_mapping.h vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_new_delete.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_new_delete.cc vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_poisoning.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_poisoning.cc vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_posix.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_posix.cc vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_rtl.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_rtl.cc vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_stack.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_stack.cc vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_stack.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_stack.h vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_stats.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_stats.cc vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_stats.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_stats.h vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_thread.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_thread.cc vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_thread.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_thread.h vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_thread_registry.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_thread_registry.cc vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_thread_registry.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_thread_registry.h vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_win.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/asan_win.cc vendor/compiler-rt/compiler-rt-r172839/lib/asan/scripts/asan_symbolize.py - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/scripts/asan_symbolize.py vendor/compiler-rt/compiler-rt-r172839/lib/asan/tests/CMakeLists.txt - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/tests/CMakeLists.txt vendor/compiler-rt/compiler-rt-r172839/lib/asan/tests/asan_benchmarks_test.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/tests/asan_benchmarks_test.cc vendor/compiler-rt/compiler-rt-r172839/lib/asan/tests/asan_globals_test.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/tests/asan_globals_test.cc vendor/compiler-rt/compiler-rt-r172839/lib/asan/tests/asan_mac_test.mm - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/tests/asan_mac_test.mm vendor/compiler-rt/compiler-rt-r172839/lib/asan/tests/asan_noinst_test.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/tests/asan_noinst_test.cc vendor/compiler-rt/compiler-rt-r172839/lib/asan/tests/asan_test.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/tests/asan_test.cc vendor/compiler-rt/compiler-rt-r172839/lib/asan/tests/asan_test.ignore - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/tests/asan_test.ignore vendor/compiler-rt/compiler-rt-r172839/lib/asan/tests/asan_test_config.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/tests/asan_test_config.h vendor/compiler-rt/compiler-rt-r172839/lib/asan/tests/asan_test_utils.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/asan/tests/asan_test_utils.h vendor/compiler-rt/compiler-rt-r172839/lib/cmpdi2.c - copied unchanged from r245614, vendor/compiler-rt/dist/lib/cmpdi2.c vendor/compiler-rt/compiler-rt-r172839/lib/fixsfdi.c - copied unchanged from r245614, vendor/compiler-rt/dist/lib/fixsfdi.c vendor/compiler-rt/compiler-rt-r172839/lib/int_endianness.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/int_endianness.h vendor/compiler-rt/compiler-rt-r172839/lib/interception/CMakeLists.txt - copied unchanged from r245614, vendor/compiler-rt/dist/lib/interception/CMakeLists.txt vendor/compiler-rt/compiler-rt-r172839/lib/interception/interception.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/interception/interception.h vendor/compiler-rt/compiler-rt-r172839/lib/interception/interception_linux.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/interception/interception_linux.cc vendor/compiler-rt/compiler-rt-r172839/lib/interception/interception_linux.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/interception/interception_linux.h vendor/compiler-rt/compiler-rt-r172839/lib/interception/interception_mac.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/interception/interception_mac.cc vendor/compiler-rt/compiler-rt-r172839/lib/interception/interception_mac.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/interception/interception_mac.h vendor/compiler-rt/compiler-rt-r172839/lib/interception/interception_win.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/interception/interception_win.cc vendor/compiler-rt/compiler-rt-r172839/lib/interception/interception_win.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/interception/interception_win.h vendor/compiler-rt/compiler-rt-r172839/lib/interception/mach_override/mach_override.c - copied unchanged from r245614, vendor/compiler-rt/dist/lib/interception/mach_override/mach_override.c vendor/compiler-rt/compiler-rt-r172839/lib/profile/GCDAProfiling.c - copied unchanged from r245614, vendor/compiler-rt/dist/lib/profile/GCDAProfiling.c vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/CMakeLists.txt - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/CMakeLists.txt vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_allocator.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_allocator.cc vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_atomic_clang.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_atomic_clang.h vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_atomic_msvc.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_atomic_msvc.h vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_common.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_common.cc vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_common.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_common.h vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_flags.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_flags.cc vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_internal_defs.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_internal_defs.h vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_libc.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_libc.cc vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_libc.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_libc.h vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_linux.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_linux.cc vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_list.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_list.h vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_mac.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_mac.cc vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_mutex.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_mutex.h vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_placement_new.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_placement_new.h vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_posix.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_posix.cc vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_printf.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_printf.cc vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_procmaps.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_procmaps.h vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_symbolizer.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_symbolizer.cc vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_symbolizer.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_symbolizer.h vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_win.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_win.cc vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/tests/sanitizer_allocator_test.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/tests/sanitizer_allocator_test.cc vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/tests/sanitizer_common_test.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/tests/sanitizer_common_test.cc vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/tests/sanitizer_flags_test.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/tests/sanitizer_flags_test.cc vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/tests/sanitizer_list_test.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/sanitizer_common/tests/sanitizer_list_test.cc vendor/compiler-rt/compiler-rt-r172839/lib/tsan/CMakeLists.txt - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/CMakeLists.txt vendor/compiler-rt/compiler-rt-r172839/lib/tsan/Makefile.old - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/Makefile.old vendor/compiler-rt/compiler-rt-r172839/lib/tsan/go/buildgo.sh - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/go/buildgo.sh vendor/compiler-rt/compiler-rt-r172839/lib/tsan/go/test.c - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/go/test.c vendor/compiler-rt/compiler-rt-r172839/lib/tsan/go/tsan_go.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/go/tsan_go.cc vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/Makefile.mk - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/Makefile.mk vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/Makefile.old - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/Makefile.old vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_clock.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_clock.cc vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_clock.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_clock.h vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_defs.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_defs.h vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_flags.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_flags.cc vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_flags.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_flags.h vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_interceptors.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_interceptors.cc vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_interface.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_interface.h vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_interface_ann.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_interface_ann.cc vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_interface_ann.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_interface_ann.h vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_interface_atomic.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_interface_atomic.cc vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_interface_atomic.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_interface_atomic.h vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_interface_inl.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_interface_inl.h vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_mman.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_mman.cc vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_mman.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_mman.h vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_mutex.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_mutex.cc vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_mutex.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_mutex.h vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_platform.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_platform.h vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_platform_linux.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_platform_linux.cc vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_platform_mac.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_platform_mac.cc vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_report.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_report.cc vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_report.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_report.h vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_rtl.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_rtl.cc vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_rtl.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_rtl.h vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_rtl_amd64.S - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_rtl_amd64.S vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_rtl_mutex.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_rtl_mutex.cc vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_rtl_report.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_rtl_report.cc vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_rtl_thread.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_rtl_thread.cc vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_stat.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_stat.cc vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_stat.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_stat.h vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_suppressions.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_suppressions.cc vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_suppressions.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_suppressions.h vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_symbolize.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_symbolize.cc vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_symbolize.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_symbolize.h vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_symbolize_addr2line_linux.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_symbolize_addr2line_linux.cc vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_sync.cc - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_sync.cc vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_sync.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_sync.h vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_trace.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_trace.h vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_update_shadow_word_inl.h - copied unchanged from r245614, vendor/compiler-rt/dist/lib/tsan/rtl/tsan_update_shadow_word_inl.h vendor/compiler-rt/compiler-rt-r172839/lib/ucmpdi2.c - copied unchanged from r245614, vendor/compiler-rt/dist/lib/ucmpdi2.c vendor/compiler-rt/compiler-rt-r172839/make/AppleBI.mk - copied unchanged from r245614, vendor/compiler-rt/dist/make/AppleBI.mk vendor/compiler-rt/compiler-rt-r172839/make/config.mk - copied unchanged from r245614, vendor/compiler-rt/dist/make/config.mk vendor/compiler-rt/compiler-rt-r172839/make/lib_info.mk - copied unchanged from r245614, vendor/compiler-rt/dist/make/lib_info.mk vendor/compiler-rt/compiler-rt-r172839/make/options.mk - copied unchanged from r245614, vendor/compiler-rt/dist/make/options.mk vendor/compiler-rt/compiler-rt-r172839/make/platform/clang_darwin.mk - copied unchanged from r245614, vendor/compiler-rt/dist/make/platform/clang_darwin.mk vendor/compiler-rt/compiler-rt-r172839/make/platform/clang_linux.mk - copied unchanged from r245614, vendor/compiler-rt/dist/make/platform/clang_linux.mk vendor/compiler-rt/compiler-rt-r172839/make/platform/darwin_bni.mk - copied unchanged from r245614, vendor/compiler-rt/dist/make/platform/darwin_bni.mk vendor/compiler-rt/compiler-rt-r172839/test/Unit/endianness.h - copied unchanged from r245614, vendor/compiler-rt/dist/test/Unit/endianness.h Deleted: vendor/compiler-rt/compiler-rt-r172839/lib/asan/Makefile.old vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_interface.h vendor/compiler-rt/compiler-rt-r172839/lib/asan/asan_printf.cc vendor/compiler-rt/compiler-rt-r172839/lib/asan/output_tests/ vendor/compiler-rt/compiler-rt-r172839/lib/asan/tests/asan_break_optimization.cc vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_allocator64.h vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/sanitizer_interface_defs.h vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/tests/sanitizer_allocator64_test.cc vendor/compiler-rt/compiler-rt-r172839/lib/sanitizer_common/tests/sanitizer_allocator64_testlib.cc vendor/compiler-rt/compiler-rt-r172839/lib/tsan/output_tests/ vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl/tsan_printf.cc vendor/compiler-rt/compiler-rt-r172839/lib/tsan/rtl_tests/ vendor/compiler-rt/compiler-rt-r172839/lib/tsan/unit_tests/ Copied: vendor/compiler-rt/compiler-rt-r172839/.arcconfig (from r245614, vendor/compiler-rt/dist/.arcconfig) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/compiler-rt/compiler-rt-r172839/.arcconfig Fri Jan 18 20:08:20 2013 (r245615, copy of r245614, vendor/compiler-rt/dist/.arcconfig) @@ -0,0 +1,4 @@ +{ + "project_id" : "compiler-rt", + "conduit_uri" : "http://llvm-reviews.chandlerc.com/" +} Copied: vendor/compiler-rt/compiler-rt-r172839/CMakeLists.txt (from r245614, vendor/compiler-rt/dist/CMakeLists.txt) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/compiler-rt/compiler-rt-r172839/CMakeLists.txt Fri Jan 18 20:08:20 2013 (r245615, copy of r245614, vendor/compiler-rt/dist/CMakeLists.txt) @@ -0,0 +1,176 @@ +# CMake build for CompilerRT. +# +# This build assumes that CompilerRT is checked out into the +# 'projects/compiler-rt' inside of an LLVM tree, it is not a stand-alone build +# system. +# +# An important constraint of the build is that it only produces libraries +# based on the ability of the host toolchain to target various platforms. + +include(LLVMParseArguments) + +# The CompilerRT build system requires CMake version 2.8.8 or higher in order +# to use its support for building convenience "libraries" as a collection of +# .o files. This is particularly useful in producing larger, more complex +# runtime libraries. +cmake_minimum_required(VERSION 2.8.8) + +# Add path for custom modules +set(CMAKE_MODULE_PATH + ${CMAKE_MODULE_PATH} + "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules" + ) +include(AddCompilerRT) + +set(COMPILER_RT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) + +# 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) + set(TARGET_64_BIT_CFLAGS "-m64") + set(TARGET_32_BIT_CFLAGS "") +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") +endif() + +# FIXME: Below we assume that the target build of LLVM/Clang is x86, which is +# not at all valid. Much of this can be fixed just by switching to use +# a just-built-clang binary for the compiles. + +set(TARGET_x86_64_CFLAGS ${TARGET_64_BIT_CFLAGS}) +set(TARGET_i386_CFLAGS ${TARGET_32_BIT_CFLAGS}) + +set(COMPILER_RT_SUPPORTED_ARCH + x86_64 i386) + +function(get_target_flags_for_arch arch out_var) + list(FIND COMPILER_RT_SUPPORTED_ARCH ${arch} ARCH_INDEX) + if(ARCH_INDEX EQUAL -1) + message(FATAL_ERROR "Unsupported architecture: ${arch}") + else() + set(${out_var} ${TARGET_${arch}_CFLAGS} PARENT_SCOPE) + endif() +endfunction() + +# Try to compile a very simple source file to ensure we can target the given +# platform. We use the results of these tests to build only the various target +# runtime libraries supported by our current compilers cross-compiling +# abilities. +set(SIMPLE_SOURCE64 ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/simple64.c) +file(WRITE ${SIMPLE_SOURCE64} "#include <stdlib.h>\nint main() {}") +try_compile(CAN_TARGET_x86_64 ${CMAKE_BINARY_DIR} ${SIMPLE_SOURCE64} + COMPILE_DEFINITIONS "${TARGET_x86_64_CFLAGS}" + CMAKE_FLAGS "-DCMAKE_EXE_LINKER_FLAGS:STRING=${TARGET_x86_64_CFLAGS}") + +set(SIMPLE_SOURCE32 ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/simple32.c) +file(WRITE ${SIMPLE_SOURCE32} "#include <stdlib.h>\nint main() {}") +try_compile(CAN_TARGET_i386 ${CMAKE_BINARY_DIR} ${SIMPLE_SOURCE32} + COMPILE_DEFINITIONS "${TARGET_i386_CFLAGS}" + CMAKE_FLAGS "-DCMAKE_EXE_LINKER_FLAGS:STRING=${TARGET_i386_CFLAGS}") + +# We only support running instrumented tests when we're not cross compiling +# and target a unix-like system. On Android we define the rules for building +# unit tests, but don't execute them. +if("${CMAKE_HOST_SYSTEM}" STREQUAL "${CMAKE_SYSTEM}" AND UNIX AND NOT ANDROID) + set(COMPILER_RT_CAN_EXECUTE_TESTS TRUE) +else() + set(COMPILER_RT_CAN_EXECUTE_TESTS FALSE) +endif() + +function(filter_available_targets out_var) + set(archs) + foreach(arch ${ARGN}) + list(FIND COMPILER_RT_SUPPORTED_ARCH ${arch} ARCH_INDEX) + if(NOT (ARCH_INDEX EQUAL -1) AND CAN_TARGET_${arch}) + list(APPEND archs ${arch}) + endif() + endforeach() + set(${out_var} ${archs} PARENT_SCOPE) +endfunction() + +# Provide some common commmandline flags for Sanitizer runtimes. +set(SANITIZER_COMMON_CFLAGS + -fPIC + -fno-builtin + -fno-exceptions + -fomit-frame-pointer + -funwind-tables + -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) +else() + list(APPEND SANITIZER_COMMON_CFLAGS -g) +endif() +# Warnings suppressions. +check_cxx_compiler_flag(-Wno-variadic-macros SUPPORTS_NO_VARIADIC_MACROS_FLAG) +if(SUPPORTS_NO_VARIADIC_MACROS_FLAG) + list(APPEND SANITIZER_COMMON_CFLAGS -Wno-variadic-macros) +endif() +check_cxx_compiler_flag(-Wno-c99-extensions SUPPORTS_NO_C99_EXTENSIONS_FLAG) +if(SUPPORTS_NO_C99_EXTENSIONS_FLAG) + list(APPEND SANITIZER_COMMON_CFLAGS -Wno-c99-extensions) +endif() +if(APPLE) + list(APPEND SANITIZER_COMMON_CFLAGS -mmacosx-version-min=10.5) +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) + +# Compute the Clang version from the LLVM version. +# FIXME: We should be able to reuse CLANG_VERSION variable calculated +# in Clang cmake files, instead of copying the rules here. +string(REGEX MATCH "[0-9]+\\.[0-9]+(\\.[0-9]+)?" CLANG_VERSION + ${PACKAGE_VERSION}) +# Setup the paths where compiler-rt runtimes and headers should be stored. +set(LIBCLANG_INSTALL_PATH lib${LLVM_LIBDIR_SUFFIX}/clang/${CLANG_VERSION}) +string(TOLOWER ${CMAKE_SYSTEM_NAME} LIBCLANG_OS_DIR) + +# Install compiler-rt headers. +install(DIRECTORY include/ + DESTINATION ${LIBCLANG_INSTALL_PATH}/include + FILES_MATCHING + PATTERN "*.h" + PATTERN ".svn" EXCLUDE + ) + +# Call add_clang_compiler_rt_libraries to make sure that targets are built +# and installed in the directories where Clang driver expects to find them. +macro(add_clang_compiler_rt_libraries) + # Setup output directories so that clang in build tree works. + set_target_properties(${ARGN} PROPERTIES + ARCHIVE_OUTPUT_DIRECTORY + ${LLVM_BINARY_DIR}/lib/clang/${CLANG_VERSION}/lib/${LIBCLANG_OS_DIR} + LIBRARY_OUTPUT_DIRECTORY + ${LLVM_BINARY_DIR}/lib/clang/${CLANG_VERSION}/lib/${LIBCLANG_OS_DIR} + ) + # Add installation command. + install(TARGETS ${ARGN} + ARCHIVE DESTINATION ${LIBCLANG_INSTALL_PATH}/lib/${LIBCLANG_OS_DIR} + LIBRARY DESTINATION ${LIBCLANG_INSTALL_PATH}/lib/${LIBCLANG_OS_DIR} + ) +endmacro(add_clang_compiler_rt_libraries) + +# Add the public header's directory to the includes for all of compiler-rt. +include_directories(include) + +add_subdirectory(lib) + +if(LLVM_INCLUDE_TESTS) + # Currently the tests have not been ported to CMake, so disable this + # directory. + # + #add_subdirectory(test) +endif() Copied: vendor/compiler-rt/compiler-rt-r172839/LICENSE.TXT (from r245614, vendor/compiler-rt/dist/LICENSE.TXT) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/compiler-rt/compiler-rt-r172839/LICENSE.TXT Fri Jan 18 20:08:20 2013 (r245615, copy of r245614, vendor/compiler-rt/dist/LICENSE.TXT) @@ -0,0 +1,97 @@ +============================================================================== +compiler_rt License +============================================================================== + +The compiler_rt library is dual licensed under both the University of Illinois +"BSD-Like" license and the MIT license. As a user of this code you may choose +to use it under either license. As a contributor, you agree to allow your code +to be used under both. + +Full text of the relevant licenses is included below. + +============================================================================== + +University of Illinois/NCSA +Open Source License + +Copyright (c) 2009-2013 by the contributors listed in CREDITS.TXT + +All rights reserved. + +Developed by: + + LLVM Team + + University of Illinois at Urbana-Champaign + + http://llvm.org + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal with +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimers. + + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimers in the + documentation and/or other materials provided with the distribution. + + * Neither the names of the LLVM Team, University of Illinois at + Urbana-Champaign, nor the names of its contributors may be used to + endorse or promote products derived from this Software without specific + prior written permission. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE +SOFTWARE. + +============================================================================== + +Copyright (c) 2009-2013 by the contributors listed in CREDITS.TXT + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +============================================================================== +Copyrights and Licenses for Third Party Software Distributed with LLVM: +============================================================================== +The LLVM software contains code written by third parties. Such software will +have its own individual LICENSE.TXT file in the directory in which it appears. +This file will describe the copyrights, license, and restrictions which apply +to that code. + +The disclaimer of warranty in the University of Illinois Open Source License +applies to all code in the LLVM Distribution, and nothing in any of the +other licenses gives permission to use the names of the LLVM Team or the +University of Illinois to endorse or promote products derived from this +Software. + +The following pieces of software have additional or alternate copyrights, +licenses, and/or restrictions: + +Program Directory +------- --------- +mach_override lib/interception/mach_override Copied: vendor/compiler-rt/compiler-rt-r172839/Makefile (from r245614, vendor/compiler-rt/dist/Makefile) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/compiler-rt/compiler-rt-r172839/Makefile Fri Jan 18 20:08:20 2013 (r245615, copy of r245614, vendor/compiler-rt/dist/Makefile) @@ -0,0 +1,275 @@ +SubDirs := lib + +# Set default rule before anything else. +all: help + +include make/config.mk +include make/util.mk +# If SRCROOT is defined, assume we are doing an Apple style build. We should be +# able to use RC_XBS for this but that is unused during "make installsrc". +ifdef SRCROOT + include make/AppleBI.mk +endif + +# Make sure we don't build with a missing ProjObjRoot. +ifeq ($(ProjObjRoot),) +$(error Refusing to build with empty ProjObjRoot variable) +endif + +############## + +### +# Rules + +### +# Top level targets + +# FIXME: Document the available subtargets. +help: + @echo "usage: make [{VARIABLE=VALUE}*] target" + @echo + @echo "User variables:" + @echo " VERBOSE=1: Use to show all commands [default=0]" + @echo + @echo "Available targets:" + @echo " <platform name>: build the libraries for 'platform'" + @echo " clean: clean all configurations" + @echo " test: run unit tests" + @echo + @echo " info-platforms: list available platforms" + @echo " help-devel: print additional help for developers" + @echo + +help-devel: help + @echo "Development targets:" + @echo " <platform name>-<config name>:" + @echo " build the libraries for a single platform config" + @echo " <platform name>-<config name>-<arch name>:" + @echo " build the libraries for a single config and arch" + @echo " info-functions: list available compiler-rt functions" + @echo " help-hidden: print help for Makefile debugging" + @echo + +help-hidden: help-devel + @echo "Debugging variables:" + @echo " DEBUGMAKE=1: enable some Makefile logging [default=]" + @echo " =2: enable more Makefile logging" + @echo + @echo "Debugging targets:" + @echo " make-print-FOO: print information on the variable 'FOO'" + @echo + +info-functions: + @echo "compiler-rt Available Functions" + @echo + @echo "All Functions: $(AvailableFunctions)" + @$(foreach fn,$(AvailableFunctions),\ + printf " %-20s - available in (%s)\n" $(fn)\ + "$(foreach key,$(AvailableIn.$(fn)),$($(key).Dir))";) + +info-platforms: + @echo "compiler-rt Available Platforms" + @echo + @echo "Platforms:" + @$(foreach key,$(PlatformKeys),\ + printf " %s - from '%s'\n" $($(key).Name) $($(key).Path);\ + printf " %s\n" "$($(key).Description)";\ + printf " Configurations: %s\n\n" "$($(key).Configs)";) + +# Provide default clean target which is extended by other templates. +.PHONY: clean +clean:: + +# Test +.PHONY: test +test: + cd test/Unit && ./test + +### +# Directory handling magic. + +# Create directories as needed, and timestamp their creation. +%/.dir: + $(Summary) " MKDIR: $*" + $(Verb) $(MKDIR) $* > /dev/null + $(Verb) echo 'Created.' > $@ + +# Remove directories +%/.remove: + $(Verb) $(RM) -r $* + +### +# Include child makefile fragments + +Dir := . +include make/subdir.mk +include make/lib_info.mk +include make/lib_util.mk +include make/lib_platforms.mk + +### +# Define Platform Rules + +define PerPlatform_template +$(call Set,Tmp.Key,$(1)) +$(call Set,Tmp.Name,$($(Tmp.Key).Name)) +$(call Set,Tmp.Configs,$($(Tmp.Key).Configs)) +$(call Set,Tmp.ObjPath,$(ProjObjRoot)/$(Tmp.Name)) + +# Top-Level Platform Target +$(Tmp.Name):: $(Tmp.Configs:%=$(Tmp.Name)-%) +.PHONY: $(Tmp.Name) + +clean:: + $(Verb) rm -rf $(Tmp.ObjPath) + +# Per-Config Libraries +$(foreach config,$(Tmp.Configs),\ + $(call PerPlatformConfig_template,$(config))) +endef + +define PerPlatformConfig_template +$(call Set,Tmp.Config,$(1)) +$(call Set,Tmp.ObjPath,$(ProjObjRoot)/$(Tmp.Name)/$(Tmp.Config)) +$(call Set,Tmp.SHARED_LIBRARY,$(strip \ + $(call GetCNAVar,SHARED_LIBRARY,$(Tmp.Key),$(Tmp.Config),$(Tmp.Arch)))) +$(call Set,Tmp.SHARED_LIBRARY_SUFFIX,$(strip \ + $(call GetCNAVar,SHARED_LIBRARY_SUFFIX,$(Tmp.Key),$(Tmp.Config),$(Tmp.Arch)))) + +# Compute the library suffix. +$(if $(call streq,1,$(Tmp.SHARED_LIBRARY)), + $(call Set,Tmp.LibrarySuffix,$(Tmp.SHARED_LIBRARY_SUFFIX)), + $(call Set,Tmp.LibrarySuffix,a)) + +# Compute the archs to build, depending on whether this is a universal build or +# not. +$(call Set,Tmp.ArchsToBuild,\ + $(if $(call IsDefined,$(Tmp.Key).UniversalArchs),\ + $(strip \ + $(or $($(Tmp.Key).UniversalArchs.$(Tmp.Config)),\ + $($(Tmp.Key).UniversalArchs))),\ + $(call VarOrDefault,$(Tmp.Key).Arch.$(Tmp.Config),$($(Tmp.Key).Arch)))) + +# Copy or lipo to create the per-config library. +$(call Set,Tmp.Inputs,$(Tmp.ArchsToBuild:%=$(Tmp.ObjPath)/%/libcompiler_rt.$(Tmp.LibrarySuffix))) +$(Tmp.ObjPath)/libcompiler_rt.$(Tmp.LibrarySuffix): $(Tmp.Inputs) $(Tmp.ObjPath)/.dir + $(Summary) " FINAL-ARCHIVE: $(Tmp.Name)/$(Tmp.Config): $$@" + -$(Verb) $(RM) $$@ + $(if $(call streq,1,$(words $(Tmp.ArchsToBuild))), \ + $(Verb) $(CP) $(Tmp.Inputs) $$@, \ + $(Verb) $(LIPO) -create -output $$@ $(Tmp.Inputs)) +.PRECIOUS: $(Tmp.ObjPath)/.dir + +# Per-Config Targets +$(Tmp.Name)-$(Tmp.Config):: $(Tmp.ObjPath)/libcompiler_rt.$(Tmp.LibrarySuffix) +.PHONY: $(Tmp.Name)-$(Tmp.Config) + +# Per-Config-Arch Libraries +$(foreach arch,$(Tmp.ArchsToBuild),\ + $(call PerPlatformConfigArch_template,$(arch))) +endef + +define PerPlatformConfigArch_template +$(call Set,Tmp.Arch,$(1)) +$(call Set,Tmp.ObjPath,$(ProjObjRoot)/$(Tmp.Name)/$(Tmp.Config)/$(Tmp.Arch)) +$(call Set,Tmp.Functions,$(strip \ + $(AlwaysRequiredModules) \ + $(call GetCNAVar,FUNCTIONS,$(Tmp.Key),$(Tmp.Config),$(Tmp.Arch)))) +$(call Set,Tmp.Optimized,$(strip \ + $(call GetCNAVar,OPTIMIZED,$(Tmp.Key),$(Tmp.Config),$(Tmp.Arch)))) +$(call Set,Tmp.AR,$(strip \ + $(call GetCNAVar,AR,$(Tmp.Key),$(Tmp.Config),$(Tmp.Arch)))) +$(call Set,Tmp.ARFLAGS,$(strip \ + $(call GetCNAVar,ARFLAGS,$(Tmp.Key),$(Tmp.Config),$(Tmp.Arch)))) +$(call Set,Tmp.CC,$(strip \ + $(call GetCNAVar,CC,$(Tmp.Key),$(Tmp.Config),$(Tmp.Arch)))) +$(call Set,Tmp.LDFLAGS,$(strip \ + $(call GetCNAVar,LDFLAGS,$(Tmp.Key),$(Tmp.Config),$(Tmp.Arch)))) +$(call Set,Tmp.RANLIB,$(strip \ + $(call GetCNAVar,RANLIB,$(Tmp.Key),$(Tmp.Config),$(Tmp.Arch)))) +$(call Set,Tmp.RANLIBFLAGS,$(strip \ + $(call GetCNAVar,RANLIBFLAGS,$(Tmp.Key),$(Tmp.Config),$(Tmp.Arch)))) +$(call Set,Tmp.SHARED_LIBRARY,$(strip \ + $(call GetCNAVar,SHARED_LIBRARY,$(Tmp.Key),$(Tmp.Config),$(Tmp.Arch)))) + +# Compute the library suffix. +$(if $(call streq,1,$(Tmp.SHARED_LIBRARY)), + $(call Set,Tmp.LibrarySuffix,$(Tmp.SHARED_LIBRARY_SUFFIX)), + $(call Set,Tmp.LibrarySuffix,a)) + +# Compute the object inputs for this library. +$(call Set,Tmp.Inputs,\ + $(foreach fn,$(sort $(Tmp.Functions)),\ + $(call Set,Tmp.FnDir,\ + $(call SelectFunctionDir,$(Tmp.Config),$(Tmp.Arch),$(fn),$(Tmp.Optimized)))\ + $(Tmp.ObjPath)/$(Tmp.FnDir)/$(fn).o)) +$(Tmp.ObjPath)/libcompiler_rt.a: $(Tmp.Inputs) $(Tmp.ObjPath)/.dir + $(Summary) " ARCHIVE: $(Tmp.Name)/$(Tmp.Config)/$(Tmp.Arch): $$@" + -$(Verb) $(RM) $$@ + $(Verb) $(Tmp.AR) $(Tmp.ARFLAGS) $$@ $(Tmp.Inputs) + $(Verb) $(Tmp.RANLIB) $(Tmp.RANLIBFLAGS) $$@ +$(Tmp.ObjPath)/libcompiler_rt.dylib: $(Tmp.Inputs) $(Tmp.ObjPath)/.dir + $(Summary) " DYLIB: $(Tmp.Name)/$(Tmp.Config)/$(Tmp.Arch): $$@" + $(Verb) $(Tmp.CC) -arch $(Tmp.Arch) -dynamiclib -o $$@ \ + $(Tmp.Inputs) $(Tmp.LDFLAGS) +$(Tmp.ObjPath)/libcompiler_rt.so: $(Tmp.Inputs) $(Tmp.ObjPath)/.dir + $(Summary) " SO: $(Tmp.Name)/$(Tmp.Config)/$(Tmp.Arch): $$@" + $(Verb) $(Tmp.CC) -shared -o $$@ \ + $(Tmp.Inputs) $(Tmp.LDFLAGS) +.PRECIOUS: $(Tmp.ObjPath)/.dir + +# Per-Config-Arch Targets +$(Tmp.Name)-$(Tmp.Config)-$(Tmp.Arch):: $(Tmp.ObjPath)/libcompiler_rt.$(Tmp.LibrarySuffix) +.PHONY: $(Tmp.Name)-$(Tmp.Config)-$(Tmp.Arch) + +# Per-Config-Arch-SubDir Objects +$(foreach key,$(SubDirKeys),\ + $(call PerPlatformConfigArchSubDir_template,$(key))) +endef + +define PerPlatformConfigArchSubDir_template +$(call Set,Tmp.SubDirKey,$(1)) +$(call Set,Tmp.SubDir,$($(Tmp.SubDirKey).Dir)) +$(call Set,Tmp.SrcPath,$(ProjSrcRoot)/$(Tmp.SubDir)) +$(call Set,Tmp.ObjPath,$(ProjObjRoot)/$(Tmp.Name)/$(Tmp.Config)/$(Tmp.Arch)/$(Tmp.SubDirKey)) +$(call Set,Tmp.Dependencies,$($(Tmp.SubDirKey).Dependencies)) +$(call Set,Tmp.CC,$(strip \ + $(call GetCNAVar,CC,$(Tmp.Key),$(Tmp.Config),$(Tmp.Arch)))) +$(call Set,Tmp.KERNEL_USE,$(strip \ + $(call GetCNAVar,KERNEL_USE,$(Tmp.Key),$(Tmp.Config),$(Tmp.Arch)))) +$(call Set,Tmp.VISIBILITY_HIDDEN,$(strip \ + $(call GetCNAVar,VISIBILITY_HIDDEN,$(Tmp.Key),$(Tmp.Config),$(Tmp.Arch)))) +$(call Set,Tmp.CFLAGS,$(strip \ + $(if $(call IsDefined,$(Tmp.Key).UniversalArchs),-arch $(Tmp.Arch),)\ + $(if $(call streq,$(Tmp.VISIBILITY_HIDDEN),1),\ + -fvisibility=hidden -DVISIBILITY_HIDDEN,)\ + $(if $(call streq,$(Tmp.KERNEL_USE),1),\ + -mkernel -DKERNEL_USE,)\ + $(call GetCNAVar,CFLAGS,$(Tmp.Key),$(Tmp.Config),$(Tmp.Arch)))) + +$(Tmp.ObjPath)/%.o: $(Tmp.SrcPath)/%.s $(Tmp.Dependencies) $(Tmp.ObjPath)/.dir + $(Summary) " ASSEMBLE: $(Tmp.Name)/$(Tmp.Config)/$(Tmp.Arch): $$<" + $(Verb) $(Tmp.CC) $(Tmp.CFLAGS) -c -o $$@ $$< +$(Tmp.ObjPath)/%.o: $(Tmp.SrcPath)/%.S $(Tmp.Dependencies) $(Tmp.ObjPath)/.dir + $(Summary) " ASSEMBLE: $(Tmp.Name)/$(Tmp.Config)/$(Tmp.Arch): $$<" + $(Verb) $(Tmp.CC) $(Tmp.CFLAGS) -c -o $$@ $$< +$(Tmp.ObjPath)/%.o: $(Tmp.SrcPath)/%.c $(Tmp.Dependencies) $(Tmp.ObjPath)/.dir + $(Summary) " COMPILE: $(Tmp.Name)/$(Tmp.Config)/$(Tmp.Arch): $$<" + $(Verb) $(Tmp.CC) $(Tmp.CFLAGS) -c $(COMMON_CFLAGS) -o $$@ $$< +$(Tmp.ObjPath)/%.o: $(Tmp.SrcPath)/%.cc $(Tmp.Dependencies) $(Tmp.ObjPath)/.dir + $(Summary) " COMPILE: $(Tmp.Name)/$(Tmp.Config)/$(Tmp.Arch): $$<" + $(Verb) $(Tmp.CC) $(Tmp.CFLAGS) -c $(COMMON_CXXFLAGS) -o $$@ $$< +.PRECIOUS: $(Tmp.ObjPath)/.dir + +endef + +# Run templates. +$(foreach key,$(PlatformKeys),\ + $(eval $(call PerPlatform_template,$(key)))) + +### + +ifneq ($(DEBUGMAKE),) + $(info MAKE: Done processing Makefile) + $(info ) +endif Copied: vendor/compiler-rt/compiler-rt-r172839/SDKs/darwin/usr/include/stdio.h (from r245614, vendor/compiler-rt/dist/SDKs/darwin/usr/include/stdio.h) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/compiler-rt/compiler-rt-r172839/SDKs/darwin/usr/include/stdio.h Fri Jan 18 20:08:20 2013 (r245615, copy of r245614, vendor/compiler-rt/dist/SDKs/darwin/usr/include/stdio.h) @@ -0,0 +1,84 @@ +/* ===-- stdio.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 __STDIO_H__ +#define __STDIO_H__ + +#if defined(__cplusplus) +extern "C" { +#endif + +typedef struct __sFILE FILE; +typedef __SIZE_TYPE__ size_t; + +/* Determine the appropriate fopen() and fwrite() functions. */ +#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) +# if defined(__i386) +# define __FOPEN_NAME "_fopen$UNIX2003" +# define __FWRITE_NAME "_fwrite$UNIX2003" +# elif defined(__x86_64__) +# define __FOPEN_NAME "_fopen" +# define __FWRITE_NAME "_fwrite" +# elif defined(__arm) +# define __FOPEN_NAME "_fopen" +# define __FWRITE_NAME "_fwrite" +# else +# error "unrecognized architecture for targetting OS X" +# endif +#elif defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) +# if defined(__i386) || defined (__x86_64) +# define __FOPEN_NAME "_fopen" +# define __FWRITE_NAME "_fwrite" +# elif defined(__arm) +# define __FOPEN_NAME "_fopen" +# define __FWRITE_NAME "_fwrite" +# else +# error "unrecognized architecture for targetting iOS" +# endif +#else +# error "unrecognized architecture for targetting Darwin" +#endif + +# define stderr __stderrp +extern FILE *__stderrp; + +#ifndef SEEK_SET +#define SEEK_SET 0 /* set file offset to offset */ +#endif +#ifndef SEEK_CUR +#define SEEK_CUR 1 /* set file offset to current plus offset */ +#endif +#ifndef SEEK_END +#define SEEK_END 2 /* set file offset to EOF plus offset */ +#endif + +int fclose(FILE *); +int fflush(FILE *); +FILE *fopen(const char * __restrict, const char * __restrict) __asm(__FOPEN_NAME); +int fprintf(FILE * __restrict, const char * __restrict, ...); +size_t fwrite(const void * __restrict, size_t, size_t, FILE * __restrict) + __asm(__FWRITE_NAME); +size_t fread(void * __restrict, size_t, size_t, FILE * __restrict); +long ftell(FILE *); +int fseek(FILE *, long, int); + +int snprintf(char * __restrict, size_t, const char * __restrict, ...); + +#if defined(__cplusplus) +} +#endif + +#endif /* __STDIO_H__ */ Copied: vendor/compiler-rt/compiler-rt-r172839/SDKs/linux/usr/include/stdio.h (from r245614, vendor/compiler-rt/dist/SDKs/linux/usr/include/stdio.h) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/compiler-rt/compiler-rt-r172839/SDKs/linux/usr/include/stdio.h Fri Jan 18 20:08:20 2013 (r245615, copy of r245614, vendor/compiler-rt/dist/SDKs/linux/usr/include/stdio.h) @@ -0,0 +1,42 @@ +/* ===-- stdio.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 __STDIO_H__ +#define __STDIO_H__ + +typedef __SIZE_TYPE__ size_t; + +struct _IO_FILE; +typedef struct _IO_FILE FILE; + +extern struct _IO_FILE *stdin; +extern struct _IO_FILE *stdout; +extern struct _IO_FILE *stderr; + +#define SEEK_SET 0 /* set file offset to offset */ +#define SEEK_CUR 1 /* set file offset to current plus offset */ +#define SEEK_END 2 /* set file offset to EOF plus offset */ + +extern int fclose(FILE *); +extern int fflush(FILE *); +extern FILE *fopen(const char * restrict, const char * restrict); +extern int fprintf(FILE * restrict, const char * restrict, ...); +extern size_t fwrite(const void * restrict, size_t, size_t, FILE * restrict); +extern size_t fread(void * restrict, size_t, size_t, FILE * restrict); +extern long ftell(FILE *); +extern int fseek(FILE *, long, int); + +#endif /* __STDIO_H__ */ Copied: vendor/compiler-rt/compiler-rt-r172839/cmake/Modules/AddCompilerRT.cmake (from r245614, vendor/compiler-rt/dist/cmake/Modules/AddCompilerRT.cmake) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/compiler-rt/compiler-rt-r172839/cmake/Modules/AddCompilerRT.cmake Fri Jan 18 20:08:20 2013 (r245615, copy of r245614, vendor/compiler-rt/dist/cmake/Modules/AddCompilerRT.cmake) @@ -0,0 +1,49 @@ +include(AddLLVM) +include(LLVMParseArguments) +include(CompilerRTUtils) + +# Tries to add "object library" target for a given architecture +# with name "<name>.<arch>" if architecture can be targeted. +# add_compiler_rt_object_library(<name> <arch> +# SOURCES <source files> +# CFLAGS <compile flags>) +macro(add_compiler_rt_object_library name arch) + if(CAN_TARGET_${arch}) + parse_arguments(LIB "SOURCES;CFLAGS" "" ${ARGN}) + add_library(${name}.${arch} OBJECT ${LIB_SOURCES}) + set_target_compile_flags(${name}.${arch} + ${TARGET_${arch}_CFLAGS} ${LIB_CFLAGS}) + else() + message(FATAL_ERROR "Archtecture ${arch} can't be targeted") + endif() +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_INCLUDE_CFLAGS + -DGTEST_NO_LLVM_RAW_OSTREAM=1 + -I${COMPILER_RT_GTEST_PATH}/include +) + +# Use Clang to link objects into a single executable with just-built +# Clang, using specific link flags. Make executable a part of provided +# test_suite. +# add_compiler_rt_test(<test_suite> <test_name> +# OBJECTS <object files> +# DEPS <deps (e.g. runtime libs)> +# LINK_FLAGS <link flags>) +macro(add_compiler_rt_test test_suite test_name) + parse_arguments(TEST "OBJECTS;DEPS;LINK_FLAGS" "" ${ARGN}) + get_unittest_directory(OUTPUT_DIR) + file(MAKE_DIRECTORY ${OUTPUT_DIR}) + set(output_bin "${OUTPUT_DIR}/${test_name}") + add_custom_command( + OUTPUT ${output_bin} + COMMAND clang ${TEST_OBJECTS} -o "${output_bin}" + ${TEST_LINK_FLAGS} + DEPENDS clang ${TEST_DEPS}) + add_custom_target(${test_name} DEPENDS ${output_bin}) + # Make the test suite depend on the binary. + add_dependencies(${test_suite} ${test_name}) +endmacro() Copied: vendor/compiler-rt/compiler-rt-r172839/cmake/Modules/CompilerRTCompile.cmake (from r245614, vendor/compiler-rt/dist/cmake/Modules/CompilerRTCompile.cmake) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/compiler-rt/compiler-rt-r172839/cmake/Modules/CompilerRTCompile.cmake Fri Jan 18 20:08:20 2013 (r245615, copy of r245614, vendor/compiler-rt/dist/cmake/Modules/CompilerRTCompile.cmake) @@ -0,0 +1,16 @@ +include(LLVMParseArguments) + +# Compile a source into an object file with just-built Clang using +# a provided compile flags and dependenices. +# clang_compile(<object> <source> +# CFLAGS <list of compile flags> +# DEPS <list of dependencies>) +macro(clang_compile object_file source) + parse_arguments(SOURCE "CFLAGS;DEPS" "" ${ARGN}) + get_filename_component(source_rpath ${source} REALPATH) + add_custom_command( + OUTPUT ${object_file} + COMMAND clang ${SOURCE_CFLAGS} -c -o "${object_file}" ${source_rpath} + MAIN_DEPENDENCY ${source} + DEPENDS clang ${SOURCE_DEPS}) +endmacro() Copied: vendor/compiler-rt/compiler-rt-r172839/cmake/Modules/CompilerRTLink.cmake (from r245614, vendor/compiler-rt/dist/cmake/Modules/CompilerRTLink.cmake) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/compiler-rt/compiler-rt-r172839/cmake/Modules/CompilerRTLink.cmake Fri Jan 18 20:08:20 2013 (r245615, copy of r245614, vendor/compiler-rt/dist/cmake/Modules/CompilerRTLink.cmake) @@ -0,0 +1,14 @@ +include(LLVMParseArguments) + +# Link a shared library with just-built Clang. +# clang_link_shared(<output.so> +# OBJECTS <list of input objects> +# LINKFLAGS <list of link flags> +# DEPS <list of dependencies>) +macro(clang_link_shared so_file) + parse_arguments(SOURCE "OBJECTS;LINKFLAGS;DEPS" "" ${ARGN}) + add_custom_command( + OUTPUT ${so_file} + COMMAND clang -o "${so_file}" -shared ${SOURCE_LINKFLAGS} ${SOURCE_OBJECTS} + DEPENDS clang ${SOURCE_DEPS}) +endmacro() Copied: vendor/compiler-rt/compiler-rt-r172839/cmake/Modules/CompilerRTUtils.cmake (from r245614, vendor/compiler-rt/dist/cmake/Modules/CompilerRTUtils.cmake) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/compiler-rt/compiler-rt-r172839/cmake/Modules/CompilerRTUtils.cmake Fri Jan 18 20:08:20 2013 (r245615, copy of r245614, vendor/compiler-rt/dist/cmake/Modules/CompilerRTUtils.cmake) @@ -0,0 +1,17 @@ +# Because compiler-rt spends a lot of time setting up custom compile flags, +# define a handy helper function for it. The compile flags setting in CMake +# has serious issues that make its syntax challenging at best. +function(set_target_compile_flags target) + foreach(arg ${ARGN}) + set(argstring "${argstring} ${arg}") + endforeach() + set_property(TARGET ${target} PROPERTY COMPILE_FLAGS "${argstring}") +endfunction() + +function(set_target_link_flags target) + foreach(arg ${ARGN}) + set(argstring "${argstring} ${arg}") + endforeach() + set_property(TARGET ${target} PROPERTY LINK_FLAGS "${argstring}") +endfunction() + Copied: vendor/compiler-rt/compiler-rt-r172839/lib/CMakeLists.txt (from r245614, vendor/compiler-rt/dist/lib/CMakeLists.txt) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/compiler-rt/compiler-rt-r172839/lib/CMakeLists.txt Fri Jan 18 20:08:20 2013 (r245615, copy of r245614, vendor/compiler-rt/dist/lib/CMakeLists.txt) @@ -0,0 +1,188 @@ +# First, add the subdirectories which contain feature-based runtime libraries +# and several convenience helper libraries. +if(CMAKE_SYSTEM_NAME MATCHES "Darwin|Linux") + # AddressSanitizer is supported on Linux and Mac OS X. + # Windows support is work in progress. + add_subdirectory(asan) + add_subdirectory(interception) + add_subdirectory(sanitizer_common) + if(NOT ANDROID) + add_subdirectory(ubsan) + endif() +endif() +if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux" AND NOT ANDROID) + # ThreadSanitizer and MemorySanitizer are supported on Linux only. + add_subdirectory(tsan) + add_subdirectory(msan) +endif() + +# FIXME: Add support for the profile library. + +# The top-level lib directory contains a large amount of C code which provides +# generic implementations of the core runtime library along with optimized +# architecture-specific code in various subdirectories. + +set(GENERIC_SOURCES + absvdi2.c + absvsi2.c + absvti2.c + adddf3.c + addsf3.c + addvdi3.c + addvsi3.c + addvti3.c + apple_versioning.c + ashldi3.c + ashlti3.c + ashrdi3.c + ashrti3.c + clear_cache.c + clzdi2.c + clzsi2.c + clzti2.c + cmpdi2.c + cmpti2.c + comparedf2.c + comparesf2.c + ctzdi2.c + ctzsi2.c + ctzti2.c + divdc3.c + divdf3.c + divdi3.c + divmoddi4.c + divmodsi4.c + divsc3.c + divsf3.c + divsi3.c + divti3.c + divxc3.c + enable_execute_stack.c + eprintf.c + extendsfdf2.c + ffsdi2.c + ffsti2.c + fixdfdi.c + fixdfsi.c + fixdfti.c + fixsfdi.c + fixsfsi.c + fixsfti.c + fixunsdfdi.c + fixunsdfsi.c + fixunsdfti.c + fixunssfdi.c + fixunssfsi.c + fixunssfti.c + fixunsxfdi.c + fixunsxfsi.c + fixunsxfti.c + fixxfdi.c + fixxfti.c + floatdidf.c + floatdisf.c + floatdixf.c + floatsidf.c + floatsisf.c + floattidf.c + floattisf.c + floattixf.c + floatundidf.c + floatundisf.c + floatundixf.c + floatunsidf.c + floatunsisf.c + floatuntidf.c + floatuntisf.c + floatuntixf.c + gcc_personality_v0.c + int_util.c + lshrdi3.c + lshrti3.c + moddi3.c + modsi3.c + modti3.c + muldc3.c + muldf3.c + muldi3.c + mulodi4.c + mulosi4.c + muloti4.c + mulsc3.c + mulsf3.c + multi3.c + mulvdi3.c + mulvsi3.c + mulvti3.c + mulxc3.c + negdf2.c + negdi2.c + negsf2.c + negti2.c + negvdi2.c + negvsi2.c + negvti2.c + paritydi2.c + paritysi2.c + parityti2.c + popcountdi2.c + popcountsi2.c + popcountti2.c + powidf2.c + powisf2.c + powitf2.c + powixf2.c + subdf3.c + subsf3.c + subvdi3.c + subvsi3.c + subvti3.c + trampoline_setup.c + truncdfsf2.c + ucmpdi2.c + ucmpti2.c + udivdi3.c + udivmoddi4.c + udivmodsi4.c + udivmodti4.c + udivsi3.c + udivti3.c + umoddi3.c + umodsi3.c + umodti3.c + ) + +if(CAN_TARGET_x86_64) + add_library(clang_rt.x86_64 STATIC + x86_64/floatdidf.c + x86_64/floatdisf.c + x86_64/floatdixf.c + x86_64/floatundidf.S + x86_64/floatundisf.S + x86_64/floatundixf.S + ${GENERIC_SOURCES} + ) + set_target_properties(clang_rt.x86_64 PROPERTIES COMPILE_FLAGS "-std=c99 ${TARGET_x86_64_CFLAGS}") + add_clang_compiler_rt_libraries(clang_rt.x86_64) +endif() +if(CAN_TARGET_i386) + add_library(clang_rt.i386 STATIC + i386/ashldi3.S + i386/ashrdi3.S + i386/divdi3.S + i386/floatdidf.S + i386/floatdisf.S + i386/floatdixf.S + i386/floatundidf.S + i386/floatundisf.S + i386/floatundixf.S + i386/lshrdi3.S + i386/moddi3.S + i386/muldi3.S + i386/udivdi3.S + i386/umoddi3.S + ${GENERIC_SOURCES} + ) + set_target_properties(clang_rt.i386 PROPERTIES COMPILE_FLAGS "-std=c99 ${TARGET_i386_CFLAGS}") + add_clang_compiler_rt_libraries(clang_rt.i386) +endif() Copied: vendor/compiler-rt/compiler-rt-r172839/lib/Makefile.mk (from r245614, vendor/compiler-rt/dist/lib/Makefile.mk) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/compiler-rt/compiler-rt-r172839/lib/Makefile.mk Fri Jan 18 20:08:20 2013 (r245615, copy of r245614, vendor/compiler-rt/dist/lib/Makefile.mk) @@ -0,0 +1,35 @@ +#===- lib/Makefile.mk --------------------------------------*- Makefile -*--===# +# *** DIFF OUTPUT TRUNCATED AT 1000 LINES ***
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301182008.r0IK8Lka025094>