diff options
author | manu <manu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-12-04 23:09:41 +0000 |
---|---|---|
committer | manu <manu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-12-04 23:09:41 +0000 |
commit | 9b11544d9d667cd7e183a57cac5b85f267bd9ee8 (patch) | |
tree | 4ed8367e62b4ba4d6028e2ffb5d23560f80d3d52 /gcc/diagnostic.h | |
parent | baa9d1792cb79d0ff7e6502c20d62d606c372f1e (diff) | |
download | gcc-9b11544d9d667cd7e183a57cac5b85f267bd9ee8.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218406 138bc75d-0d04-0410-961f-82ee72b054a4
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 64f90a79324..81e59880169 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 *); |