public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-3953] Avoid memcpy inline expansion in gcc.dg/out-of-bounds-1.c
@ 2021-09-29  6:08 Richard Biener
  0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2021-09-29  6:08 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:2da5ec98516c75aedecf9769b8b804fc03e3bc2d

commit r12-3953-g2da5ec98516c75aedecf9769b8b804fc03e3bc2d
Author: Richard Biener <rguenther@suse.de>
Date:   Wed Sep 29 08:06:09 2021 +0200

    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  <rguenther@suse.de>
    
            * gcc.dg/out-of-bounds-1.c: Make memcpied size not power-of-two.

Diff:
---
 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 1c76341af27..5c134c096e3 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" } */
 }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-29  6:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-29  6:08 [gcc r12-3953] Avoid memcpy inline expansion in gcc.dg/out-of-bounds-1.c Richard Biener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).