From 2da5ec98516c75aedecf9769b8b804fc03e3bc2d Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Wed, 29 Sep 2021 08:06:09 +0200 Subject: [PATCH] Avoid memcpy inline expansion in gcc.dg/out-of-bounds-1.c This avoids inline expansion to preserve the warning by making the memcpy size a non-power-of-two as suggested by Martin Sebor. 2021-09-29 Richard Biener * gcc.dg/out-of-bounds-1.c: Make memcpied size not power-of-two. --- gcc/testsuite/gcc.dg/out-of-bounds-1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.dg/out-of-bounds-1.c b/gcc/testsuite/gcc.dg/out-of-bounds-1.c index 1c76341af272..5c134c096e30 100644 --- a/gcc/testsuite/gcc.dg/out-of-bounds-1.c +++ b/gcc/testsuite/gcc.dg/out-of-bounds-1.c @@ -8,6 +8,6 @@ void ProjectOverlay(const float localTextureAxis[2], char *lump) { const void *d = &localTextureAxis; - int size = sizeof(float)*8 ; + int size = sizeof(float)*7 ; __builtin_memcpy( &lump[ 0 ], d, size ); /* { dg-warning "reading" } */ } -- 2.47.2