use-after-scope fallout
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Nov 2016 12:28:33 +0000 (12:28 +0000)
committerSlava Barinov <v.barinov@samsung.com>
Thu, 24 Oct 2019 10:41:27 +0000 (13:41 +0300)
commit8005b7209a6a3e4c70731cb13126e416db2810d5
treeeaaf28e6c9374ff11bd9f4a81e56697007130417
parent71ab4536bcc224d97abc040333e2d6c1d28f0673
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.

upstream hash: d71fcb4d6c78c38912a87df7e0aa09407b691f79
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@241961 138bc75d-0d04-0410-961f-82ee72b054a4

Change-Id: I9e5609ee7f9015cfd0951ad8aedd1437d90dca9d
gcc/gimplify.c
gcc/internal-fn.def
gcc/sanitizer.def
gcc/testsuite/g++.dg/asan/use-after-scope-types-4.C
gcc/testsuite/gcc.dg/asan/use-after-scope-8.c [deleted file]