Commit 15ebe1fe by Max Ostapenko Committed by Maxim Ostapenko

re PR bootstrap/63888 (bootstrap failed when configured with…

re PR bootstrap/63888 (bootstrap failed when configured with -with-build-config=bootstrap-asan --disable-werror)

libsanitizer/

	PR bootstrap/63888
	Reapply:
	2015-02-20  Jakub Jelinek  <jakub@redhat.com>

	* asan/asan_globals.cc (RegisterGlobal): Disable detect_odr_violation
	support until it is rewritten upstream.

	* c-c++-common/asan/pr63888.c: New test.

From-SVN: r229114
parent 0d57d3e0
2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com> 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
PR bootstrap/63888
Reapply:
2015-02-20 Jakub Jelinek <jakub@redhat.com>
* asan/asan_globals.cc (RegisterGlobal): Disable detect_odr_violation
support until it is rewritten upstream.
* c-c++-common/asan/pr63888.c: New test.
2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
PR sanitizer/63958 PR sanitizer/63958
Reapply: Reapply:
2014-10-14 David S. Miller <davem@davemloft.net> 2014-10-14 David S. Miller <davem@davemloft.net>
......
...@@ -144,7 +144,9 @@ static void RegisterGlobal(const Global *g) { ...@@ -144,7 +144,9 @@ static void RegisterGlobal(const Global *g) {
CHECK(AddrIsInMem(g->beg)); CHECK(AddrIsInMem(g->beg));
CHECK(AddrIsAlignedByGranularity(g->beg)); CHECK(AddrIsAlignedByGranularity(g->beg));
CHECK(AddrIsAlignedByGranularity(g->size_with_redzone)); CHECK(AddrIsAlignedByGranularity(g->size_with_redzone));
if (flags()->detect_odr_violation) { // This "ODR violation" detection is fundamentally incompatible with
// how GCC registers globals. Disable as useless until rewritten upstream.
if (0 && flags()->detect_odr_violation) {
// Try detecting ODR (One Definition Rule) violation, i.e. the situation // Try detecting ODR (One Definition Rule) violation, i.e. the situation
// where two globals with the same name are defined in different modules. // where two globals with the same name are defined in different modules.
if (__asan_region_is_poisoned(g->beg, g->size_with_redzone)) { if (__asan_region_is_poisoned(g->beg, g->size_with_redzone)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment