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

--- 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:d367f5fcb579d21c3093cf5c464f5787fe584a1d

commit r11-2743-gd367f5fcb579d21c3093cf5c464f5787fe584a1d
Author: Martin Sebor <mse...@redhat.com>
Date:   Tue Aug 18 12:57:18 2020 -0600

    PR middle-end/96665 - memcmp of a constant string not folded

    Related:
    PR middle-end/78257 - missing memcmp optimization with constant arrays

    gcc/ChangeLog:

            PR middle-end/96665
            PR middle-end/78257
            * expr.c (convert_to_bytes): Replace statically allocated buffer
with
            a dynamically allocated one of sufficient size.

    gcc/testsuite/ChangeLog:

            PR middle-end/96665
            PR middle-end/78257
            * gcc.dg/memcmp-5.c: New test.

Reply via email to