aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2014-12-04 23:09:41 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2014-12-04 23:09:41 +0000
commit97aa8bb6e20579f382357ffaa8f7233133fc1e7c (patch)
tree4ed8367e62b4ba4d6028e2ffb5d23560f80d3d52 /gcc/opts.c
parent87aca3a6aed5f33bc3ead975e96ed8db80c45cd6 (diff)
downloadgcc-97aa8bb6e20579f382357ffaa8f7233133fc1e7c.zip
gcc-97aa8bb6e20579f382357ffaa8f7233133fc1e7c.tar.gz
gcc-97aa8bb6e20579f382357ffaa8f7233133fc1e7c.tar.bz2
diagnostic.c (diagnostic_color_init): New.
gcc/ChangeLog: 2014-12-04 Manuel López-Ibáñez <manu@gcc.gnu.org> * 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
Diffstat (limited to 'gcc/opts.c')
-rw-r--r--gcc/opts.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/opts.c b/gcc/opts.c
index 564b8dc..1b4f97e 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -30,7 +30,6 @@ along with GCC; see the file COPYING3. If not see
#include "flags.h"
#include "params.h"
#include "diagnostic.h"
-#include "diagnostic-color.h"
#include "opts-diagnostic.h"
#include "insn-attr-common.h"
#include "common/common-target.h"
@@ -1771,8 +1770,7 @@ common_handle_option (struct gcc_options *opts,
break;
case OPT_fdiagnostics_color_:
- pp_show_color (dc->printer)
- = colorize_init ((diagnostic_color_rule_t) value);
+ diagnostic_color_init (dc, value);
break;
case OPT_fdiagnostics_show_option: