https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114374
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Bisection shows that first in r12-5014-g6b8b959675a3e14cfdd2145bd62e4260eb193765 we started to warn on both f and g in #c5 at -O0 -Wall, and then since r12-7870-g28c5df79300ab354cbc381aab200f7c2bd0331ad it only warns in f and not in g anymore.