aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/ChangeLog.backported
diff options
context:
space:
mode:
authorsynergydev <synergye@codefi.re>2013-08-08 04:40:50 -0700
committersynergydev <synergye@codefi.re>2013-08-08 15:04:43 -0700
commitb418cc876926be9532aa8ea868186aa92ed462a0 (patch)
tree6157be055e3b838af0c65f9b95824580b5ddc7e7 /gcc-4.8/ChangeLog.backported
parent34cef20a1108ff399ecbe13f42e1f6bc8c909b27 (diff)
downloadtoolchain_gcc-b418cc876926be9532aa8ea868186aa92ed462a0.tar.gz
toolchain_gcc-b418cc876926be9532aa8ea868186aa92ed462a0.tar.bz2
toolchain_gcc-b418cc876926be9532aa8ea868186aa92ed462a0.zip
[4.8] Backport diagnostic color support from trunk
Squashed commit of r197841, r197842, and r198332 from trunk. This is capable of coloring errors, warnings, notes, carets, locus', and/or quotes. Documentation for this feature may be found here: http://gcc.gnu.org/onlinedocs/gcc/Language-Independent-Options.html Change-Id: I14f2f852562d18fcef807583635e4e2ceee64829
Diffstat (limited to 'gcc-4.8/ChangeLog.backported')
-rw-r--r--gcc-4.8/ChangeLog.backported52
1 files changed, 52 insertions, 0 deletions
diff --git a/gcc-4.8/ChangeLog.backported b/gcc-4.8/ChangeLog.backported
index b6519d034..4e9462432 100644
--- a/gcc-4.8/ChangeLog.backported
+++ b/gcc-4.8/ChangeLog.backported
@@ -1,3 +1,55 @@
+http://gcc.gnu.org/viewcvs/gcc?view=rev&rev=198332
+2013-04-26 Jakub Jelinek <jakub@redhat.com>
+
+ * Makefile.in (toplev.o): Depend on diagnostic-color.h.
+ * diagnostic-color.c (should_colorize): Remove _WIN32 version.
+ (colorize_init): Add argument to _WIN32 version.
+ * toplev.c: Include diagnostic-color.h.
+ (process_options): Default to -fdiagnostics-color=auto if
+ GCC_COLORS env var is in the environment.
+ * common.opt (fdiagnostics-color=): Add Var and Init.
+ * doc/invoke.texi (-fdiagnostics-color=): Document that if
+ GCC_COLORS env var is in the environment, the default is auto
+ rather than never.
+
+ * diagnostic.h (file_name_as_prefix): Add context argument.
+ * diagnostic.c (file_name_as_prefix): Likewise. Colorize
+ the string as locus.
+ * langhooks.c (lhd_print_error_function): Adjust caller.
+
+http://gcc.gnu.org/viewcvs/gcc?view=rev&rev=197841
+http://gcc.gnu.org/viewcvs/gcc?view=rev&rev=197842
+2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
+ Jakub Jelinek <jakub@redhat.com>
+
+ * opts.c: Include diagnostic-color.h.
+ (common_handle_option): Handle OPT_fdiagnostics_color_.
+ * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
+ (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
+ (diagnostic-color.o): New.
+ * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
+ (diagnostic_color_rule): New enum.
+ * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
+ * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
+ the location string.
+ * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
+ either NULL, or color kind.
+ * diagnostic-color.c: New file.
+ * diagnostic-color.h: New file.
+ * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
+ arguments.
+ * doc/invoke.texi (-fdiagnostics-color): Document.
+ * pretty-print.h (pp_show_color): Define.
+ (struct pretty_print_info): Add show_color field.
+ * diagnostic.c: Include diagnostic-color.h.
+ (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
+ macros. Colorize error:, warning: etc. strings and also the location
+ string.
+ (diagnostic_show_locus): Colorize the caret line.
+ * pretty-print.c: Include diagnostic-color.h.
+ (pp_base_format): Handle %r and %R format specifiers. Colorize strings
+ inside of %< %> quotes or quoted through q format modifier.
+
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191571
2012-09-17 Jakub Jelinek <jakub@redhat.com>