[Bug middle-end/71693] [4.9/5 Regression] ICE: verify_gimple failed (type mismatch in shift expression, -O0, -O1, -O2, -O3)

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jun 30 09:09:00 GMT 2016


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

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Jun 30 09:08:32 2016
New Revision: 237877

URL: https://gcc.gnu.org/viewcvs?rev=237877&root=gcc&view=rev
Log:
        PR middle-end/71693
        * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
        TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
        first when permuting bitwise operation with rotate.  Cast
        TREE_OPERAND (arg0, 0) to type when cancelling two rotations.

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

Added:
    branches/gcc-5-branch/gcc/testsuite/gcc.c-torture/compile/pr71693.c
Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/fold-const.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list