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

            Bug ID: 102744
           Summary: [12 regression] -O2 vectorization causes
                    Wzero-length-array-bounds-2.c to fail on arc-elf
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: law at gcc dot gnu.org
  Target Milestone: ---

Starting with the patch to vectorize at -O2,
gcc.dg/Wzero-length-array-bounds-2.c has started failing on arc-elf.  We're
getting an additional diagnostic:

/home/jlaw/test/gcc/gcc/testsuite/gcc.dg/Wzero-length-array-bounds-2.c:90:17:
warning: writing 8 bytes into a region of size 0 [-Wstringop-overflow=]

This may well be the same underlying issue as the other problems we're chasing
in this space, if that turns out to be the case, just mark this is a duplicate.
 I haven't debugged it in any notable way.  It should reproduce with just a
cross compiler.

Reply via email to