Memmove destination overflows if size of int is less than 3, resulting in
spurious test failures. Fix by adding a requirement for effective
target int32plus.
This fixes a new FAIL for AVR backend. Pushed to trunk as obvious.
gcc/testsuite/ChangeLog:
* gcc.dg/pr117816.c: Require effective target int32plus.
Signed-off-by: Dimitar Dimitrov <[email protected]>
---
gcc/testsuite/gcc.dg/pr117816.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.dg/pr117816.c b/gcc/testsuite/gcc.dg/pr117816.c
index 6a9fc5fa141..bd37a5bb0e1 100644
--- a/gcc/testsuite/gcc.dg/pr117816.c
+++ b/gcc/testsuite/gcc.dg/pr117816.c
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target { int32plus } } } */
/* { dg-options "-O -fnon-call-exceptions -favoid-store-forwarding
-fno-forward-propagate -finstrument-functions" } */
char *p;
--
2.47.1