diagnostic.c (diagnostic_color_init): New.
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Thu, 4 Dec 2014 23:09:41 +0000 (23:09 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Thu, 4 Dec 2014 23:09:41 +0000 (23:09 +0000)
commit97aa8bb6e20579f382357ffaa8f7233133fc1e7c
tree4ed8367e62b4ba4d6028e2ffb5d23560f80d3d52
parent87aca3a6aed5f33bc3ead975e96ed8db80c45cd6
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
gcc/ChangeLog
gcc/common.opt
gcc/diagnostic-color.h
gcc/diagnostic.c
gcc/diagnostic.h
gcc/gcc.c
gcc/opts-global.c
gcc/opts.c
gcc/toplev.c