summaryrefslogtreecommitdiffstats
path: root/libsanitizer/sanitizer_common
Commit message (Collapse)AuthorAgeFilesLines
* Fix sanitizer build on sparc.davem2014-10-142-2/+57
| | | | | | | | | | | | | | | | | * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t): Define at __kernel_time_t, as needed for sparc. (struct __old_kernel_stat): Don't check if __sparc__ is defined. * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h (__sanitizer): Define struct___old_kernel_stat_sz, struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc. (__sanitizer_ipc_perm): Adjust for sparc targets. (__sanitizer_shmid_ds): Likewsie. (__sanitizer_sigaction): Likewsie. (IOC_SIZE): Likewsie. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@216219 138bc75d-0d04-0410-961f-82ee72b054a4
* PR sanitizer/60038jakub2014-02-041-9/+36
| | | | | | | | | | | | | | | * sanitizer_common/sanitizer_linux_libcdep.cc: Include sanitizer_atomic.h and unistd.h. (kThreadDescriptorSize): Made static, remove initializer and const, change type to atomic_uintptr_t. (ThreadDescriptorSize): Use confstr(_CS_GNU_LIBC_VERSION, ...) to query glibc version, compute kThreadDescriptorSize depending on glibc version minor number. (GetThreadStackAndTls): Use ThreadDescriptorSize() instead of kThreadDescriptorSize directly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207452 138bc75d-0d04-0410-961f-82ee72b054a4
* * sanitizer_common/sanitizer_symbolizer_libbacktrace.hjakub2014-01-095-5/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (LibbacktraceSymbolizer::Demangle): New declaration. * sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc (POSIXSymbolizer::Demangle): Use libbacktrace_symbolizer_'s Demangle method if possible. * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc: Include "demangle.h" if SANITIZE_CP_DEMANGLE is defined. (struct CplusV3DemangleData): New type. (CplusV3DemangleCallback, CplusV3Demangle): New functions. (SymbolizeCodePCInfoCallback, SymbolizeCodeCallback, SymbolizeDataCallback): Use CplusV3Demangle. * sanitizer_common/Makefile.am (AM_CXXFLAGS): Add -DSANITIZE_CP_DEMANGLE and -I $(top_srcdir)/../include. * libbacktrace/backtrace-rename.h (cplus_demangle_builtin_types, cplus_demangle_fill_ctor, cplus_demangle_fill_dtor, cplus_demangle_fill_extended_operator, cplus_demangle_fill_name, cplus_demangle_init_info, cplus_demangle_mangled_name, cplus_demangle_operators, cplus_demangle_print, cplus_demangle_print_callback, cplus_demangle_type, cplus_demangle_v3, cplus_demangle_v3_callback, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor, java_demangle_v3, java_demangle_v3_callback): Define. (__asan_internal_memcmp, __asan_internal_strncmp): New prototypes. (memcmp, strncmp): Redefine. * libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES): Add ../../libiberty/cp-demangle.c. * libbacktrace/bridge.cc (__asan_internal_memcmp, __asan_internal_strncmp): New functions. * sanitizer_common/Makefile.in: Regenerated. * libbacktrace/Makefile.in: Regenerated. * configure: Regenerated. * configure.ac: Regenerated. * config.h.in: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206477 138bc75d-0d04-0410-961f-82ee72b054a4
* * sanitizer_common/Makefile.am (AM_CPPFLAGS): Addjakub2014-01-092-3/+3
| | | | | | | | | | | | | -isystem $(top_srcdir)/include/system. * sanitizer_common/Makefile.in: Regenerated. * include/system/linux/aio_abi.h: New header. * include/system/linux/mroute.h: New header. * include/system/linux/mroute6.h: New header. * include/system/linux/perf_event.h: New header. * include/system/linux/types.h: New header. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206476 138bc75d-0d04-0410-961f-82ee72b054a4
* PR sanitizer/59136jakub2014-01-092-4/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libsanitizer/ * sanitizer_common/Makefile.am (AM_CXXFLAGS): If LIBBACKTRACE_SUPPORTED add -DSANITIZER_LIBBACKTRACE and -I/-include flags. * lsan/Makefile.am (liblsan_la_LIBADD): Add libsanitizer_libbacktrace.la if LIBBACKTRACE_SUPPORTED. * tsan/Makefile.am (libtsan_la_LIBADD): Likewise. * ubsan/Makefile.am (libubsan_la_LIBADD): Likewise. * asan/Makefile.am (libasan_la_LIBADD): Likewise. * Makefile.am (SUBDIRS): If LIBBACKTRACE_SUPPORTED add libbacktrace. * README.gcc: Document that also lsan and ubsan are maintained in compiler-rt upstream. * libbacktrace/Makefile.am: New file. * libbacktrace/backtrace-rename.h: New file. * libbacktrace/backtrace-supported.h.in: New file. * libbacktrace/bridge.cc: New file. * configure.ac: Add tests needed for libbacktrace build within libsanitizer. * sanitizer_common/Makefile.in: Regenerated. * lsan/Makefile.in: Regenerated. * tsan/Makefile.in: Regenerated. * ubsan/Makefile.in: Regenerated. * libbacktrace/Makefile.in: Generated. * config.h.in: Regenerated. * configure: Regenerated. * Makefile.in: Regenerated. * interception/Makefile.in: Regenerated. * asan/Makefile.in: Regenerated. * aclocal.m4: Regenerated. testsuite/ * c-c++-common/asan/strip-path-prefix-1.c: Allow also the filename:line instead of (modulename+offset) form with stripped initial / from the filename. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206475 138bc75d-0d04-0410-961f-82ee72b054a4
* libsanitizer: fix build on Mac 10.6kcc2013-12-191-0/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206113 138bc75d-0d04-0410-961f-82ee72b054a4
* Use int64 on time and clock for x32hjl2013-12-061-0/+16
| | | | | | | | | * sanitizer_common/sanitizer_platform_limits_posix.h (__sanitizer_shmid_ds): Use u64 on time fields for x32. (__sanitizer_clock_t): Use long long for x32. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205737 138bc75d-0d04-0410-961f-82ee72b054a4
* Include <sys/stat.h> if __x86_64__ is definedhjl2013-12-061-1/+5
| | | | | | | | | * sanitizer_common/sanitizer_platform_limits_linux.cc: Include <sys/stat.h>, instead of <asm/stat.h>, if __x86_64__ is defined. (struct___old_kernel_stat_sz): Don't check if __x86_64__ is defined. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205736 138bc75d-0d04-0410-961f-82ee72b054a4
* Add forgotten file.jakub2013-12-051-0/+36
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205701 138bc75d-0d04-0410-961f-82ee72b054a4
* libsanitizer merge from upstream r196489kcc2013-12-057-15/+72
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205700 138bc75d-0d04-0410-961f-82ee72b054a4
* libsanitizer merge from upstream r196090kcc2013-12-0548-917/+3020
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205695 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/ygribov2013-11-291-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2013-11-29 Jakub Jelinek <jakub@redhat.com> Yury Gribov <y.gribov@samsung.com> PR sanitizer/59063 * config/gnu-user.h: Removed old code for setting up sanitizer libs. * gcc.c: Using libsanitizer spec instead of explicit libs. gcc/testsuite/ 2013-11-29 Jakub Jelinek <jakub@redhat.com> Yury Gribov <y.gribov@samsung.com> PR sanitizer/59063 * c-c++-common/asan/pr59063-1.c: New test. * c-c++-common/asan/pr59063-2.c: Likewise. * lib/asan-dg.exp: Add path to libsanitizer.spec to cflags. * lib/ubsan-dg.exp: Likewise. libsanitizer/ 2013-11-29 Jakub Jelinek <jakub@redhat.com> Yury Gribov <y.gribov@samsung.com> PR sanitizer/59063 * libsanitizer.spec.in: Add spec file to hold link flags for various sanitizer libs. * configure.ac: Check whether clock_* routines come from librt. * asan/Makefile.am (libasan_la_LDFLAGS): Libs now come from configure.ac. * tsan/Makefile.am (libtsan_la_LDFLAGS): Likewise. * ubsan/Makefile.am (libubsan_la_LDFLAGS): Likewise. * lsan/Makefile.am (liblsan_la_LDFLAGS): Likewise. * asan/Makefile.in: Regenerate. * interception/Makefile.in: Regenerate. * lsan/Makefile.in: Regenerate. * sanitizer_common/Makefile.in: Regenerate. * tsan/Makefile.in: Regenerate. * ubsan/Makefile.in: Regenerate. * Makefile.in: Regenerate. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205524 138bc75d-0d04-0410-961f-82ee72b054a4
* * sanitizer_common/sanitizer_linux.cc (__sanitizer): Grab onemrs2013-11-221-3/+3
| | | | | | | change from upstream to fix build. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205285 138bc75d-0d04-0410-961f-82ee72b054a4
* libsanitizer:ygribov2013-11-182-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | 2013-11-18 Yury Gribov <y.gribov@samsung.com> PR sanitizer/59106 * asan/Makefile.am (AM_CXXFLAGS): Add -fno-rtti. * interception/Makefile.am (AM_CXXFLAGS): Likewise. * lsan/Makefile.am (AM_CXXFLAGS): Likewise. * sanitizer_common/Makefile.am (AM_CXXFLAGS): Likewise. * tsan/Makefile.am (AM_CXXFLAGS): Likewise. * asan/Makefile.in: Regenerate. * interception/Makefile.in: Regenerate. * tsan/Makefile.in: Regenerate. * lsan/Makefile.in: Regenerate. * sanitizer_common/Makefile.in: Regenerate. gcc/testsuite: 2013-11-18 Yury Gribov <y.gribov@samsung.com> PR sanitizer/59106 * c-c++-common/asan/pr59106.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204934 138bc75d-0d04-0410-961f-82ee72b054a4
* PR sanitizer/59009bergner2013-11-131-0/+2
| | | | | | | | * sanitizer_common/sanitizer_platform_limits_posix.cc: Temporarily ifdef out more source. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204757 138bc75d-0d04-0410-961f-82ee72b054a4
* * sanitizer_common/sanitizer_platform_limits_linux.cc: Temporarilyjakub2013-11-122-0/+6
| | | | | | | | ifdef out almost the whole source. * sanitizer_common/sanitizer_common_syscalls.inc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204726 138bc75d-0d04-0410-961f-82ee72b054a4
* Check __x86_64__ for FPU statehjl2013-11-061-1/+1
| | | | | | | | | | PR sanitizer/59018 * sanitizer_common/sanitizer_platform_limits_posix.cc (struct_user_fpxregs_struct_sz): Initialize to 0 if __x86_64__ is defined. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204483 138bc75d-0d04-0410-961f-82ee72b054a4
* Use 64-bit system types for x86-64hjl2013-11-062-4/+5
| | | | | | | | | | | | | | | | | | PR sanitizer/59018 * sanitizer_common/sanitizer_platform_limits_linux.cc (struct_kernel_stat64_sz): Initialize to 0 if __x86_64__ is defined. * sanitizer_common/sanitizer_platform_limits_posix.h (__sanitizer_dirent): Use 64-bit d_ino/d_off if __x86_64__ is defined. (__sanitizer___kernel_uid_t): Typedef as unsigned if __x86_64__ is defined. (__sanitizer___kernel_gid_t): Likewise. (__sanitizer___kernel_off_t): Typedef as long long if __x86_64__ is defined. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204482 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix internal_clone for x32hjl2013-11-061-8/+8
| | | | | | | | | | PR sanitizer/59018 * sanitizer_common/sanitizer_linux.cc (internal_clone): Allocate 2 64-bit integers to save and restore fn and arg. Properly load newtls/child_tidptr into r8/r10. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204481 138bc75d-0d04-0410-961f-82ee72b054a4
* Cast pointers to uptr for 64-bit syscallshjl2013-11-061-19/+19
| | | | | | | | | | | | | PR sanitizer/59018 * sanitizer_common/sanitizer_linux.cc (internal_mmap, internal_munmap, internal_open, internal_read, internal_write, internal_stat, internal_lstat, internal_fstat, internal_readlink, internal_unlink, internal_execve, NanoTime, BlockingMutex::Lock, BlockingMutex::Unlock, internal_ptrace, internal_getdents, internal_sigaltstack): Cast pointers to uptr for 64-bit syscalls. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204480 138bc75d-0d04-0410-961f-82ee72b054a4
* libsanitizer merge from upstream r191666kcc2013-11-0455-1134/+11090
| | | | | | | | This may break gcc-asan on Mac, will follow up separately. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204368 138bc75d-0d04-0410-961f-82ee72b054a4
* Merge ubsan into trunk.mpolacek2013-08-303-12/+19
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202113 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-06-03 Christophe Lyon <christophe.lyon@linaro.org>clyon2013-06-031-1/+3
| | | | | | | | | * sanitizer_common/sanitizer_linux.cc (MemoryMappingLayout::Next): Cherry pick upstream r182922. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199606 138bc75d-0d04-0410-961f-82ee72b054a4
* PR other/43620jakub2013-03-221-36/+3
| | | | | | | | | | | | * configure.ac (AM_INIT_AUTOMAKE): Add no-dist. * Makefile.in: Regenerated. * asan/Makefile.in: Regenerated. * interception/Makefile.in: Regenerated. * sanitizer_common/Makefile.in: Regenerated. * tsan/Makefile.in: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196964 138bc75d-0d04-0410-961f-82ee72b054a4
* libsanitizer merge from upstream r175733kcc2013-02-2117-28/+290
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196201 138bc75d-0d04-0410-961f-82ee72b054a4
* libsanitizer merge from upstream r175049kcc2013-02-1321-293/+982
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196009 138bc75d-0d04-0410-961f-82ee72b054a4
* libsanitizer merge from upstream r173241kcc2013-01-2318-374/+1086
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195404 138bc75d-0d04-0410-961f-82ee72b054a4
* * sanitizer_common/Makefile.am (AM_CXXFLAGS): Removejakub2013-01-162-3/+2
| | | | | | | | | | | | -Wno-c99-extensions. * interception/Makefile.am (AM_CXXFLAGS): Likewise. * asan/Makefile.am (AM_CXXFLAGS): Likewise. * sanitizer_common/Makefile.in: Regenerated. * interception/Makefile.in: Regenerated. * asan/Makefile.in: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195229 138bc75d-0d04-0410-961f-82ee72b054a4
* libsanitizer mege from upstream r171973kcc2013-01-1023-141/+950
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195083 138bc75d-0d04-0410-961f-82ee72b054a4
* Restore AM_MAKEFLAGS in libsanitizerhjl2012-12-122-0/+77
| | | | | | | | | | | | | | | | * Makefile.am (AM_MAKEFLAGS): Restored. * asan/Makefile.am: Likewise. * interception/Makefile.am: Likewise. * sanitizer_common/Makefile.am: Likewise. * tsan/Makefile.am: Likewise. * Makefile.in: Regenerated. * asan/Makefile.in: Likewise. * interception/Makefile.in: Likewise. * sanitizer_common/Makefile.in: Likewise. * tsan/Makefile.in: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194452 138bc75d-0d04-0410-961f-82ee72b054a4
* Restore MAKEOVERRIDES in libsanitizerhjl2012-12-122-0/+3
| | | | | | | | | | | | | | | | * Makefile.am (MAKEOVERRIDES): Restored. * asan/Makefile.am: Likewise. * interception/Makefile.am: Likewise. * sanitizer_common/Makefile.am: Likewise. * tsan/Makefile.am: Likewise. * Makefile.in: Regenerated. * asan/Makefile.in: Likewise. * interception/Makefile.in: Likewise. * sanitizer_common/Makefile.in: Likewise. * tsan/Makefile.in: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194450 138bc75d-0d04-0410-961f-82ee72b054a4
* Use libstdc++-raw-cxx.m4 in libjavahjl2012-12-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | config/ * libstdc++-raw-cxx.m4 (GCC_LIBSTDCXX_RAW_CXX_FLAGS): Also AC_SUBST LIBSTDCXX_RAW_CXX_LDFLAGS. libjava/ * Makefile.am (lib_gnu_awt_xlib_la_CPPFLAGS): Use $(LIBSTDCXX_RAW_CXX_CXXLAGS). (lib_gnu_awt_xlib_la_LDFLAGS): Use $(LIBSTDCXX_RAW_CXX_LDLAGS). * configure.ac (GCC_LIBSTDCXX_RAW_CXX_FLAGS): New. * aclocal.m4: Regenerated. * Makefile.in:Likewise. * configure: Likewise. libsanitizer/ * asan/Makefile.am (libasan_la_LIBADD): Use $(LIBSTDCXX_RAW_CXX_LDLAGS). * tsan/Makefile.am (libtsan_la_LIBADD): Likewise. * Makefile.in: Regenerated. * configure: Likewise. * asan/Makefile.in: Likewise. * interception/Makefile.in: Likewise. * sanitizer_common/Makefile.in: Likewise. * tsan/Makefile.in: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194448 138bc75d-0d04-0410-961f-82ee72b054a4
* Remove AM_MAKEFLAGS/MAKEOVERRIDES from libsanitizerhjl2012-12-122-80/+0
| | | | | | | | | | | | | | | | | * Makefile.am (AM_MAKEFLAGS): Removed. (MAKEOVERRIDES): Likewise. * asan/Makefile.am: Likewise. * interception/Makefile.am: Likewise. * sanitizer_common/Makefile.am: Likewise. * tsan/Makefile.am: Likewise. * Makefile.in: Regenerated. * asan/Makefile.in: Likewise. * interception/Makefile.in: Likewise. * sanitizer_common/Makefile.in: Likewise. * tsan/Makefile.in: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194447 138bc75d-0d04-0410-961f-82ee72b054a4
* Add libstdc++-raw-cxx.m4 and use it in libsanitizerhjl2012-12-112-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | config/ PR sanitizer/55533 * libstdc++-raw-cxx.m4: New file. libsanitizer/ PR sanitizer/55533 * Makefile.am (AM_MAKEFLAGS): Remove CC and CXX. * configure.ac (GCC_LIBSTDCXX_RAW_CXX_FLAGS): New. * asan/Makefile.am (AM_CXXFLAGS): Add $(LIBSTDCXX_RAW_CXX_CXXFLAGS). (AM_MAKEFLAGS): Remove CC and CXX. * interception/Makefile.am: Likewise. * sanitizer_common/Makefile.am: Likewise. * tsan/Makefile.am: Likewise. * Makefile.in: Regenerated. * aclocal.m4: Likewise. * configure: Likewise. * asan/Makefile.in: Likewise. * interception/Makefile.in: Likewise. * sanitizer_common/Makefile.in: Likewise. * tsan/Makefile.in: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194424 138bc75d-0d04-0410-961f-82ee72b054a4
* [libsanitizer] merge from upstream r169371kcc2012-12-0510-61/+138
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194221 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't use -I for libstdc++-v3 header fileshjl2012-11-292-14/+6
| | | | | | | | | | | | | | | | | | | | | * Makefile.am (AM_MAKEFLAGS): Restore CC and CXX. * configure.ac (ACX_NONCANONICAL_TARGET): Removed. * asan/Makefile.am (AM_CXXFLAGS): Remove -I for libstdc++-v3 header files. (AM_MAKEFLAGS): Restore CC and CXX. * interception/Makefile.am: Likewise. * sanitizer_common/Makefile.am: Likewise. * tsan/Makefile.am: Likewise. * Makefile.in: Regenerated. * aclocal.m4: Likewise. * configure: Likewise. * asan/Makefile.in: Likewise. * interception/Makefile.in: Likewise. * sanitizer_common/Makefile.in: Likewise. * tsan/Makefile.in: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193951 138bc75d-0d04-0410-961f-82ee72b054a4
* Use explicit -I for libstdc++-v3 header fileshjl2012-11-292-6/+14
| | | | | | | | | | | | | | | | | | | | | * Makefile.am (AM_MAKEFLAGS): Remove CC and CXX. * configure.ac (ACX_NONCANONICAL_TARGET): New. * asan/Makefile.am (AM_CXXFLAGS): Add -I for libstdc++-v3 header files. (AM_MAKEFLAGS): Remove CC and CXX. * interception/Makefile.am: Likewise. * sanitizer_common/Makefile.am: Likewise. * tsan/Makefile.am: Likewise. * Makefile.in: Regenerated. * aclocal.m4: Likewise. * configure: Likewise. * asan/Makefile.in: Likewise. * interception/Makefile.in: Likewise. * sanitizer_common/Makefile.in: Likewise. * tsan/Makefile.in: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193949 138bc75d-0d04-0410-961f-82ee72b054a4
* [libsanitizer] merge from upstream r168699kcc2012-11-277-32/+50
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193849 138bc75d-0d04-0410-961f-82ee72b054a4
* [libsanitizer] merge from upstream r168514kcc2012-11-2320-100/+245
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193756 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix sanitizer build on sparc64.davem2012-11-201-2/+11
| | | | | | | | | * sanitizer_common/sanitizer_linux.cc (SANITIZER_LINUX_USES_64BIT_SYSCALLS): Define. (internal_mmap): Use it. (internal_filesize): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193676 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.ac: Invoke AM_MAINTAINER_MODE.tromey2012-11-161-3/+4
| | | | | | | * aclocal.m4, configure, Makefile.in, asan/Makefile.in, interception/Makefile.in, sanitizer_common/Makefile.in: Rebuild. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193561 138bc75d-0d04-0410-961f-82ee72b054a4
* Define/use hardware pointer type for stack unwindhjl2012-11-161-7/+7
| | | | | | | | | | | PR other/55333 * include/sanitizer/common_interface_defs.h (uhwptr): New type for hardware pointer. * sanitizer_common/sanitizer_stacktrace.cc (StackTrace::FastUnwindStack): Replace uptr with uhwptr for stack unwind. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193557 138bc75d-0d04-0410-961f-82ee72b054a4
* Properly set MULTISUBDIR and gcc_versionhjl2012-11-152-0/+6
| | | | | | | | | | | | | | * configure.ac: Properly set MULTISUBDIR. * asan/Makefile.am (gcc_version): New. * interception/Makefile.am (gcc_version): Likewise. * sanitizer_common/Makefile.am (gcc_version): Likewise. * configure: Regenerated. * asan/Makefile.in: Likewise. * interception/Makefile.in: Likewise. * sanitizer_common/Makefile.in: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193534 138bc75d-0d04-0410-961f-82ee72b054a4
* Add support for multilib run-time librarieshjl2012-11-151-0/+7
| | | | | | | | | | | | | | | | | | | PR other/55291 * configure.ac (--enable-version-specific-runtime-libs): New option. (AC_CANONICAL_SYSTEM): New. (AM_ENABLE_MULTILIB): Moved right after AM_INIT_AUTOMAKE. (toolexecdir): Support multilib. (toolexeclibdir): Likewise. (multilib_arg): New. * Makefile.in: Regenerated. * aclocal.m4: Likewise. * configure: Likewise. * asan/Makefile.in: Likewise. * interception/Makefile.in: Likewise. * sanitizer_common/Makefile.in: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193516 138bc75d-0d04-0410-961f-82ee72b054a4
* Check __x86_64__ instead of __WORDSIZEhjl2012-11-141-2/+2
| | | | | | | | | | | PR other/55292 Backport from upstream revision 167883 * sanitizer_common/sanitizer_linux.cc (internal_mmap): Check __x86_64__ instead of __WORDSIZE. (internal_filesize): Likwise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193500 138bc75d-0d04-0410-961f-82ee72b054a4
* Update configure.ac for GCC tree and remove unused fileshjl2012-11-141-19/+17
| | | | | | | | | | | | | | | | | | | | | | | | PR other/55304 * acinclude.m4: New file. * Makefile.am (ACLOCAL_AMFLAGS): New. * configure.ac (AC_PREREQ): Set to 2.64. (AC_CONFIG_AUX_DIR): Set to "..". * Makefile.in: Regenerated. * aclocal.m4: Likewise. * configure: Likewise. * asan/Makefile.in: Likewise. * interception/Makefile.in: Likewise. * sanitizer_common/Makefile.in: Likewise. * config.guess: Removed. * config.sub: Likewise. * depcomp: Likewise. * install-sh: Likewise. * ltmain.sh: Likewise. * missing: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193491 138bc75d-0d04-0410-961f-82ee72b054a4
* Import the asan runtime library into GCC treedodji2012-11-1232-0/+5160
This patch imports the runtime library in the GCC tree, ensures that -lasan is passed to the linker when -faddress-sanitizer is used and sets up the build system accordingly. ChangeLog: * configure.ac: Add libsanitizer to target_libraries. * Makefile.def: Ditto. * configure: Regenerate. * Makefile.in: Regenerate. * libsanitizer: New directory for asan runtime. Contains an empty tsan directory. gcc/ChangeLog: * gcc.c (LINK_COMMAND_SPEC): Add -laddress-sanitizer to link command if -faddress-sanitizer is on. libsanitizer: Initial checkin: migrate asan runtime from llvm. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193441 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud