aboutsummaryrefslogtreecommitdiff
path: root/gcc/asan.h
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2018-09-24 13:22:38 +0200
committerMartin Liska <marxin@gcc.gnu.org>2018-09-24 11:22:38 +0000
commitbf9f9292131058faa03177b7a0d6f1c265eb29f2 (patch)
tree91afbb9244655cef727a35df6ce34bfce80453b6 /gcc/asan.h
parent54b7d98ec40895719d5d62be02e5f03d08aac543 (diff)
downloadgcc-bf9f9292131058faa03177b7a0d6f1c265eb29f2.zip
gcc-bf9f9292131058faa03177b7a0d6f1c265eb29f2.tar.gz
gcc-bf9f9292131058faa03177b7a0d6f1c265eb29f2.tar.bz2
Unpoison variable partition properly (PR sanitizer/85774).
2018-09-24 Martin Liska <mliska@suse.cz> PR sanitizer/85774 * asan.c: Make asan_handled_variables extern. * asan.h: Likewise. * cfgexpand.c (expand_stack_vars): Make sure a representative is unpoison if another variable in the partition is handled by use-after-scope sanitization. 2018-09-24 Martin Liska <mliska@suse.cz> PR sanitizer/85774 * g++.dg/asan/pr85774.C: New test. From-SVN: r264528
Diffstat (limited to 'gcc/asan.h')
-rw-r--r--gcc/asan.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/asan.h b/gcc/asan.h
index 412af22..2f431b4 100644
--- a/gcc/asan.h
+++ b/gcc/asan.h
@@ -110,6 +110,8 @@ extern bool asan_sanitize_stack_p (void);
extern bool asan_sanitize_allocas_p (void);
+extern hash_set<tree> *asan_handled_variables;
+
/* Return TRUE if builtin with given FCODE will be intercepted by
libasan. */