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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[6/7/8/9 Regression] Bad    |[6/7 Regression] Bad code
                   |code for masked operations  |for masked operations
                   |involving signed ints       |involving signed ints

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed for 8.3+ so far.

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Oct 12 14:54:34 2018
New Revision: 265111

URL: https://gcc.gnu.org/viewcvs?rev=265111&root=gcc&view=rev
Log:
        Backported from mainline
        2018-09-12  Jakub Jelinek  <ja...@redhat.com>

        PR middle-end/87248
        * fold-const.c (fold_ternary_loc) <case COND_EXPR>: Verify also that
        BIT_AND_EXPR's second operand is a power of two.  Formatting fix.

        * c-c++-common/torture/pr87248.c: New test.

Added:
    branches/gcc-7-branch/gcc/testsuite/c-c++-common/torture/pr87248.c
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/fold-const.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog

Reply via email to