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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Sebor <mse...@gcc.gnu.org>:

https://gcc.gnu.org/g:f36a8168f04dfbde9d4c64421c1058975b28ff9a

commit r11-3162-gf36a8168f04dfbde9d4c64421c1058975b28ff9a
Author: Martin Sebor <mse...@redhat.com>
Date:   Fri Sep 11 09:40:45 2020 -0600

    Move/correct offset adjustment (PR middle-end/96903).

    Resolves:
    PR middle-end/96903 - bogus warning on memcpy at negative offset from array
end

    gcc/ChangeLog:

            PR middle-end/96903
            * builtins.c (compute_objsize): Remove incorrect offset adjustment.
            (compute_objsize): Adjust offset range here instead.

    gcc/testsuite/ChangeLog:

            PR middle-end/96903
            * gcc.dg/Wstringop-overflow-42.c:: Add comment.
            * gcc.dg/Wstringop-overflow-43.c: New test.

Reply via email to