projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd13347
)
Avoid memcpy inline expansion in gcc.dg/out-of-bounds-1.c
author
Richard Biener
<rguenther@suse.de>
Wed, 29 Sep 2021 06:06:09 +0000
(08:06 +0200)
committer
Richard Biener
<rguenther@suse.de>
Wed, 29 Sep 2021 06:07:42 +0000
(08:07 +0200)
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.
gcc/testsuite/gcc.dg/out-of-bounds-1.c
patch
|
blob
|
history
diff --git
a/gcc/testsuite/gcc.dg/out-of-bounds-1.c
b/gcc/testsuite/gcc.dg/out-of-bounds-1.c
index
1c76341
..
5c134c0
100644
(file)
--- 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" } */
}