Enable addressable params sanitization with --param asan-stack=1.
authorMartin Liska <mliska@suse.cz>
Tue, 4 Jul 2017 10:53:18 +0000 (12:53 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 4 Jul 2017 10:53:18 +0000 (10:53 +0000)
commit7c819e8ae28435601df531215419957814990cd5
tree92c521c5d6cc094b73267ca322d7338fbc8da652
parent6abe28643fa54aeafeddb96e5767fcfd450da6fd
Enable addressable params sanitization with --param asan-stack=1.

2017-07-04  Martin Liska  <mliska@suse.cz>

PR sanitizer/81040
* sanopt.c (sanitize_rewrite_addressable_params): Mark the
newly created variable as DECL_IGNORED_P.
2017-07-04  Martin Liska  <mliska@suse.cz>

PR sanitizer/81040
* g++.dg/asan/function-argument-1.C: Run the test-case w/o
use-after-scope sanitization.

From-SVN: r249960
gcc/ChangeLog
gcc/sanopt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/asan/function-argument-1.C