gcc/libsanitizer
Jakub Jelinek 9065ada9b5 re PR sanitizer/59061 (Port leaksanitizer)
PR sanitizer/59061
	* common.opt (static-liblsan): Add.
	* config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
	Define.
	* flag-types.h (enum sanitize_code): Add SANITIZE_LEAK.  Renumber
	SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
	SANITIZE_RETURN.
	* opts.c (common_handle_option): Handle -fsanitize=leak.
	* gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
	(LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
	(LIBUBSAN_EARLY_SPEC): Remove.
	(SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
	(SANITIZER_SPEC): Add -fsanitize=leak handling.
	(sanitize_spec_function): Handle %sanitize(leak).
	* doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.

	* c-c++-common/asan/no-redundant-instrumentation-7.c: Fix
	cleanup-tree-dump directive.

	* configure.tgt: Set LSAN_SUPPORTED=yes for x86_64-linux.
	* configure.ac (LSAN_SUPPORTED): New AM_CONDITIONAL.
	* configure: Regenerated.
	* lsan/Makefile.am (toolexeclib_LTLIBRARIES, lsan_files,
	liblsan_la_SOURCES, liblsan_la_LIBADD, liblsan_la_LDFLAGS): Add.
	* lsan/Makefile.in: Regenerated.

From-SVN: r205290
2013-11-22 22:13:08 +01:00
..
asan re PR sanitizer/59106 (Failure to link against static libasan) 2013-11-18 08:03:16 +00:00
include/sanitizer libsanitizer merge from upstream r191666 2013-11-04 21:33:31 +00:00
interception re PR sanitizer/59106 (Failure to link against static libasan) 2013-11-18 08:03:16 +00:00
lsan re PR sanitizer/59061 (Port leaksanitizer) 2013-11-22 22:13:08 +01:00
sanitizer_common sanitizer_linux.cc (__sanitizer): Grab one change from upstream to fix build. 2013-11-22 20:33:06 +00:00
tsan re PR sanitizer/59106 (Failure to link against static libasan) 2013-11-18 08:03:16 +00:00
ubsan libsanitizer merge from upstream r191666 2013-11-04 21:33:31 +00:00
acinclude.m4
aclocal.m4
ChangeLog re PR sanitizer/59061 (Port leaksanitizer) 2013-11-22 22:13:08 +01:00
configure re PR sanitizer/59061 (Port leaksanitizer) 2013-11-22 22:13:08 +01:00
configure.ac re PR sanitizer/59061 (Port leaksanitizer) 2013-11-22 22:13:08 +01:00
configure.tgt re PR sanitizer/59061 (Port leaksanitizer) 2013-11-22 22:13:08 +01:00
libtool-version
LICENSE.TXT
Makefile.am libsanitizer merge from upstream r191666 2013-11-04 21:33:31 +00:00
Makefile.in libsanitizer merge from upstream r191666 2013-11-04 21:33:31 +00:00
MERGE libsanitizer merge from upstream r191666 2013-11-04 21:33:31 +00:00
merge.sh libsanitizer merge from upstream r191666 2013-11-04 21:33:31 +00:00
README.gcc

AddressSanitizer (http://code.google.com/p/address-sanitizer) and
ThreadSanitizer (http://code.google.com/p/thread-sanitizer/) are
projects initially developed by Google Inc.
Both tools consist of a compiler module and a run-time library.
The sources of the run-time library for these projects are hosted at
http://llvm.org/svn/llvm-project/compiler-rt in the following directories:
  include/sanitizer
  lib/sanitizer_common
  lib/interception
  lib/asan
  lib/tsan

Trivial and urgent fixes (portability, build fixes, etc.) may go directly to the
GCC tree.  All non-trivial changes, functionality improvements, etc. should go
through the upstream tree first and then be merged back to the GCC tree.
The merges from upstream should be done with the aid of the merge.sh script;
it will also update the file MERGE to contain the upstream revision
we merged with.