[PATCH] Disable warning for an ASAN test-case.

Martin Liška mliska@suse.cz
Thu Nov 4 08:54:27 GMT 2021


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(-)

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*-*-* } }
-- 
2.33.1



More information about the Gcc-patches mailing list