diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2014-12-04 23:09:41 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2014-12-04 23:09:41 +0000 |
commit | 97aa8bb6e20579f382357ffaa8f7233133fc1e7c (patch) | |
tree | 4ed8367e62b4ba4d6028e2ffb5d23560f80d3d52 /gcc/opts-global.c | |
parent | 87aca3a6aed5f33bc3ead975e96ed8db80c45cd6 (diff) | |
download | gcc-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-global.c')
-rw-r--r-- | gcc/opts-global.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/opts-global.c b/gcc/opts-global.c index 80a84f6..bb3898e 100644 --- a/gcc/opts-global.c +++ b/gcc/opts-global.c @@ -261,6 +261,11 @@ init_options_once (void) initial_lang_mask = lang_hooks.option_lang_mask (); lang_hooks.initialize_diagnostics (global_dc); + /* ??? Ideally, we should do this earlier and the FEs will override + it if desired (none do it so far). However, the way the FEs + construct their pretty-printers means that all previous settings + are overriden. */ + diagnostic_color_init (global_dc); } /* Decode command-line options to an array, like |