https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97989
--- Comment #6 from Stas Sergeev <stsp at users dot sourceforge.net> --- (In reply to Jakub Jelinek from comment #5) > 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. $ gcc -g3 -E -Wp,-P -xc -g0 - </dev/null still produces all the output, and it seems to match your criteria, i.e. CFLAGS don't include the -d[DMNIU]. Besides, I don't see the -d0 or whatever to undo the previously enabled (by -g3) -dD, so I would be very surprised if the trailing -g0 worked that way (and it does not).