[Bug tree-optimization/89689] [8/9/10 regression] false warning -Wstringop-overflow=

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jan 29 19:27:00 GMT 2020


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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jeff Law <law@gcc.gnu.org>:

https://gcc.gnu.org/g:0de349f108d963219bd59aa374a68c15355236be

commit r10-6332-g0de349f108d963219bd59aa374a68c15355236be
Author: Jeff Law <law@redhat.com>
Date:   Wed Jan 29 12:23:53 2020 -0700

    Improve DSE which in turn eliminates the need for jump threading and block
duplication for the original testcase in pr89689 which in turn eliminates the
false positive -Warray-bounds warning for the original testcase.

        PR tree-optimization/89689
        * builtins.def (BUILT_IN_OBJECT_SIZE): Make it const rather than pure.

        PR tree-optimization/89689
        * gcc.dg/pr89689.c: New test.


More information about the Gcc-bugs mailing list