diff mbox

Document --with-diagnostics-color=

Message ID 20141114173106.GA5026@tucnak.redhat.com
State New
Headers show

Commit Message

Jakub Jelinek Nov. 14, 2014, 5:31 p.m. UTC
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.



	Jakub

Comments

Jeff Law Nov. 14, 2014, 5:52 p.m. UTC | #1
On 11/14/14 10:31, Jakub Jelinek wrote:
> 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.
OK.
jeff
diff mbox

Patch

--- 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