https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103089
xantares09 at hotmail dot com changed:
What|Removed |Added
Resolution|--- |INVALID
Stat
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103089
--- Comment #2 from xantares09 at hotmail dot com ---
indeed, I assumed both were positive, I guess there's no bug then
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103089
--- Comment #1 from Andrew Pinski ---
If I add:
if (n <= 0 || m <= 0) __builtin_unreachable();
before the malloc, I get no warning.
I think the warning is correct if either n or m is negative.