[Bug middle-end/109449] false positive stringop-overflow

2023-04-08 Thread pionere at freemail dot hu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109449 --- Comment #3 from pionere at freemail dot hu --- (In reply to Andrew Pinski from comment #2) > I am not 100% sure if this is not a incorrect warning. The question that > needs to be answered is the object located at &drlg.transDirMap[0][0] can

[Bug middle-end/109449] false positive stringop-overflow

2023-04-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109449 --- Comment #2 from Andrew Pinski --- I am not 100% sure if this is not a incorrect warning. The question that needs to be answered is the object located at &drlg.transDirMap[0][0] can only validly be accessed to offset 80 or not.

[Bug middle-end/109449] false positive stringop-overflow

2023-04-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109449 --- Comment #1 from Andrew Pinski --- The trunk provides extra information: : In function 'void func()': :51:47: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 51 | tdp[(2 * i + 1) * DSIZEY + 2 * j] = tpm;