On 2025-07-14 03:02, Richard Biener wrote: > On Fri, Jul 11, 2025 at 8:27 PM Siddhesh Poyarekar <siddh...@gotplt.org> > wrote: >> >> >> The test ends up writing a byte beyond bounds of the buffer, which gets >> >> trapped on some targets when the test is run with >> >> -fstack-protector-strong. >> >> >> >> testsuite/ChangeLog: >> >> >> >> * gcc.dg/vect/pr116125.c (mem_overlap): Reduce iteration count >> >> to 8. >> >> >> >> Signed-off-by: Siddhesh Poyarekar <siddh...@gotplt.org> >> >> --- >> >> OK for trunk and backport to gcc-15? >> > > > Can you instead make the buffers larger? We might otherwise no longer > > testing what we did. >
Ack, I'll push this to master and backport to gcc-15 later in the week then, if you don't object. Thanks, Sid --->8--- The test ends up writing a byte beyond bounds of the buffer, which gets trapped on some targets when the test is run with -fstack-protector-strong. testsuite/ChangeLog: * gcc.dg/vect/pr116125.c (mem_overlap): Expand A to 10 members. Signed-off-by: Siddhesh Poyarekar <siddh...@gotplt.org> --- gcc/testsuite/gcc.dg/vect/pr116125.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/gcc.dg/vect/pr116125.c b/gcc/testsuite/gcc.dg/vect/pr116125.c index eab9efdc061..526bb5bfaaa 100644 --- a/gcc/testsuite/gcc.dg/vect/pr116125.c +++ b/gcc/testsuite/gcc.dg/vect/pr116125.c @@ -17,12 +17,12 @@ main (void) { check_vect (); - struct st a[9] = {}; + struct st a[10] = {}; - // input a = 0, 0, 0, 0, 0, 0, 0, 0, 0 + // input a = 0, 0, 0, 0, 0, 0, 0, 0, 0, 10 mem_overlap (&a[1], a); - // output a = 0, 1, 2, 3, 4, 5, 6, 7, 8 + // output a = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 if (a[2].num == 2) return 0; else -- 2.50.1