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

--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-16 branch has been updated by Michal Jires
<[email protected]>:

https://gcc.gnu.org/g:7d496f40df424f19e4591c40e70edfd76df0efed

commit r16-9300-g7d496f40df424f19e4591c40e70edfd76df0efed
Author: Michal Jires <[email protected]>
Date:   Mon May 11 21:11:10 2026 +0200

    lto: Fix cache partitioning to handle min_partition_size=0

    Cache partitioning asserts that {min,max}_partition_size parameter
    cannot be 0 to prevent later divisions by zero. This is needlessly
    strict, we can clamp the value to 1 to get reasonable/expected behavior.

            PR lto/125257

    gcc/lto/ChangeLog:

            * lto-partition.cc: Handle min/max_partition_size = 0 for
            cache partitioning.

    gcc/testsuite/ChangeLog:

            * gcc.dg/lto/pr125257_0.c: New test.

    (cherry picked from commit 6a3f305b298438091ef45f92553618d92a47f8dd)

Reply via email to