aboutsummaryrefslogtreecommitdiff
path: root/libsanitizer
AgeCommit message (Collapse)AuthorFilesLines
2013-01-23libsanitizer merge from upstream r173241Kostya Serebryany56-1059/+1559
From-SVN: r195404
2013-01-16Makefile.am (AM_CXXFLAGS): Remove -Wno-c99-extensions.Jakub Jelinek7-9/+16
* sanitizer_common/Makefile.am (AM_CXXFLAGS): Remove -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. From-SVN: r195229
2013-01-10re PR sanitizer/55488 (Implement cold calls in tsan run-time)Wei Mi4-5/+51
2013-01-10 Wei Mi <wmi@google.com> libsanitizer/ PR sanitizer/55488 * tsan/Makefile.am: Add tsan_rtl_amd64.S. * tsan/Makefile.in: Regenerated. * tsan/tsan_rtl.h: Enable HACKY_CALL. From-SVN: r195092
2013-01-10libsanitizer mege from upstream r171973Kostya Serebryany89-864/+4166
From-SVN: r195083
2013-01-07Remove "-I" from LIBSTDCXX_RAW_CXX_LDFLAGSH.J. Lu6-9/+26
config/ * libstdc++-raw-cxx.m4 (GCC_LIBSTDCXX_RAW_CXX_FLAGS): Remove "-I" from LIBSTDCXX_RAW_CXX_LDFLAGS. libjava/ * Makefile.am (lib_gnu_awt_xlib_la_LDFLAGS): Replace LIBSTDCXX_RAW_CXX_LDLAGS with LIBSTDCXX_RAW_CXX_LDFLAGS. * Makefile.in: Regenerated. libsanitizer/ * asan/Makefile.am (libasan_la_LIBADD): Replace LIBSTDCXX_RAW_CXX_LDLAGS with LIBSTDCXX_RAW_CXX_LDFLAGS. * 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. From-SVN: r194989
2012-12-12Restore AM_MAKEFLAGS in libsanitizerH.J. Lu11-0/+397
* 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. From-SVN: r194452
2012-12-12Restore MAKEOVERRIDES in libsanitizerH.J. Lu11-0/+28
* 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. From-SVN: r194450
2012-12-12Use libstdc++-raw-cxx.m4 in libjavaH.J. Lu9-14/+35
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. From-SVN: r194448
2012-12-12Remove AM_MAKEFLAGS/MAKEOVERRIDES from libsanitizerH.J. Lu11-400/+14
* 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. From-SVN: r194447
2012-12-11Add libstdc++-raw-cxx.m4 and use it in libsanitizerH.J. Lu14-34/+101
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. From-SVN: r194424
2012-12-06configure.tgt: Enable build on powerpc*-linux.Peter Bergner2-0/+6
libsanitizer/ * configure.tgt: Enable build on powerpc*-linux. gcc/ * config/rs6000/sysv4.h (TARGET_ASAN_SHADOW_OFFSET): Define. * config/rs6000/rs6000.c (rs6000_asan_shadow_offset): New function. * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Disable if using ASAN. From-SVN: r194273
2012-12-06Fix PR55599/sanitizer by disabling static libasan on darwinJack Howarth3-2/+8
From-SVN: r194257
2012-12-06[libsanitizer] merge from upstream r169392Kostya Serebryany7-19/+36
From-SVN: r194255
2012-12-05[libsanitizer] merge from upstream r169371Kostya Serebryany44-344/+863
From-SVN: r194221
2012-12-04Fix up two ChangeLog entries.Jakub Jelinek1-2/+2
From-SVN: r194132
2012-12-04[libsanitizer] Fix PR55521 by switching libsanitizer from mach_override to ↵Kostya Serebryany16-1192/+206
mac interpose functions on darwin From-SVN: r194120
2012-11-29Don't use -I for libstdc++-v3 header filesH.J. Lu14-80/+49
* 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. From-SVN: r193951
2012-11-29Use explicit -I for libstdc++-v3 header filesH.J. Lu14-31/+98
* 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. From-SVN: r193949
2012-11-27[libsanitizer] merge from upstream r168699Kostya Serebryany26-158/+415
From-SVN: r193849
2012-11-24[libsanitizer] add mach_override and enable libsanitizer on darwinJack Howarth9-7/+1210
From-SVN: r193781
2012-11-23Set gcc_version in tsan/Makefile.amH.J. Lu3-5/+16
PR sanitizer/55450 * tsan/Makefile.am (gcc_version): New. * tsan/Makefile.in: Regenerated. From-SVN: r193767
2012-11-23[libsanitizer] merge from upstream r168514Kostya Serebryany70-548/+927
From-SVN: r193756
2012-11-23[libsanitizer] a script to help merging asan/tsan from upstreamKostya Serebryany3-0/+86
From-SVN: r193743
2012-11-23Makefile.am (AM_CXXFLAGS): Remove -Wno-variadic-macros.Jakub Jelinek8-22/+263
* tsan/Makefile.am (AM_CXXFLAGS): Remove -Wno-variadic-macros. * Makefile.am (SUBDIRS): Guard tsan addition with TSAN_SUPPORTED automake conditional instead of !MULTISUBDIR32. * configure.tgt: Set TSAN_SUPPORTED=yes for x86_64/i686-linux for 64-bit multilib. * configure.ac: Check for void * size, source in configure.tgt, define TSAN_SUPPORTED conditional instead of MULTILIBDIR32. * configure: Regenerated. * Makefile.in: Regenerated. * tsan/Makefile.in: Regenerated. From-SVN: r193741
2012-11-22tsan: New directory.Wei Mi51-4/+9661
libsanitizer/ * tsan: New directory. Import tsan runtime from llvm. * configure.ac: Add 64 bits tsan build. * Makefile.am: Likewise. * configure: Regenerated. * Makefile.in: Likewise. From-SVN: r193737
2012-11-21extend libsanitizer/README.gccKostya Serebryany2-4/+19
From-SVN: r193698
2012-11-20Fix sanitizer build on sparc64.Konstantin Serebryany2-2/+18
* sanitizer_common/sanitizer_linux.cc (SANITIZER_LINUX_USES_64BIT_SYSCALLS): Define. (internal_mmap): Use it. (internal_filesize): Likewise. From-SVN: r193676
2012-11-16configure.ac: Invoke AM_MAINTAINER_MODE.Tom Tromey8-14/+98
* configure.ac: Invoke AM_MAINTAINER_MODE. * aclocal.m4, configure, Makefile.in, asan/Makefile.in, interception/Makefile.in, sanitizer_common/Makefile.in: Rebuild. From-SVN: r193561
2012-11-16Define/use hardware pointer type for stack unwindH.J. Lu3-7/+22
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. From-SVN: r193557
2012-11-16Enable building of libsanitizer on sparc linuxDodji Seketeli2-1/+5
libsanitizer/ChangeLog: * configure.tgt: Enable sparc linux. From-SVN: r193552
2012-11-15Properly set MULTISUBDIR and gcc_versionH.J. Lu9-2/+43
* 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. From-SVN: r193534
2012-11-14Add support for multilib run-time librariesH.J. Lu8-118/+395
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. From-SVN: r193516
2012-11-14Check __x86_64__ instead of __WORDSIZEH.J. Lu2-2/+10
PR other/55292 Backport from upstream revision 167883 * sanitizer_common/sanitizer_linux.cc (internal_mmap): Check __x86_64__ instead of __WORDSIZE. (internal_filesize): Likwise. From-SVN: r193500
2012-11-14Don't set AC_CONFIG_AUX_DIRH.J. Lu4-10/+11
* configure.ac (AC_CONFIG_AUX_DIR): Removed. * Makefile.in: Regenerated. * configure: Likewise. From-SVN: r193499
2012-11-14Rename libsanitizer/ChangeLog.asan to libsanitizer/ChangeLogH.J. Lu1-0/+0
From-SVN: r193498
2012-11-13Update configure.ac for GCC tree and remove unused filesH.J. Lu16-25161/+1034
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. From-SVN: r193491
2012-11-13Move libsanitizer configure logic to subdirectoryRichard Henderson2-0/+32
From-SVN: r193487
2012-11-12Get sparc building again after ASAN merge.David S. Miller2-0/+18
libsanitizer/ * asan/asan_linux.cc (GetPcSpBp): Add sparc support. From-SVN: r193468
2012-11-12Import the asan runtime library into GCC treeWei Mi92-0/+56396
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. From-SVN: r193441