r243153 - in /trunk: config/ChangeLog config/bo...
chefmax@gcc.gnu.org
chefmax@gcc.gnu.org
Fri Dec 2 07:39:00 GMT 2016
Author: chefmax
Date: Fri Dec 2 07:39:27 2016
New Revision: 243153
URL: https://gcc.gnu.org/viewcvs?rev=243153&root=gcc&view=rev
Log:
Add support for ASan odr_indicator.
config/
* bootstrap-asan.mk: Replace LSAN_OPTIONS=detect_leaks=0 with
ASAN_OPTIONS=detect_leaks=0:use_odr_indicator=1.
gcc/
* asan.c (asan_global_struct): Refactor.
(create_odr_indicator): New function.
(asan_needs_odr_indicator_p): Likewise.
(is_odr_indicator): Likewise.
(asan_add_global): Introduce odr_indicator_ptr. Pass it into global's
constructor.
(asan_protect_global): Do not protect odr indicators.
gcc/c-family/
* c-attribs.c (asan odr indicator): New attribute.
(handle_asan_odr_indicator_attribute): New function.
gcc/testsuite/
* c-c++-common/asan/no-redundant-odr-indicators-1.c: New test.
Added:
trunk/gcc/testsuite/c-c++-common/asan/no-redundant-odr-indicators-1.c
Modified:
trunk/config/ChangeLog
trunk/config/bootstrap-asan.mk
trunk/gcc/ChangeLog
trunk/gcc/asan.c
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-attribs.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list