grep-devel
[Top][All Lists]
Advanced

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

Re: FYI: by default, elide analyzer-related warning options


From: Paul Eggert
Subject: Re: FYI: by default, elide analyzer-related warning options
Date: Sat, 1 Jan 2022 15:51:26 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1

On 1/1/22 12:08, Jeffrey Walton wrote:
Shouldn't the litmus test be "bug free code"?

No, as that's not practical when developing real-world applications.

In practice, -fanalyzer is sooooo slow that it has significant adverse effects on ordinary development. Among other things, this can cause developers to do less testing, which hurts reliability. So it's reasonable to enable -fanalyzer only on request.

As Jim wrote, the case for -Wanalyzer-double-free and -Wanalyzer-use-after-free would be stronger if these options were finding real bugs in coreutils and grep. In practice, though, they're not doing that.

PS. If you want more-extensive checking, and even slooooooower builds, try -flto -fanalyzer.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]