[Bug middle-end/93582] [10 Regression] -Warray-bounds gives error: array subscript 0 is outside array bounds of struct E[1]

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Feb 11 11:04:00 GMT 2020


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

--- Comment #22 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #21)
> The shift_bytes_in_array_{left,right} routines should go next to
> native_{encode,interpret} where maybe also a comment should indicate how to
> combine both?

Ok.

> The vn_reference_lookup_3 part looks OK to me, the visit_nary_op one is a bit
> gross ... some comments:

Yes, that part was meant as a hack that we could hopefully throw away for
GCC11.
Anyway, I'll try to finish up the vn_reference_lookup_3 part for big endian,
add testcases and submit that, then perhaps try to do also the pieces stuff for
non-byte granularity incrementally, and leave the rest for last.


More information about the Gcc-bugs mailing list