https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81697
--- Comment #4 from chefmax at gcc dot gnu.org --- Author: chefmax Date: Thu Nov 30 21:38:16 2017 New Revision: 255283 URL: https://gcc.gnu.org/viewcvs?rev=255283&root=gcc&view=rev Log: gcc/ 2017-11-30 Maxim Ostapenko <m.ostape...@samsung.com> PR sanitizer/81697 * asan.c (asan_protect_global): Add new ignore_decl_rtl_set_p parameter. Return true if ignore_decl_rtl_set_p is true and other conditions are satisfied. * asan.h (asan_protect_global): Add new parameter. * varasm.c (categorize_decl_for_section): Pass true as second parameter to asan_protect_global calls. gcc/testsuite/ 2017-11-30 Maxim Ostapenko <m.ostape...@samsung.com> PR sanitizer/81697 * c-c++-common/asan/pr81697.c: New test. Added: trunk/gcc/testsuite/c-c++-common/asan/pr81697.c Modified: trunk/gcc/ChangeLog trunk/gcc/asan.c trunk/gcc/asan.h trunk/gcc/testsuite/ChangeLog trunk/gcc/varasm.c