summaryrefslogtreecommitdiffstats
path: root/libsanitizer
Commit message (Collapse)AuthorAgeFilesLines
...
* libsanitizer mege from upstream r171973kcc2013-01-1089-864/+4166
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195083 138bc75d-0d04-0410-961f-82ee72b054a4
* Remove "-I" from LIBSTDCXX_RAW_CXX_LDFLAGShjl2013-01-076-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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194989 138bc75d-0d04-0410-961f-82ee72b054a4
* Restore AM_MAKEFLAGS in libsanitizerhjl2012-12-1211-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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194452 138bc75d-0d04-0410-961f-82ee72b054a4
* Restore MAKEOVERRIDES in libsanitizerhjl2012-12-1211-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. 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-129-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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194448 138bc75d-0d04-0410-961f-82ee72b054a4
* Remove AM_MAKEFLAGS/MAKEOVERRIDES from libsanitizerhjl2012-12-1211-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. 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-1114-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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194424 138bc75d-0d04-0410-961f-82ee72b054a4
* libsanitizer/bergner2012-12-062-0/+6
| | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194273 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix PR55599/sanitizer by disabling static libasan on darwinkcc2012-12-063-2/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194257 138bc75d-0d04-0410-961f-82ee72b054a4
* [libsanitizer] merge from upstream r169392kcc2012-12-067-19/+36
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194255 138bc75d-0d04-0410-961f-82ee72b054a4
* [libsanitizer] merge from upstream r169371kcc2012-12-0544-344/+863
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194221 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix up two ChangeLog entries.jakub2012-12-041-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194132 138bc75d-0d04-0410-961f-82ee72b054a4
* [libsanitizer] Fix PR55521 by switching libsanitizer from mach_override to ↵kcc2012-12-0416-1192/+206
| | | | | | mac interpose functions on darwin git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194120 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't use -I for libstdc++-v3 header fileshjl2012-11-2914-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. 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-2914-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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193949 138bc75d-0d04-0410-961f-82ee72b054a4
* [libsanitizer] merge from upstream r168699kcc2012-11-2726-158/+415
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193849 138bc75d-0d04-0410-961f-82ee72b054a4
* [libsanitizer] add mach_override and enable libsanitizer on darwinkcc2012-11-249-7/+1210
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193781 138bc75d-0d04-0410-961f-82ee72b054a4
* Set gcc_version in tsan/Makefile.amhjl2012-11-233-5/+16
| | | | | | | | | PR sanitizer/55450 * tsan/Makefile.am (gcc_version): New. * tsan/Makefile.in: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193767 138bc75d-0d04-0410-961f-82ee72b054a4
* [libsanitizer] merge from upstream r168514kcc2012-11-2370-548/+927
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193756 138bc75d-0d04-0410-961f-82ee72b054a4
* [libsanitizer] a script to help merging asan/tsan from upstreamkcc2012-11-233-0/+86
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193743 138bc75d-0d04-0410-961f-82ee72b054a4
* * tsan/Makefile.am (AM_CXXFLAGS): Remove -Wno-variadic-macros.jakub2012-11-238-22/+263
| | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193741 138bc75d-0d04-0410-961f-82ee72b054a4
* libsanitizer/wmi2012-11-2251-4/+9661
| | | | | | | | | | | * tsan: New directory. Import tsan runtime from llvm. * configure.ac: Add 64 bits tsan build. * Makefile.am: Likewise. * configure: Regenerated. * Makefile.in: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193737 138bc75d-0d04-0410-961f-82ee72b054a4
* extend libsanitizer/README.gcckcc2012-11-212-4/+19
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193698 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix sanitizer build on sparc64.davem2012-11-202-2/+18
| | | | | | | | | * 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-168-14/+98
| | | | | | | * 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-163-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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193557 138bc75d-0d04-0410-961f-82ee72b054a4
* Enable building of libsanitizer on sparc linuxdodji2012-11-162-1/+5
| | | | | | | | libsanitizer/ChangeLog: * configure.tgt: Enable sparc linux. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193552 138bc75d-0d04-0410-961f-82ee72b054a4
* Properly set MULTISUBDIR and gcc_versionhjl2012-11-159-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. 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-158-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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193516 138bc75d-0d04-0410-961f-82ee72b054a4
* Check __x86_64__ instead of __WORDSIZEhjl2012-11-142-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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193500 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't set AC_CONFIG_AUX_DIRhjl2012-11-144-10/+11
| | | | | | | | | * configure.ac (AC_CONFIG_AUX_DIR): Removed. * Makefile.in: Regenerated. * configure: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193499 138bc75d-0d04-0410-961f-82ee72b054a4
* Rename libsanitizer/ChangeLog.asan to libsanitizer/ChangeLoghjl2012-11-141-0/+0
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193498 138bc75d-0d04-0410-961f-82ee72b054a4
* Update configure.ac for GCC tree and remove unused fileshjl2012-11-1416-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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193491 138bc75d-0d04-0410-961f-82ee72b054a4
* Move libsanitizer configure logic to subdirectoryrth2012-11-132-0/+32
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193487 138bc75d-0d04-0410-961f-82ee72b054a4
* Get sparc building again after ASAN merge.davem2012-11-132-0/+18
| | | | | | | | libsanitizer/ * asan/asan_linux.cc (GetPcSpBp): Add sparc support. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193468 138bc75d-0d04-0410-961f-82ee72b054a4
* Import the asan runtime library into GCC treedodji2012-11-1292-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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193441 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud