From: Richard Biener Date: Wed, 29 Sep 2021 06:06:09 +0000 (+0200) Subject: Avoid memcpy inline expansion in gcc.dg/out-of-bounds-1.c X-Git-Tag: basepoints/gcc-13~4360 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2da5ec98516c75aedecf9769b8b804fc03e3bc2d;p=thirdparty%2Fgcc.git 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. --- 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" } */ }