From: Christophe Lyon Date: Mon, 31 Aug 2020 09:59:24 +0000 (+0000) Subject: testsuite: Fix aarch64/strcmpopt_6.c for -Wstringop-overread X-Git-Tag: basepoints/gcc-12~5309 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=371fa005aeb5c84586fc3dcd37bbfd4d9215b7bb;p=thirdparty%2Fgcc.git 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. --- diff --git a/gcc/testsuite/gcc.target/aarch64/strcmpopt_6.c b/gcc/testsuite/gcc.target/aarch64/strcmpopt_6.c index 4c6de02824f4..505c13e5c11e 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;