]> git.ipfire.org Git - thirdparty/gcc.git/commit
Colorize %L and %C text to match diagnostic_show_locus (PR fortran/91426)
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Sep 2019 19:32:44 +0000 (19:32 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Sep 2019 19:32:44 +0000 (19:32 +0000)
commit3770798685c6b254d8424431c477c1faed72e6bc
tree9c982d5d3ca7868104c59fbad0c96cbeb8e422df
parentf2e61afa97856a6c96f6093c13f74e447084be3a
Colorize %L and %C text to match diagnostic_show_locus (PR fortran/91426)

gcc/fortran/ChangeLog:
PR fortran/91426
* error.c (curr_diagnostic): New static variable.
(gfc_report_diagnostic): New static function.
(gfc_warning): Replace call to diagnostic_report_diagnostic with
call to gfc_report_diagnostic.
(gfc_format_decoder): Colorize the text of %L and %C to match the
colorization used by diagnostic_show_locus.
(gfc_warning_now_at): Replace call to diagnostic_report_diagnostic with
call to gfc_report_diagnostic.
(gfc_warning_now): Likewise.
(gfc_warning_internal): Likewise.
(gfc_error_now): Likewise.
(gfc_fatal_error): Likewise.
(gfc_error_opt): Likewise.
(gfc_internal_error): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@276132 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/error.c