[Bug tree-optimization/84859] [8 Regression] bogus -Warray-bounds on a memcpy in a loop
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 14 18:00:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84859
--- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> ---
We have seen this sort of thing come up a number of times in the past. Jeff
and I have discussed changing jump threading to either avoid introducing paths
involving invalid calls, or inserting __builtin_unreachable/__builtin_trap.
That could not only avoid false positives but also make it possible to emit
more efficient code.
More information about the Gcc-bugs
mailing list