]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/111736 - avoid address sanitizing of __seg_gs
authorRichard Biener <rguenther@suse.de>
Thu, 21 Mar 2024 07:30:39 +0000 (08:30 +0100)
committerRichard Biener <rguenther@suse.de>
Thu, 21 Mar 2024 11:48:58 +0000 (12:48 +0100)
commit6d5eb47849bcf9aecefacf7d7e4767750b1ec83b
treebaa459dd2f286a9d706a2ff60a92e25aa766706c
parent199b021a38f30b681e0dbecd2d0296beabd50b13
tree-optimization/111736 - avoid address sanitizing of __seg_gs

The following more thoroughly avoids address sanitizing accesses
to non-generic address-spaces.

PR tree-optimization/111736
* asan.cc (instrument_derefs): Do not instrument accesses
to non-generic address-spaces.

* gcc.target/i386/pr111736.c: New testcase.

(cherry picked from commit 134ef2a8cac1a5cc718739bd7d3b3472947c80d6)
gcc/asan.cc
gcc/testsuite/gcc.target/i386/pr111736.c [new file with mode: 0644]