testsuite: Fix aarch64/strcmpopt_6.c for -Wstringop-overread
authorChristophe Lyon <christophe.lyon@linaro.org>
Mon, 31 Aug 2020 09:59:24 +0000 (09:59 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Mon, 31 Aug 2020 10:42:12 +0000 (10:42 +0000)
2020-08-31  Christophe Lyon  <christophe.lyon@linaro.org>

gcc/testsuite/
* gcc.target/aarch64/strcmpopt_6.c: Suppress -Wstringop-overread.

gcc/testsuite/gcc.target/aarch64/strcmpopt_6.c

index 4c6de02824f44ba79765c2f05621ed57860465b2..505c13e5c11e6136711b928d9a1bb641c52f3222 100644 (file)
@@ -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;