https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67640
Bug ID: 67640 Summary: driver passes -fdiagnostics-color= always last Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: driver Assignee: unassigned at gcc dot gnu.org Reporter: manu at gcc dot gnu.org Target Milestone: --- The driver alters the order when passing command-line options to the compiler proper. This means that -fdiagnostics-color has no chance to disable color before the first error is emitted: $. /xgcc -B ./ ~/test.c -fdiagnostics-color=never -Wnoexcept -E -### 2>&1 | grep cc1 ./cc1 -E -quiet -iprefix ./../lib/gcc/x86_64-pc-linux-gnu/6.0.0/ -isystem ./include -isystem ./include-fixed ./test.c "-mtune=generic" "-march=x86-64" -Wnoexcept "-fdiagnostics-color=never" $ ./xgcc -B ./ ~/test.c -Wnoexcept -fdiagnostics-color=never -E -### 2>&1 | grep cc1 ./cc1 -E -quiet -iprefix ./../lib/gcc/x86_64-pc-linux-gnu/6.0.0/ -isystem ./include -isystem ./include-fixed ./test.c "-mtune=generic" "-march=x86-64" -Wnoexcept "-fdiagnostics-color=never"