use-after-scope fallout
authorMartin Liska <mliska@suse.cz>
Tue, 8 Nov 2016 12:28:33 +0000 (13:28 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 8 Nov 2016 12:28:33 +0000 (12:28 +0000)
commitfcd1b8dffcaa5806e62d0203b13ad1696fec254f
tree60e233b74357c8dd648d02460fdf3495684deb06
parentf9ef2c765ad3fce93ddacdabede6b67efdc13c0d
use-after-scope fallout

PR testsuite/78242
* g++.dg/asan/use-after-scope-4.C: New test.
* g++.dg/asan/use-after-scope-types-4.C: Update scanned pattern.
* gcc.dg/asan/use-after-scope-8.c: Remove.
PR testsuite/78242
* dbgcnt.def: Add new debug counter asan_use_after_scope.
* gimplify.c (gimplify_decl_expr): Do not sanitize vars
with a value expr.  Do not add artificial variables to
live_switch_vars.  Use the debug counter.
(gimplify_target_expr): Use the debug counter.
* internal-fn.def: Remove ECF_TM_PURE from ASAN_MARK builtin.
* sanitizer.def: Set ATTR_NOTHROW_LEAF_LIST to
BUILT_IN_ASAN_CLOBBER_N and BUILT_IN_ASAN_UNCLOBBER_N.

From-SVN: r241961
gcc/ChangeLog
gcc/dbgcnt.def
gcc/gimplify.c
gcc/internal-fn.def
gcc/sanitizer.def
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/asan/use-after-scope-4.C [new file with mode: 0644]
gcc/testsuite/g++.dg/asan/use-after-scope-types-4.C
gcc/testsuite/gcc.dg/asan/use-after-scope-8.c [deleted file]