https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125257
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Michal Jires <[email protected]>: https://gcc.gnu.org/g:5b0a666d525a24db376e9737a130fc4fdc1349ba commit r15-11384-g5b0a666d525a24db376e9737a130fc4fdc1349ba 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)
