http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59061

--- Comment #28 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Nov 22 21:13:08 2013
New Revision: 205290

URL: http://gcc.gnu.org/viewcvs?rev=205290&root=gcc&view=rev
Log:
    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.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/common.opt
    trunk/gcc/config/gnu-user.h
    trunk/gcc/doc/invoke.texi
    trunk/gcc/flag-types.h
    trunk/gcc/gcc.c
    trunk/gcc/opts.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/c-c++-common/asan/no-redundant-instrumentation-7.c
    trunk/libsanitizer/ChangeLog
    trunk/libsanitizer/configure
    trunk/libsanitizer/configure.ac
    trunk/libsanitizer/configure.tgt
    trunk/libsanitizer/lsan/Makefile.am
    trunk/libsanitizer/lsan/Makefile.in

Reply via email to