Disable warning for an ASAN test-case.

Message ID cf464dbd-e061-1e26-06c6-e00f534371b5@suse.cz
State New
Headers
Series Disable warning for an ASAN test-case. |

Commit Message

Martin Liška Nov. 4, 2021, 8:54 a.m. UTC
  Pushed to master, fixes:

g++.log: FAIL: g++.dg/asan/asan_test.C   -O2  (test for excess errors)
g++.log: UNRESOLVED: g++.dg/asan/asan_test.C   -O2  compilation failed to produce executable

gcc/testsuite/ChangeLog:

	* g++.dg/asan/asan_test.C: Disable one warning.
---
  gcc/testsuite/g++.dg/asan/asan_test.C | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/gcc/testsuite/g++.dg/asan/asan_test.C b/gcc/testsuite/g++.dg/asan/asan_test.C
index 49933ab8e4d..15c338b8c16 100644
--- a/gcc/testsuite/g++.dg/asan/asan_test.C
+++ b/gcc/testsuite/g++.dg/asan/asan_test.C
@@ -2,7 +2,7 @@ 
  // { dg-skip-if "" { *-*-* } { "*" } { "-O2" } }
  // { dg-skip-if "" { *-*-* } { "-flto" } { "" } }
  // { dg-additional-sources "asan_globals_test-wrapper.cc" }
-// { dg-options "-std=c++11 -fsanitize=address -fno-builtin -Wall -Werror -Wno-alloc-size-larger-than -Wno-array-bounds -Wno-stringop-overflow -g -DASAN_UAR=0 -DASAN_HAS_EXCEPTIONS=1 -DASAN_HAS_BLACKLIST=0 -DSANITIZER_USE_DEJAGNU_GTEST=1 -lasan -lpthread" }
+// { dg-options "-std=c++11 -fsanitize=address -fno-builtin -Wall -Werror -Wno-alloc-size-larger-than -Wno-array-bounds -Wno-stringop-overflow -Wno-stringop-overread -g -DASAN_UAR=0 -DASAN_HAS_EXCEPTIONS=1 -DASAN_HAS_BLACKLIST=0 -DSANITIZER_USE_DEJAGNU_GTEST=1 -lasan -lpthread" }
  // { dg-additional-options "-ldl" { target { ! *-*-freebsd* } } }
  // { dg-additional-options "-DASAN_NEEDS_SEGV=1" { target { ! arm*-*-* } } }
  // { dg-additional-options "-DASAN_LOW_MEMORY=1 -DASAN_NEEDS_SEGV=0" { target arm*-*-* } }