aboutsummaryrefslogtreecommitdiff
path: root/gcc/asan.c
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.c
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.c')
-rw-r--r--gcc/asan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/asan.c b/gcc/asan.c
index e71ab2c..235e219 100644
--- a/gcc/asan.c
+++ b/gcc/asan.c
@@ -253,7 +253,7 @@ static tree last_alloca_addr;
/* Set of variable declarations that are going to be guarded by
use-after-scope sanitizer. */
-static hash_set<tree> *asan_handled_variables = NULL;
+hash_set<tree> *asan_handled_variables = NULL;
hash_set <tree> *asan_used_labels = NULL;