[Bug tree-optimization/117322] [14/15 Regression] Another spurios "may be used uninitialized" warning when using alloca.

2024-10-28 Thread akryuk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117322 --- Comment #2 from Anton Kryukov --- (In reply to Andrew Pinski from comment #1) > So adding: > if ((long)(len*4) <= 0) return; > > Fixes the warning. > > Looks like GCC does not realize len can't be too big to overflow. > > I am not 100%

[Bug c++/117322] New: Another spurios "may be used uninitialized" warning when using alloca.

2024-10-27 Thread akryuk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117322 Bug ID: 117322 Summary: Another spurios "may be used uninitialized" warning when using alloca. Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal