From 371fa005aeb5c84586fc3dcd37bbfd4d9215b7bb Mon Sep 17 00:00:00 2001 From: Christophe Lyon Date: Mon, 31 Aug 2020 09:59:24 +0000 Subject: [PATCH] testsuite: Fix aarch64/strcmpopt_6.c for -Wstringop-overread 2020-08-31 Christophe Lyon gcc/testsuite/ * gcc.target/aarch64/strcmpopt_6.c: Suppress -Wstringop-overread. --- gcc/testsuite/gcc.target/aarch64/strcmpopt_6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/aarch64/strcmpopt_6.c b/gcc/testsuite/gcc.target/aarch64/strcmpopt_6.c index 4c6de02824f..505c13e5c11 100644 --- a/gcc/testsuite/gcc.target/aarch64/strcmpopt_6.c +++ b/gcc/testsuite/gcc.target/aarch64/strcmpopt_6.c @@ -1,7 +1,7 @@ /* When the specified length exceeds one of the arguments of the call to memcmp, the call to memcmp should NOT be inlined. */ /* { dg-do compile } */ -/* { dg-options "-O2 -Wno-stringop-overflow" } */ +/* { dg-options "-O2 -Wno-stringop-overread" } */ typedef struct { char s[8]; int x; } S; -- 2.30.2