From 97aa8bb6e20579f382357ffaa8f7233133fc1e7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20L=C3=B3pez-Ib=C3=A1=C3=B1ez?= Date: Thu, 4 Dec 2014 23:09:41 +0000 Subject: diagnostic.c (diagnostic_color_init): New. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gcc/ChangeLog: 2014-12-04 Manuel López-Ibáñez * diagnostic.c (diagnostic_color_init): New. * diagnostic.h: Declare. * gcc.c (driver::global_initializations): Use it. (driver_handle_option): Handle -fdiagnostics-color_. * toplev.c: Do not include diagnostic-color.h. (process_options): Do not initialize color diagnostics here. * common.opt (fdiagnostics-color=): Add Driver. * opts-global.c (init_options_once): Initialize color here. * opts.c (common_handle_option): Use diagnostics_color_init. * diagnostic-color.h: Fix comment. From-SVN: r218406 --- gcc/common.opt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/common.opt') diff --git a/gcc/common.opt b/gcc/common.opt index a4dd3b3..78b796b 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -1096,7 +1096,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) +Driver Common Joined RejectNegative Var(flag_diagnostics_show_color) Enum(diagnostic_color_rule) Init(DIAGNOSTICS_COLOR_NO) -fdiagnostics-color=[never|always|auto] Colorize diagnostics ; Required for these enum values. -- cgit v1.1