]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR sanitizer/79944
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Mar 2017 09:20:23 +0000 (09:20 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Mar 2017 09:20:23 +0000 (09:20 +0000)
commit6e48ee8f1e3eaf0d9baa2f3e018876cc47f71b3a
treec218b4135429d12cdd923142e06b51e3a85032ab
parent3fe01219b1cf2f237a82a98fc6e8920f37fd1896
PR sanitizer/79944
* asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
BUILT_IN_SYNC*, determine the access type from the size suffix and
always build a MEM_REF with that type.  Handle forgotten
BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.

* c-c++-common/asan/pr79944.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245991 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/asan.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/asan/pr79944.c [new file with mode: 0644]