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

--- Comment #8 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:fbc542de1bcf2361b9a3b5d2e52efbd5388c83bf

commit r11-9493-gfbc542de1bcf2361b9a3b5d2e52efbd5388c83bf
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Tue Dec 28 17:41:24 2021 +0100

    fold-const: Fix up fold_truth_andor_1 shift handling [PR103813]

    Some time ago I've changed const_binop -> wide_int_binop, so that it punts
    on shifts by negative count.  fold_truth_andor_1 doesn't check the results
    of const_binop (?SHIFT_EXPR, ) though and assumes they will be always
    non-NULL, which is no longer the case.

    2021-12-28  Jakub Jelinek  <ja...@redhat.com>

            PR middle-end/103813
            * fold-const.c (fold_truth_andor_1): Punt of const_binop
LSHIFT_EXPR
            or RSHIFT_EXPR returns NULL.  Formatting fix.

            * gcc.c-torture/compile/pr103813.c: New test.

    (cherry picked from commit 9258ac53cfcbe546e8b86a433e59343538743f74)
  • [Bug middle-end/103813] [11 Reg... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to