aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts-global.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/opts-global.c')
-rw-r--r--gcc/opts-global.c5
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