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

--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:75ffef5c6fa4e6e9576285e0403c06728309ae3e

commit r16-1538-g75ffef5c6fa4e6e9576285e0403c06728309ae3e
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Tue Jun 17 13:20:11 2025 +0200

    crc: Fix up ICE from optimize_crc_loop [PR120677]

    The following testcase ICEs, because optimize_crc_loop inserts a call
    statement before labels instead of after labels.

    Fixed thusly (plus fixed other issues noticed around it).

    2025-06-17  Jakub Jelinek  <ja...@redhat.com>

            PR tree-optimization/120677
            * gimple-crc-optimization.cc (crc_optimization::optimize_crc_loop):
            Insert before gsi_after_labels instead of gsi_start_bb.  Use
            gimple_bb (output_crc) instead of output_crc->bb.  Formatting fix.

            * gcc.c-torture/execute/pr120677.c: New test.

Reply via email to