This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Document --with-diagnostics-color=
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Richard Biener <richard dot guenther at gmail dot com>
- Cc: Gerald Pfeifer <gerald at pfeifer dot com>, Jeff Law <law at redhat dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 14 Nov 2014 18:31:06 +0100
- Subject: [PATCH] Document --with-diagnostics-color=
- Authentication-results: sourceware.org; auth=none
- References: <20141112223351 dot GU5026 at tucnak dot redhat dot com> <546552D6 dot 4070700 at redhat dot com> <20141114074229 dot GG5026 at tucnak dot redhat dot com> <CAFiYyc21DwnXyx8zXgqvA=USwHnBPsy7Ati0Hg7gbqe-2JcJ2w at mail dot gmail dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Fri, Nov 14, 2014 at 12:01:43PM +0100, Richard Biener wrote:
> > doc/invoke.texi also talks about it, wonder if it shouldn't be mentioned
> > elsewhere, install.texi?
>
> Sure - the configure option should be mentioned in install.texi as well.
Here it is. Ok for trunk?
2014-11-14 Jakub Jelinek <jakub@redhat.com>
* doc/install.texi (--with-diagnostics-color=): Document.
--- gcc/doc/install.texi.jj 2014-11-13 15:13:22.000000000 +0100
+++ gcc/doc/install.texi 2014-11-14 16:29:47.941342318 +0100
@@ -1795,6 +1795,15 @@ static data members and inline function
default for a toolchain with an assembler that accepts it and
GLIBC 2.11 or above, otherwise disabled.
+@item --with-diagnostics-color=@var{choice}
+Tells GCC to use @var{choice} as the default for @option{-fdiagnostics-color=}
+option (if not used explicitly on the command line). @var{choice}
+can be one of @samp{never}, @samp{auto}, @samp{always}, and @samp{auto-if-env}
+where @samp{auto} is the default. @samp{auto-if-env} means that
+@option{-fdiagnostics-color=auto} will be the default if @code{GCC_COLORS}
+is present and non-empty in the environment, and
+@option{-fdiagnostics-color=never} otherwise.
+
@item --enable-lto
@itemx --disable-lto
Enable support for link-time optimization (LTO). This is enabled by
Jakub