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

--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Richard Biener
<rgue...@gcc.gnu.org>:

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

commit r10-10594-gfa26d65dfb41e527bd0db3af3ec2a6ac052019f4
Author: Richard Biener <rguent...@suse.de>
Date:   Mon Feb 7 09:31:07 2022 +0100

    middle-end/104402 - split out _Complex compares from COND_EXPRs

    This makes sure we always have a _Complex compare split to a
    different stmt for the compare operand in a COND_EXPR on GIMPLE.
    Complex lowering doesn't handle this and the change is something
    we want for all kind of compares at some point.

    2022-02-07  Richard Biener  <rguent...@suse.de>

            PR middle-end/104402
            * gimple-expr.c (is_gimple_condexpr): _Complex typed
            compares are not valid.
            * tree-cfg.c (verify_gimple_assign_ternary): For COND_EXPR
            check is_gimple_condexpr.

            * gcc.dg/torture/pr104402.c: New testcase.

    (cherry picked from commit 70430001b74d0f67386a6b3642c857b3389cd5d0)

Reply via email to