[Bug tree-optimization/110458] -Warray-bounds=2 new false positive

2023-06-29 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110458

--- Comment #2 from Franz Sirl  ---
This has been exposed by commit
r14-2013-gfb0447b1f6b7373f57cb3a3d17a46803cfd9909d "Hide IVOPTs strip_offset".

[Bug tree-optimization/110458] -Warray-bounds=2 new false positive

2023-06-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110458

Andrew Pinski  changed:

   What|Removed |Added

  Component|c   |tree-optimization
   Keywords||diagnostic

--- Comment #1 from Andrew Pinski  ---
The problem is ldist does:

  arr1_8 = [(struct data *)arrayOut_7(D)].arr1;
  __builtin_memset (arr1_8, 0, 32);

(which is kinda of correct).

I think there are other bug related to this similar thing ...