https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107042
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> --- Because incremental rebuilds for trunk are not supported. If it works, that's nice, if it doesn't, it's not a bug. Do a clean build.