https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97989
--- Comment #12 from Stas Sergeev <stsp at users dot sourceforge.net> --- Will your patch also fix this: $ cpp -g3 -P -xc -g0 - </dev/null It also produces the same output! Why cpp reacts on those -g at all? Shouldn't it only react on -dD?