Re: Diagnostic format of warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/10/20 5:51 AM, Licht, Martin via Gcc-help wrote:
Hello,

I have got a question regarding diagnostic output in GCC.

It seems that some diagnostic messages receive a color markup on my shell whereas others don't. For example, the word "warning" is purple for -Wfloat-equal whereas for -Winline it is not.

My guess is that some warnings happen before code generation (such as -Wfloat-equal) whereas other warnings happen after code generation (such as -Winline) and thus are treated differently.

I am wondering that is the intentional default on the GCC. It seems rather arbitrary to use such different formats for warnings.

Diagnostics should be colorized regardless of when they are issued
(by the front end, during optimization, or expansion). I think I've
seen them lose color in older versions of GCC and during LTO but
I think that was fixed.  If it persists with newer versions of GCC
or happens under some other conditions we would need to see a test
case that reproduces it to say much more.

Martin



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux