https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85783

--- Comment #4 from Paul Smith <psmith at gnu dot org> ---
Well, clearly I disagree with this conclusion and feel this is a bug.

At the very least, the fact that it's impossible to disable the warning needs
to be considered a bug.  The statement on the mailing list from Martin Sebor
was:

> -Walloc-size-larger-than, like most (all?) other middle-end
> warnings, is designed to trigger only for calls that truly have
> an argument in excess of the limit.  Unlike -Wmaybe-uninitialized,
> it is not intended to diagnose case where the argument may but
> need not be excessive (i.e., it's not expected to have false
> positives, and I don't think it is particularly prone to them).

If this WONTFIX resolution means that we are not going to fix known false
positives for this warning, then IMO the above description of the situation is
not accurate and we should add the ability to disable the warning.

Reply via email to