Add sanopt for ASAN_MARK poison and unpoison.
authorMartin Liska <mliska@suse.cz>
Tue, 13 Dec 2016 15:35:14 +0000 (16:35 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 13 Dec 2016 15:35:14 +0000 (15:35 +0000)
commit2f75d6ebf81833cac96596108c2d56d0c6cdb2a0
tree604db308344ff532343de8ca9aad04b245db93de
parent437df9f9d154c9328e52d967fbecdf72148566e1
Add sanopt for ASAN_MARK poison and unpoison.

* sanopt.c (sanopt_optimize_walker): Set contains_asan_mark.
(sanopt_optimize): Add new argument.
(sanitize_asan_mark_unpoison): New function.
(maybe_contains_asan_check): Likewise.
(sanitize_asan_mark_poison): Likewise.
(pass_sanopt::execute): Call the new functions.

From-SVN: r243611
gcc/ChangeLog
gcc/sanopt.c