https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97989
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Then they just make bad assumptions. You can do: cc -E -Wp,-P $CFLAGS -g0 instead if you are sure CFLAGS don't include the -d[DMNIU] options nor e.g. -fdirectives-only.