asan.c (instrument_mem_region_access): Don't instrument if base doesn't have pointer...
authorJakub Jelinek <jakub@redhat.com>
Mon, 3 Dec 2012 15:04:57 +0000 (16:04 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 3 Dec 2012 15:04:57 +0000 (16:04 +0100)
commitc63d3b963cf2f52adbf5130872782af02719a316
tree8a42bbe27712bd9a94f99cf3b8105a1ad7328649
parentf15b972787dde99826750d935a2f2635608b1ce8
asan.c (instrument_mem_region_access): Don't instrument if base doesn't have pointer type or len integral type.

* asan.c (instrument_mem_region_access): Don't instrument
if base doesn't have pointer type or len integral type.
Add cast if len doesn't have size_t compatible type.
(instrument_builtin_call): Don't instrument BUILT_IN_ATOMIC_LOAD,
BUILT_IN_ATOMIC_TEST_AND_SET, BUILT_IN_ATOMIC_CLEAR,
BUILT_IN_ATOMIC_EXCHANGE, BUILT_IN_ATOMIC_COMPARE_EXCHANGE
and BUILT_IN_ATOMIC_STORE.

From-SVN: r194094
gcc/ChangeLog
gcc/asan.c