On 11/07/2020 01:58, Paul Eggert wrote:
On 7/10/20 2:21 PM, Pádraig Brady wrote:
I'd be inclined to not enable -fanalyzer by default.
At least not until it matures more.
-fanalyzer didn't find any actual issues in coreutils,
Yes, the only bug I found related to coreutils:
https://gmplib.org/list-archives/gmp-bugs/2020-July/004844.html
is a bug in library code that coreutils never triggers.
I'd be inclined to not enable -fanalyzer by default.
I installed the attached patch into coreutils; will that do? The basic idea is
that you get -fanalyzer only if you configure with the new
--enable-gcc-warnings=expensive option.
That's better, for coreutils at least.
It's good that you included all fanalyzer related options set by gnulib,
as that allows projects to more easily control those themselves.
thanks!
Pádraig