Re: Is it time to take the middle-end stringop/array warnings out of -Wall?

Jeffrey Law via Gcc <[email protected]>
Newsgroups gmane.comp.gcc.devel
Message-ID <[email protected]>

On 5/20/2026 11:18 AM, Andrew Pinski wrote:
> On Wed, May 20, 2026 at 7:30 AM Jonathan Wakely via Gcc <[email protected]> wrote:
>> The false positive rate has been unacceptably high for years, with
>> very little progress on reducing that rate.
> With the introduction of predictively devirtualization that can
> include more than one candidate, the warnings are way too late. and
> have become useless.
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122197 is one example (it
> blocks a few others too).
>
> So either we start marking whole sections not to warn (while inlining)
> or we disable the warnings.
> Since I don't see an easy solution to mark while inining, I vote for
> removing them from -Wall (and NOT adding them to -Wextra).
I'd tend to prefer moving to -Wextra.  Though I suspect they'll bitrot 
over time in there :(  I've seen them find real issues, but I think it's 
reasonably clear that they're causing more pain than they're solving.

Jeff
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.