rhill       14/05/13 02:03:43

  Modified:             README.history
  Added:                13_all_default-color.patch
  Log:
  Colors for everyone.

Revision  Changes    Path
1.4                  src/patchsets/gcc/4.9.0/gentoo/README.history

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.9.0/gentoo/README.history?rev=1.4&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.9.0/gentoo/README.history?rev=1.4&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.9.0/gentoo/README.history?r1=1.3&r2=1.4

Index: README.history
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/gcc/4.9.0/gentoo/README.history,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- README.history      12 May 2014 14:18:26 -0000      1.3
+++ README.history      13 May 2014 02:03:43 -0000      1.4
@@ -3,6 +3,7 @@
        U 10_all_default-fortify-source.patch
        U 11_all_default-warn-format-security.patch
        U 12_all_default-warn-trampolines.patch
+       + 13_all_default-color.patch
        + 15_all_libgfortran-Werror.patch
        + 16_all_libgomp-Werror.patch
        + 17_all_libitm-Werror.patch



1.1                  src/patchsets/gcc/4.9.0/gentoo/13_all_default-color.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.9.0/gentoo/13_all_default-color.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.9.0/gentoo/13_all_default-color.patch?rev=1.1&content-type=text/plain

Index: 13_all_default-color.patch
===================================================================
http://pkgs.fedoraproject.org/cgit/gcc.git/plain/gcc49-color-auto.patch

2013-09-20  Jakub Jelinek  <ja...@redhat.com>

        * common.opt (-fdiagnostics-color=): Default to auto.
        * toplev.c (process_options): Always default to
        -fdiagnostics-color=auto if no -f{,no-}diagnostics-color*.
        * doc/invoke.texi (-fdiagnostics-color*): Adjust documentation
        of the default.


--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -1045,7 +1045,7 @@ Common Alias(fdiagnostics-color=,always,never)
 ;
 
 fdiagnostics-color=
-Common Joined RejectNegative Var(flag_diagnostics_show_color) 
Enum(diagnostic_color_rule) Init(DIAGNOSTICS_COLOR_NO)
+Common Joined RejectNegative Var(flag_diagnostics_show_color) 
Enum(diagnostic_color_rule) Init(DIAGNOSTICS_COLOR_AUTO)
 -fdiagnostics-color=[never|always|auto]        Colorize diagnostics
 
 ; Required for these enum values.
--- a/gcc/doc/gcc.info
+++ b/gcc/doc/gcc.info
@@ -3106,10 +3106,9 @@ ends may not honor these options.
 '-fdiagnostics-color[=WHEN]'
 '-fno-diagnostics-color'
      Use color in diagnostics.  WHEN is 'never', 'always', or 'auto'.
-     The default is 'never' if 'GCC_COLORS' environment variable isn't
-     present in the environment, and 'auto' otherwise.  'auto' means to
-     use color only when the standard error is a terminal.  The forms
-     '-fdiagnostics-color' and '-fno-diagnostics-color' are aliases for
+     The default is 'auto.  'auto' means to use color only when the
+     standard error is a terminal.  The forms '-fdiagnostics-color'
+     and '-fno-diagnostics-color' are aliases for
      '-fdiagnostics-color=always' and '-fdiagnostics-color=never',
      respectively.
 
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -1229,10 +1229,8 @@ process_options (void)
 
   maximum_field_alignment = initial_max_fld_align * BITS_PER_UNIT;
 
-  /* Default to -fdiagnostics-color=auto if GCC_COLORS is in the environment,
-     otherwise default to -fdiagnostics-color=never.  */
-  if (!global_options_set.x_flag_diagnostics_show_color
-      && getenv ("GCC_COLORS"))
+  /* Default to -fdiagnostics-color=auto.  */
+  if (!global_options_set.x_flag_diagnostics_show_color)
     pp_show_color (global_dc->printer)
       = colorize_init (DIAGNOSTICS_COLOR_AUTO);
 




Reply via email to