re PR middle-end/84034 (incomplete warning message with dos line endings)
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Sat, 27 Jan 2018 06:44:25 +0000 (06:44 +0000)
committerBernd Edlinger <edlinger@gcc.gnu.org>
Sat, 27 Jan 2018 06:44:25 +0000 (06:44 +0000)
commitd76ba10db121e71a7a668b40df259a2893086da3
treeed14e17cec1e85b5ba3fec361e74caed47eff2ea
parent0f06be5a06718ce7b670f4ffe9f971a830381757
re PR middle-end/84034 (incomplete warning message with dos line endings)

2018-01-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR diagnostic/84034
        * diagnostic-show-locus.c (get_line_width_without_trailing_whitespace):
        Handle CR like TAB.
        (layout::print_source_line): Likewise.
        (test_get_line_width_without_trailing_whitespace): Add test cases.

From-SVN: r257120
gcc/ChangeLog
gcc/diagnostic-show-locus.c