Kostya Serebryany
e297eb600d
[libsanitizer] merge from upstream r168514
...
From-SVN: r193756
2012-11-23 14:46:25 +00:00
Kostya Serebryany
3409d40e47
[libsanitizer] a script to help merging asan/tsan from upstream
...
From-SVN: r193743
2012-11-23 04:09:17 +00:00
Jakub Jelinek
64548f3b79
Makefile.am (AM_CXXFLAGS): Remove -Wno-variadic-macros.
...
* 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-23 01:31:54 +01:00
Wei Mi
cd0be65c26
tsan: New directory.
...
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-22 22:03:11 +00:00
Kostya Serebryany
5cba83a8a7
extend libsanitizer/README.gcc
...
From-SVN: r193698
2012-11-21 15:07:31 +00:00
Konstantin Serebryany
b014e124e4
Fix sanitizer build on sparc64.
...
* sanitizer_common/sanitizer_linux.cc
(SANITIZER_LINUX_USES_64BIT_SYSCALLS): Define.
(internal_mmap): Use it.
(internal_filesize): Likewise.
From-SVN: r193676
2012-11-20 12:54:49 -08:00
Tom Tromey
2b723e217a
configure.ac: Invoke AM_MAINTAINER_MODE.
...
* 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-16 15:19:15 +00:00
H.J. Lu
d1caed1484
Define/use hardware pointer type for stack unwind
...
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-16 04:02:29 -08:00
Dodji Seketeli
f3754998dd
Enable building of libsanitizer on sparc linux
...
libsanitizer/ChangeLog:
* configure.tgt: Enable sparc linux.
From-SVN: r193552
2012-11-16 09:11:03 +01:00
H.J. Lu
f64bcb29f5
Properly set MULTISUBDIR and gcc_version
...
* 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-15 08:00:47 -08:00
H.J. Lu
2a6346c406
Add support for multilib run-time libraries
...
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-14 16:03:37 -08:00
H.J. Lu
4a56a7be3d
Check __x86_64__ instead of __WORDSIZE
...
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-14 05:45:56 -08:00
H.J. Lu
4053ca2c6f
Don't set AC_CONFIG_AUX_DIR
...
* configure.ac (AC_CONFIG_AUX_DIR): Removed.
* Makefile.in: Regenerated.
* configure: Likewise.
From-SVN: r193499
2012-11-14 04:21:28 -08:00
H.J. Lu
9d10e4f5fd
Rename libsanitizer/ChangeLog.asan to libsanitizer/ChangeLog
...
From-SVN: r193498
2012-11-14 03:41:10 -08:00
H.J. Lu
a2479b3dd0
Update configure.ac for GCC tree and remove unused files
...
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-13 16:02:12 -08:00
Richard Henderson
93bf539055
Move libsanitizer configure logic to subdirectory
...
From-SVN: r193487
2012-11-13 14:19:44 -08:00
David S. Miller
d2860e7236
Get sparc building again after ASAN merge.
...
libsanitizer/
* asan/asan_linux.cc (GetPcSpBp): Add sparc support.
From-SVN: r193468
2012-11-12 22:53:23 -08:00
Wei Mi
f35db108b9
Import the asan runtime library into GCC tree
...
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
2012-11-12 16:53:47 +01:00