gcc/libsanitizer
Stefan Schulze Frielinghaus 0bb38b2786 Replace uptr by usize/SIZE_T in interfaces
For some targets uptr is mapped to unsigned int and size_t to unsigned
long and sizeof(int)==sizeof(long) holds.  Still, these are distinct
types and type checking may fail.  Therefore, replace uptr by
usize/SIZE_T wherever a size_t is expected.

Part of #116957

Cherry picked from LLVM commit 9a156f6b2b0c892d8713ba907f07f027b24953d8
(removed memprof, msan, and nsan parts).

libsanitizer/ChangeLog:

	PR sanitizer/117725
	* asan/asan_interceptors.cpp: Cherry picked LLVM commit
	9a156f6b2b0c892d8713ba907f07f027b24953d8.
	* asan/asan_interceptors.h: Ditto.
	* asan/asan_interceptors_memintrinsics.h: Ditto.
	* sanitizer_common/sanitizer_common_interceptors.inc: Ditto.
	* sanitizer_common/sanitizer_common_interceptors_memintrinsics.inc:
	Ditto.
	* sanitizer_common/sanitizer_platform_limits_posix.h: Ditto.
	* tsan/tsan_interceptors_posix.cpp: Ditto.
2025-01-06 19:17:09 +01:00
..
asan Replace uptr by usize/SIZE_T in interfaces 2025-01-06 19:17:09 +01:00
builtins libsanitizer: merge from upstream (61a6439f35b6de28) 2024-11-12 21:56:06 +08:00
hwasan libsanitizer: Remove -pedantic from AM_CXXFLAGS [PR117732] 2024-11-25 09:36:41 +01:00
include libsanitizer: merge from upstream (61a6439f35b6de28) 2024-11-12 21:56:06 +08:00
interception libsanitizer: Remove -pedantic from AM_CXXFLAGS [PR117732] 2024-11-25 09:36:41 +01:00
libbacktrace libsanitizer: Remove -pedantic from AM_CXXFLAGS [PR117732] 2024-11-25 09:36:41 +01:00
lsan libsanitizer: Remove -pedantic from AM_CXXFLAGS [PR117732] 2024-11-25 09:36:41 +01:00
sanitizer_common Replace uptr by usize/SIZE_T in interfaces 2025-01-06 19:17:09 +01:00
tsan Replace uptr by usize/SIZE_T in interfaces 2025-01-06 19:17:09 +01:00
ubsan libsanitizer: Remove -pedantic from AM_CXXFLAGS [PR117732] 2024-11-25 09:36:41 +01:00
ChangeLog Daily bump. 2024-11-26 00:19:26 +00:00
HOWTO_MERGE Remove references to SVN in libsanitizer. 2020-05-29 11:50:54 +02:00
LICENSE.TXT
LOCAL_PATCHES libsanitizer: Update LOCAL_PATCHES 2024-11-12 21:59:49 +08:00
MERGE libsanitizer: merge from upstream (61a6439f35b6de28) 2024-11-12 21:56:06 +08:00
Makefile.am Fix PR 62157: disclean in libsanitizer not working 2021-11-28 22:40:36 +00:00
Makefile.in libsanitizer: Check assembler support for symbol assignment [PR112563] 2023-11-28 14:54:34 +01:00
README.gcc libsanitizer: add hwasan. 2020-11-25 16:35:30 +00:00
acinclude.m4
aclocal.m4 make `-Werror` optional in libatomic/libbacktrace/libgomp/libitm/libsanitizer 2022-02-03 16:10:18 +01:00
config.h.in
configure libsanitizer: Check assembler support for symbol assignment [PR112563] 2023-11-28 14:54:34 +01:00
configure.ac libsanitizer: Check assembler support for symbol assignment [PR112563] 2023-11-28 14:54:34 +01:00
configure.tgt LoongArch: libsanitizer: Enable Lsan and Tsan for loongarch64. 2024-02-06 09:38:13 +08:00
libsanitizer.spec.in libsanitizer: Tie the hwasan library into our build system 2020-11-25 16:35:33 +00:00
merge.sh libsanitizer: use git clone --depth 1 2022-11-15 14:18:27 +01:00

README.gcc

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.