public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r10-8980] ASAN: disable -Wno-stringop-overflow for 2 tests
@ 2020-11-05 10:30 Martin Liska
0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2020-11-05 10:30 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:a79cb813205027576d47a27655198cec4b5cd046
commit r10-8980-ga79cb813205027576d47a27655198cec4b5cd046
Author: Martin Liska <mliska@suse.cz>
Date: Tue Oct 13 10:09:47 2020 +0200
ASAN: disable -Wno-stringop-overflow for 2 tests
gcc/testsuite/ChangeLog:
PR middle-end/97392
* g++.dg/asan/asan_test.C: Disable -Wstringop-overflow.
* gcc.dg/asan/pr80166.c: Likewise.
(cherry picked from commit 8e0e9417ccda583a1bf05ff08e86fdffbec62b3e)
Diff:
---
gcc/testsuite/g++.dg/asan/asan_test.C | 2 +-
gcc/testsuite/gcc.dg/asan/pr80166.c | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/gcc/testsuite/g++.dg/asan/asan_test.C b/gcc/testsuite/g++.dg/asan/asan_test.C
index a151979946a..549b7cf01a2 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 -g -DASAN_UAR=0 -DASAN_HAS_EXCEPTIONS=1 -DASAN_HAS_BLACKLIST=0 -DSANITIZER_USE_DEJAGNU_GTEST=1 -lasan -lpthread -ldl" }
+// { dg-options "-std=c++11 -fsanitize=address -fno-builtin -Wall -Werror -Wno-alloc-size-larger-than -Wno-stringop-overflow -g -DASAN_UAR=0 -DASAN_HAS_EXCEPTIONS=1 -DASAN_HAS_BLACKLIST=0 -DSANITIZER_USE_DEJAGNU_GTEST=1 -lasan -lpthread -ldl" }
// { dg-additional-options "-DASAN_NEEDS_SEGV=1" { target { ! arm*-*-* } } }
// { dg-additional-options "-DASAN_LOW_MEMORY=1 -DASAN_NEEDS_SEGV=0" { target arm*-*-* } }
// { dg-additional-options "-DASAN_AVOID_EXPENSIVE_TESTS=1" { target { ! run_expensive_tests } } }
diff --git a/gcc/testsuite/gcc.dg/asan/pr80166.c b/gcc/testsuite/gcc.dg/asan/pr80166.c
index 629dd23a31c..5e153b274fa 100644
--- a/gcc/testsuite/gcc.dg/asan/pr80166.c
+++ b/gcc/testsuite/gcc.dg/asan/pr80166.c
@@ -1,5 +1,6 @@
/* PR sanitizer/80166 */
/* { dg-do run } */
+/* { dg-additional-options "-Wno-stringop-overflow" } */
#include <sys/types.h>
#include <unistd.h>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-11-05 10:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-05 10:30 [gcc r10-8980] ASAN: disable -Wno-stringop-overflow for 2 tests Martin Liska
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).