diff options
author | marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-12-13 09:14:47 +0000 |
---|---|---|
committer | marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-12-13 09:14:47 +0000 |
commit | a30589d5dfe4c22ad7753a983046d71450cf6d6b (patch) | |
tree | 66f2e4c8f7d1959d8514c378e37c394920cb9300 /gcc/gimple.c | |
parent | 98b8f2a556ab071045fe370f19049d341af41bc8 (diff) | |
download | gcc-a30589d5dfe4c22ad7753a983046d71450cf6d6b.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@243597 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple.c')
-rw-r--r-- | gcc/gimple.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimple.c b/gcc/gimple.c index 0a3dc72ea21..23e59c2f123 100644 --- a/gcc/gimple.c +++ b/gcc/gimple.c @@ -2631,7 +2631,7 @@ nonfreeing_call_p (gimple *call) case IFN_ABNORMAL_DISPATCHER: return true; case IFN_ASAN_MARK: - return tree_to_uhwi (gimple_call_arg (call, 0)) == ASAN_MARK_UNCLOBBER; + return tree_to_uhwi (gimple_call_arg (call, 0)) == ASAN_MARK_UNPOISON; default: if (gimple_call_flags (call) & ECF_LEAF) return true; |