https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70765
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Why do you think that is a bug? GCC is not a static analyzer, but a compiler, and to detect this case the functions need to be inlined, which is an optimization that is not performed at -O0 (unless the function is inline __attribute__((always_inline)) ).