[Bug c/97261] gcc-10 produces invalid -Warray-bounds warning

2020-10-01 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97261 --- Comment #4 from Richard Biener --- (In reply to Dima Kogan from comment #3) > Hi. Thanks for replying. I don't the warning that I'm claiming is bogus is > complaining about the points you raised. If it did, then making g() static > or buildin

[Bug c/97261] gcc-10 produces invalid -Warray-bounds warning

2020-10-01 Thread gccbugs at dima dot secretsauce.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97261 --- Comment #3 from Dima Kogan --- Hi. Thanks for replying. I don't the warning that I'm claiming is bogus is complaining about the points you raised. If it did, then making g() static or building without -fPIC or -O3 wouldn't make the warning go

[Bug c/97261] gcc-10 produces invalid -Warray-bounds warning

2020-09-30 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97261 Richard Biener changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #

[Bug c/97261] gcc-10 produces invalid -Warray-bounds warning

2020-09-30 Thread gccbugs at dima dot secretsauce.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97261 --- Comment #1 from Dima Kogan --- Created attachment 49294 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49294&action=edit Code to demo the issue