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

--- Comment #13 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Filip Kastl <phe...@gcc.gnu.org>:

https://gcc.gnu.org/g:358a5aedf2b5b61f4edfc7964144355a4897dbb9

commit r16-513-g358a5aedf2b5b61f4edfc7964144355a4897dbb9
Author: Filip Kastl <fka...@suse.cz>
Date:   Sat May 10 16:18:33 2025 +0200

    gimple: Don't assert that switch has nondefault cases during lowering
[PR120080]

    I have mistakenly assumed that switch lowering cannot encounter a switch
    with zero clusters.  This patch removes the relevant assert and instead
    gives up bit-test lowering when this happens.

            PR tree-optimization/120080

    gcc/ChangeLog:

            * tree-switch-conversion.cc (bit_test_cluster::find_bit_tests):
            Replace assert with return.

    gcc/testsuite/ChangeLog:

            * gcc.dg/tree-ssa/pr120080.c: New test.

    Signed-off-by: Filip Kastl <fka...@suse.cz>

Reply via email to