This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/84034] incomplete warning message with dos line endings
- From: "bernd.edlinger at hotmail dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 25 Jan 2018 09:10:13 +0000
- Subject: [Bug middle-end/84034] incomplete warning message with dos line endings
- Auto-submitted: auto-generated
- References: <bug-84034-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84034
--- Comment #1 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
it is acutally a problem with the colorizer:
gcc -fdiagnostics-color=always -Wall -S test.c 2> xx
cat xx
test.c: In function ‘test’:
test.c:5:20: warning: suggest parentheses around ‘&&’ within ‘||’
[-Wparentheses]
~~~~~~~~~~~~~^~~
f)
~
cat xx|tr "\r" " "
test.c: In function ‘test’:
test.c:5:20: warning: suggest parentheses around ‘&&’ within ‘||’
[-Wparentheses]
(d && b > e) &&
~~~~~~~~~~~~~^~~
f)
~
so the missing line is quickly overprinted, because the color is swithed off
between CR and LF, by replacing CR with SPACE the print out looks correct.
How about replacing all CR with SPACE (like the TAB is also done IIRC)?