This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Fortran, Patch, committed] Fix coloring of : in diagnostic messages
- From: Tobias Burnus <burnus at net-b dot de>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>, gfortran <fortran at gcc dot gnu dot org>
- Date: Sun, 23 Nov 2014 21:37:19 +0100
- Subject: [Fortran, Patch, committed] Fix coloring of : in diagnostic messages
- Authentication-results: sourceware.org; auth=none
In C etc., the colon is colored the same way as the preceeding word
("warning:"), in Fortran, it wasn't.
Fixed as obvious; committed as Rev. 217986.
Tobias
Index: gcc/fortran/ChangeLog
===================================================================
--- gcc/fortran/ChangeLog (Revision 217985)
+++ gcc/fortran/ChangeLog (Arbeitskopie)
@@ -1,4 +1,9 @@
2014-11-23 Tobias Burnus <burnus@net-b.de>
+
+ * error.c (gfc_diagnostic_build_prefix): Correct coloring
+ of the colon of the prefix.
+
+2014-11-23 Tobias Burnus <burnus@net-b.de>
Manuel López-Ibáñez <manu@gcc.gnu.org>
* gfortran.h (gfc_option_t): Remove warn_tabs.
Index: gcc/fortran/error.c
===================================================================
--- gcc/fortran/error.c (Revision 217985)
+++ gcc/fortran/error.c (Arbeitskopie)
@@ -1021,7 +1021,7 @@ gfc_diagnostic_build_prefix (diagnostic_context *c
diagnostic_kind_color[diagnostic->kind]);
text_ce = colorize_stop (pp_show_color (pp));
}
- return build_message_string ("%s%s%s: ", text_cs, text, text_ce);
+ return build_message_string ("%s%s:%s ", text_cs, text, text_ce);
}
/* Return a malloc'd string describing a location. The caller is