[Bug middle-end/84034] [6/7/8 Regression] incomplete warning message with dos line endings

2018-01-26 Thread edlinger at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84034

--- Comment #3 from Bernd Edlinger  ---
Author: edlinger
Date: Sat Jan 27 06:44:25 2018
New Revision: 257120

URL: https://gcc.gnu.org/viewcvs?rev=257120=gcc=rev
Log:
2018-01-27  Bernd Edlinger  

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.

Modified:
trunk/gcc/ChangeLog
trunk/gcc/diagnostic-show-locus.c

[Bug middle-end/84034] [6/7/8 Regression] incomplete warning message with dos line endings

2018-01-26 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84034

David Malcolm  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2018-01-26
 CC||dmalcolm at gcc dot gnu.org
Summary|incomplete warning message  |[6/7/8 Regression]
   |with dos line endings   |incomplete warning message
   ||with dos line endings
 Ever confirmed|0   |1

--- Comment #2 from David Malcolm  ---
Confirmed.  gcc 6, 7 and 8 are affected; gcc 5 is not affected.