gcc/libsanitizer
H.J. Lu 984400f04e libsanitizer: Bump asan/tsan versions
Bump asan/tsan versions for upstream commits:

commit f1bb30a4956f83e46406d6082e5d376ce65391e0
Author: Vitaly Buka <vitalybuka@google.com>
Date:   Thu Aug 26 10:25:09 2021 -0700

    [sanitizer] No THREADLOCAL in qsort and bsearch

    qsort can reuse qsort_r if available.
    bsearch always passes key as the first comparator argument, so we
    can use it to wrap the original comparator.

    Differential Revision: https://reviews.llvm.org/D108751

commit d77b476c1953bcb0a608b2d6a4f2dd9fe0b43967
Author: Dmitry Vyukov <dvyukov@google.com>
Date:   Mon Aug 2 16:52:53 2021 +0200

    tsan: avoid extra call indirection in unaligned access functions

    Currently unaligned access functions are defined in tsan_interface.cpp
    and do a real call to MemoryAccess. This means we have a real call
    and no read/write constant propagation.

    Unaligned memory access can be quite hot for some programs
    (observed on some compression algorithms with ~90% of unaligned accesses).

    Move them to tsan_interface_inl.h to avoid the additional call
    and enable constant propagation.
    Also reorder the actual store and memory access handling for
    __sanitizer_unaligned_store callbacks to enable tail calling
    in MemoryAccess.

    Depends on D107282.

    Reviewed By: vitalybuka, melver

commit 97795be22f634667ce7a022398c59ccc9f7440eb
Author: Dmitry Vyukov <dvyukov@google.com>
Date:   Fri Jul 30 08:35:11 2021 +0200

    tsan: optimize test-only barrier

    The updated lots_of_threads.c test with 300 threads
    started running for too long on machines with low
    hardware parallelism (e.g. taskset -c 0-1).
    On lots of CPUs it finishes in ~2 secs. But with
    taskset -c 0-1 it runs for hundreds of seconds
    effectively spinning in the barrier in the sleep loop.

    We now have the handy futex API in sanitizer_common.
    Use it instead of the passive spin loop.
    It makes the test run only faster with taskset -c 0-1,
    it runs for ~1.5 secs, while with full parallelism
    it still runs for ~2 secs (but consumes less CPU time).

    Depends on D107131.

    Reviewed By: vitalybuka
2021-10-01 09:02:54 -07:00
..
asan libsanitizer: Bump asan/tsan versions 2021-10-01 09:02:54 -07:00
builtins libsanitizer: merge from master 2021-05-13 09:29:17 +02:00
hwasan libsanitizer: Merge with upstream 2021-10-01 09:02:54 -07:00
include libsanitizer: Merge with upstream 2021-10-01 09:02:54 -07:00
interception libsanitizer: Merge with upstream 2021-10-01 09:02:54 -07:00
libbacktrace libsanitizer: Tie the hwasan library into our build system 2020-11-25 16:35:33 +00:00
lsan libsanitizer: Merge with upstream 2021-10-01 09:02:54 -07:00
sanitizer_common libsanitizer: Apply local patches 2021-10-01 09:02:54 -07:00
tsan libsanitizer: Bump asan/tsan versions 2021-10-01 09:02:54 -07:00
ubsan libsanitizer: Apply local patches 2021-10-01 09:02:54 -07:00
acinclude.m4 Enable building libsanitizer with Intel CET 2017-11-17 22:34:50 +01:00
aclocal.m4 Add `--with-toolexeclibdir=' configuration option 2020-01-24 11:24:25 +00:00
ChangeLog Daily bump. 2021-08-12 00:16:28 +00:00
config.h.in Update build system: include new files and run autoheader, autoconf, automake 2018-10-31 11:15:57 +00:00
configure Update GNU/Hurd configure support 2021-01-05 16:04:14 -07:00
configure.ac libsanitizer: Only build libhwasan when targeting AArch64 2020-11-25 16:35:35 +00:00
configure.tgt Fix bashism in `libsanitizer/configure.tgt' 2021-08-03 13:24:47 +02:00
HOWTO_MERGE Remove references to SVN in libsanitizer. 2020-05-29 11:50:54 +02:00
libsanitizer.spec.in libsanitizer: Tie the hwasan library into our build system 2020-11-25 16:35:33 +00:00
LICENSE.TXT
LOCAL_PATCHES libsanitizer: Update LOCAL_PATCHES 2021-07-20 14:21:52 -07:00
Makefile.am libsanitizer: Only build libhwasan when targeting AArch64 2020-11-25 16:35:35 +00:00
Makefile.in libsanitizer: Only build libhwasan when targeting AArch64 2020-11-25 16:35:35 +00:00
MERGE libsanitizer: Merge with upstream 2021-10-01 09:02:54 -07:00
merge.sh libsanitizer: add hwasan. 2020-11-25 16:35:30 +00:00
README.gcc libsanitizer: add hwasan. 2020-11-25 16:35:30 +00:00

AddressSanitizer and ThreadSanitizer (https://github.com/google/sanitizers) 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
https://github.com/llvm/llvm-project in the following directories:
  compiler-rt/include/sanitizer
  compiler-rt/lib/sanitizer_common
  compiler-rt/lib/interception
  compiler-rt/lib/asan
  compiler-rt/lib/tsan
  compiler-rt/lib/lsan
  compiler-rt/lib/ubsan
  compiler-rt/lib/hwasan

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.