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

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

https://gcc.gnu.org/g:6b815e113c9aec397a86d7194f66455eb189cc7a

commit r11-2646-g6b815e113c9aec397a86d7194f66455eb189cc7a
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Tue Aug 11 13:46:14 2020 +0200

    tree: Fix up get_narrower [PR96549]

    My changes to get_narrower to support COMPOUND_EXPRs apparently
    used a wrong type for the COMPOUND_EXPRs, while e.g. the rhs
    type was unsigned short, the COMPOUND_EXPR got int type as that was the
    original type of op.  The type of COMPOUND_EXPR should be always the type
    of the rhs.

    2020-08-11  Jakub Jelinek  <ja...@redhat.com>

            PR c/96549
            * tree.c (get_narrower): Use TREE_TYPE (ret) instead of
            TREE_TYPE (win) for COMPOUND_EXPRs.

            * gcc.c-torture/execute/pr96549.c: New test.

Reply via email to