https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125977
--- Comment #13 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by H.J. Lu <[email protected]>: https://gcc.gnu.org/g:cbc56384029c9224280b0a1018fb9502797f243d commit r17-1917-gcbc56384029c9224280b0a1018fb9502797f243d Author: H.J. Lu <[email protected]> Date: Fri Jun 26 08:43:20 2026 +0800 determine_block_size: Set len_rtx to min size if min size == max size Update determine_block_size to set len_rtx to min size if min size == max size. gcc/ PR middle-end/125977 * builtins.cc (determine_block_size): Change len_rtx to reference and set it to min size if min size == max size. * expr.cc (emit_block_move_via_pattern): Assert count == min_size if min_size == max_size. (set_storage_via_setmem): Likewise. gcc/testsuite/ PR middle-end/125977 * g++.dg/pr125977.C: New test. Signed-off-by: H.J. Lu <[email protected]>
