Add pretty printer for ASAN_MARK and add a helper fn
authorMartin Liska <mliska@suse.cz>
Tue, 13 Dec 2016 09:14:47 +0000 (10:14 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 13 Dec 2016 09:14:47 +0000 (09:14 +0000)
commit56b7aede9188eeda696eff95effb2288289ddc52
tree66f2e4c8f7d1959d8514c378e37c394920cb9300
parentcd6d518b2978157020752ae1b5627e7619923930
Add pretty printer for ASAN_MARK and add a helper fn

* asan.c (asan_mark_poison_p): Remove.
(asan_mark_p): New function.
(transform_statements): Use the function.
(asan_expand_mark_ifn): Do not use masked enum.
* asan.h (enum asan_mark_flags): Declare it via a macro.
* gimple-pretty-print.c (dump_gimple_call_args): Dump first
argument of ASAN_MARK.
* gimplify.c (build_asan_poison_call_expr): Use new enum values.
(asan_poison_variable): Likewise.
* gcc.dg/asan/use-after-scope-goto-1.c: Update first argument of
scanned pattern ASAN_MARK.
* gcc.dg/asan/use-after-scope-goto-2.c: Likewise.
* gcc.dg/asan/use-after-scope-switch-1.c: Likewise.
* gcc.dg/asan/use-after-scope-switch-2.c: Likewise.
* gcc.dg/asan/use-after-scope-switch-3.c: Likewise.

From-SVN: r243597
12 files changed:
gcc/ChangeLog
gcc/asan.c
gcc/asan.h
gcc/gimple-pretty-print.c
gcc/gimple.c
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/asan/use-after-scope-goto-1.c
gcc/testsuite/gcc.dg/asan/use-after-scope-goto-2.c
gcc/testsuite/gcc.dg/asan/use-after-scope-switch-1.c
gcc/testsuite/gcc.dg/asan/use-after-scope-switch-2.c
gcc/testsuite/gcc.dg/asan/use-after-scope-switch-3.c