The bogus warning in pr113026-1.c is issued at some optimization
levels on various 32-bit targets.

Regstrapped on x86_64-linux-gnu.  Also tested with aarch64-elf and
arm-eabi with gcc-15.  Ok to install?


for  gcc/testsuite/ChangeLog

        PR tree-optimization/113524
        * gcc.dg/torture/pr113026-1.c: XFAIL bogus warning on various
        32-bit targets.
---
 gcc/testsuite/gcc.dg/torture/pr113026-1.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/torture/pr113026-1.c 
b/gcc/testsuite/gcc.dg/torture/pr113026-1.c
index 37b5281d547fb..fbea6e2aa15c5 100644
--- a/gcc/testsuite/gcc.dg/torture/pr113026-1.c
+++ b/gcc/testsuite/gcc.dg/torture/pr113026-1.c
@@ -9,5 +9,5 @@ void
 foo (char *src, long n)
 {
   for (long i = 0; i < n; i++)
-    dst[i] = src[i]; /* { dg-bogus "" } */
+    dst[i] = src[i]; /* { dg-bogus "" "PR118504" { xfail { { arm-*-eabi 
arm-*-vxworks* sparc-leon3-elf } || { ilp32 && { { riscv*-*-* powerpc*-*-* } || 
{ x86 && *-*-vxworks* } } } } } } */
 }

-- 
Alexandre Oliva, happy hacker            https://blog.lx.oliva.nom.br/
Free Software Activist     FSFLA co-founder     GNU Toolchain Engineer
More tolerance and less prejudice are key for inclusion and diversity.
Excluding neuro-others for not behaving ""normal"" is *not* inclusive!

Reply via email to