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

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

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

commit r11-10081-gf6b3ea602441ee870b6dd40cf8fa80fba127d99c
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Sat Jun 18 11:07:13 2022 +0200

    varasm: Fix up ICE in narrowing_initializer_constant_valid_p [PR105998]

    The following testcase ICEs because there is NON_LVALUE_EXPR (location
    wrapper) around a VAR_DECL and has TYPE_MODE V2SImode and
    SCALAR_INT_TYPE_MODE on that ICEs.  Or for -m32 -march=i386 TYPE_MODE
    is DImode, but SCALAR_INT_TYPE_MODE still uses the raw V2SImode and ICEs
    too.

    2022-06-18  Jakub Jelinek  <ja...@redhat.com>

            PR middle-end/105998
            * varasm.c (narrowing_initializer_constant_valid_p): Check
            SCALAR_INT_MODE_P instead of INTEGRAL_MODE_P, also break on
            ! INTEGRAL_TYPE_P and do the same check also on op{0,1}'s type.

            * c-c++-common/pr105998.c: New test.

    (cherry picked from commit ef662120177d39af5f88ffc622d90bb6ae0ca1d3)

Reply via email to