]> git.ipfire.org Git - thirdparty/gcc.git/commit
tsan: Don't instrument non-generic AS accesses [PR111736]
authorJakub Jelinek <jakub@redhat.com>
Tue, 26 Mar 2024 10:06:15 +0000 (11:06 +0100)
committerUros Bizjak <ubizjak@gmail.com>
Tue, 23 Apr 2024 14:28:23 +0000 (16:28 +0200)
commit48fd1c5791b47717dcd4fa5615bc07cf54e964a7
tree53df930916682f939ffc82441ed0529a45c63070
parentd6c62e4fb9a6d395599b7c78c831bace4bc7ff8f
tsan: Don't instrument non-generic AS accesses [PR111736]

Similar to the asan and ubsan changes, we shouldn't instrument non-generic
address space accesses with tsan, because we just have library functions
which take address of the objects as generic address space pointers, so they
can't handle anything else.

2024-03-26  Jakub Jelinek  <jakub@redhat.com>

PR sanitizer/111736
* tsan.cc (instrument_expr): Punt on non-generic address space
accesses.

* gcc.dg/tsan/pr111736.c: New test.

(cherry picked from commit 471967ab8b4c49338ba77defbe24b06cc51c0093)
gcc/testsuite/gcc.dg/tsan/pr111736.c [new file with mode: 0644]
gcc/tsan.cc