https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113026

Alexandre Oliva <aoliva at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---
                 CC|                            |aoliva at gcc dot gnu.org

--- Comment #9 from Alexandre Oliva <aoliva at gcc dot gnu.org> ---
FYI, pr113026-1.c has never passed on arm-eabi, at torture options "-O3
-fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions". 
I've just tested at each commit associated with this PR.  It fails in gcc-14
and trunk targeting gcc-15.  The bogus warning is the same as in the initial
description:

.../obj-arm-eabi$ gcc/xgcc -Bgcc/ -fdump-tree-optimized -S
../gcc/testsuite/gcc.dg/torture/pr113026-1.c -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions
../gcc/testsuite/gcc.dg/torture/pr113026-1.c: In function ‘foo’:
../gcc/testsuite/gcc.dg/torture/pr113026-1.c:10:12: warning: writing 1 byte
into a region of size 0 [-Wstringop-overflow=]
   10 |     dst[i] = src[i]; /* { dg-bogus "" } */
      |     ~~~~~~~^~~~~~~~
../gcc/testsuite/gcc.dg/torture/pr113026-1.c:4:6: note: at offset 16 into
destination object ‘dst’ of size 16
    4 | char dst[16];
      |      ^~~

Reply via email to