Maxim Ostapenko
84b0769e33
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.
From-SVN: r243153
2016-12-02 09:39:27 +02:00
..
2016-12-01 16:02:51 -07:00
2015-05-05 03:41:53 +00:00
2016-12-02 09:39:27 +02:00
2015-03-25 17:01:36 +01:00
2014-09-01 16:41:28 +00:00
2015-04-14 08:04:45 -07:00
2013-11-29 20:13:45 +00:00
2016-12-02 09:39:27 +02:00
2015-06-30 09:42:07 -07:00
2016-06-21 21:57:20 +00:00
2014-10-27 17:21:42 +00:00
2015-07-24 12:20:44 -06:00
2015-08-24 10:24:52 +00:00
2016-01-29 20:26:04 +00:00
2015-03-27 18:08:44 +01:00
2015-04-10 06:43:52 +00:00
2014-04-25 08:03:08 +00:00
2014-05-14 19:20:59 -04:00
2014-11-18 15:12:52 -07:00
2016-11-15 16:34:02 +00:00
2016-06-21 21:57:20 +00:00
2014-11-26 21:53:35 +00:00
2015-07-24 12:20:44 -06:00
2015-05-13 21:15:31 +00:00
2015-07-24 12:20:44 -06:00
2014-11-13 14:03:17 +00:00
2015-07-24 12:20:44 -06:00
2015-05-27 16:40:38 -04:00
2015-07-14 07:25:35 -07:00