This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/67640] New: driver passes -fdiagnostics-color= always last
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 19 Sep 2015 20:50:09 +0000
- Subject: [Bug driver/67640] New: driver passes -fdiagnostics-color= always last
- Auto-submitted: auto-generated
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"