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)?

Reply via email to