diff options
author | Martin Liska <mliska@suse.cz> | 2016-12-13 10:14:47 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2016-12-13 09:14:47 +0000 |
commit | 56b7aede9188eeda696eff95effb2288289ddc52 (patch) | |
tree | 66f2e4c8f7d1959d8514c378e37c394920cb9300 /gcc/gimple-pretty-print.c | |
parent | cd6d518b2978157020752ae1b5627e7619923930 (diff) | |
download | gcc-56b7aede9188eeda696eff95effb2288289ddc52.zip gcc-56b7aede9188eeda696eff95effb2288289ddc52.tar.gz gcc-56b7aede9188eeda696eff95effb2288289ddc52.tar.bz2 |
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
Diffstat (limited to 'gcc/gimple-pretty-print.c')
-rw-r--r-- | gcc/gimple-pretty-print.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/gimple-pretty-print.c b/gcc/gimple-pretty-print.c index b5e866d..1bd4cde 100644 --- a/gcc/gimple-pretty-print.c +++ b/gcc/gimple-pretty-print.c @@ -37,6 +37,7 @@ along with GCC; see the file COPYING3. If not see #include "value-prof.h" #include "trans-mem.h" #include "cfganal.h" +#include "asan.h" #define INDENT(SPACE) \ do { int i; for (i = 0; i < SPACE; i++) pp_space (buffer); } while (0) @@ -644,6 +645,14 @@ dump_gimple_call_args (pretty_printer *buffer, gcall *gs, int flags) limit = ARRAY_SIZE (reduction_args); break; + case IFN_ASAN_MARK: +#define DEF(X) #X + static const char *const asan_mark_args[] = {IFN_ASAN_MARK_FLAGS}; +#undef DEF + enums = asan_mark_args; + limit = ARRAY_SIZE (asan_mark_args); + break; + default: break; } |