https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83773
Roland Illig <roland.illig at gmx dot de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |roland.illig at gmx dot de --- Comment #4 from Roland Illig <roland.illig at gmx dot de> --- Having this option would help NetBSD's lint(1), which currently uses the -Wp,-CC option to preserve comments. >From https://gnats.netbsd.org/22515: > $ cat > lint-define.c > #define LINTFOO 1 /* comment */ > #define LINTFOO 1 /* different */ > int foo; > > $ gcc -Wall -E lint-define.c > > $ gcc -Wall -E -Wp,-CC lint-define.c > lint-define.c:2: warning: `LINTFOO' redefined > lint-define.c:1: warning: this is the location of the previous definition Without an option like Clang's -Wmacro-redefined, another possible fix for this scenario would be to ignore differences in comment text, in _cpp_equiv_tokens. These only occur with the options -C or -CC and thus do not affect the default behavior.