https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97989
Bug ID: 97989 Summary: -g3 somehow breaks -E Product: gcc Version: 10.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: stsp at users dot sourceforge.net Target Milestone: --- $ gcc -E -Wp,-P -xc - </dev/null No output, correct. $ gcc -g3 -E -Wp,-P -xc - </dev/null Lots of cpp defines in output, incorrect. $ clang -g3 -E -Wp,-P -xc - </dev/null No output, correct. AFAIK no "#define"s should be outputted by the cpp pass. Quite the opposite, cpp should expand them all. But with -g3 for some reason this doesn't happen.