https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99314
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Kito Cheng <[email protected]>: https://gcc.gnu.org/g:d9f0ade001533c9544bf2153b6baa8844ec0bee4 commit r11-7720-gd9f0ade001533c9544bf2153b6baa8844ec0bee4 Author: Sinan Lin <[email protected]> Date: Thu Mar 4 18:02:39 2021 +0800 PR target/99314: Fix integer signedness issue for cpymem pattern expansion. Third operand of cpymem pattern is unsigned HOST_WIDE_INT, however we are interpret that as signed HOST_WIDE_INT, that not a problem in most case, but when the value is large than signed HOST_WIDE_INT, it might screw up since we have using that value to calculate the buffer size. 2021-03-05 Sinan Lin <[email protected]> Kito Cheng <[email protected]> gcc/ChangeLog: * config/riscv/riscv.c (riscv_block_move_straight): Change type to unsigned HOST_WIDE_INT for parameter and local variable with HOST_WIDE_INT type. (riscv_adjust_block_mem): Ditto. (riscv_block_move_loop): Ditto. (riscv_expand_block_move): Ditto.
