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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[14 Regression] off by one  |off by one when loop
                   |when loop unrolling and     |unrolling and bogus
                   |bogus -Wstringop-overflow   |-Wstringop-overflow

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note I don't think the warning is not incorrect. Nor I don't think unrolling by
3 is wrong either. 

Note num can change after the call to get_val() too. The loop bound is unknown
due to the function call really and num being a global variable.

Anyways I think this is really a dup of bug 104789 .

Reply via email to