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/diagnostic.h | |
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/diagnostic.h')
-rw-r--r-- | gcc/diagnostic.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h index 64f90a7..81e5988 100644 --- a/gcc/diagnostic.h +++ b/gcc/diagnostic.h @@ -266,6 +266,7 @@ extern diagnostic_context *global_dc; /* Diagnostic related functions. */ extern void diagnostic_initialize (diagnostic_context *, int); +extern void diagnostic_color_init (diagnostic_context *, int value = -1); extern void diagnostic_finish (diagnostic_context *); extern void diagnostic_report_current_module (diagnostic_context *, location_t); extern void diagnostic_show_locus (diagnostic_context *, const diagnostic_info *); |