[Bug tree-optimization/98378] new valgrind error for ./gcc.c-torture/execute/pr60960.c

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Dec 19 11:48:20 GMT 2020


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

--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:9032d2b2414ed22e53a9980a51b835d3caf83c48

commit r11-6269-g9032d2b2414ed22e53a9980a51b835d3caf83c48
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Sat Dec 19 12:46:40 2020 +0100

    bswap: Fix up a thinko with empty CONSTRUCTORs [PR98378]

    The code I've added recently in find_bswap_or_nop for VECTOR CONSTRUCTORs
    is missing punt on an important case - namely empty CONSTRUCTORs, because
in that
    case the loop will not initialize *n and the code after the loop will then
    use the uninitialized structure.

    2020-12-19  Jakub Jelinek  <jakub@redhat.com>

            PR tree-optimization/98378
            * gimple-ssa-store-merging.c (find_bswap_or_nop): Punt if
CONSTRUCTOR
            has no elements.


More information about the Gcc-bugs mailing list