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 <sinan@isrc.iscas.ac.cn> Kito Cheng <kito.cheng@sifive.com> 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. (cherry picked from commit d9f0ade001533c9544bf2153b6baa8844ec0bee4)
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
constraints.md | Loading commit data... | |
elf.h | Loading commit data... | |
freebsd.h | Loading commit data... | |
generic.md | Loading commit data... | |
linux.h | Loading commit data... | |
multilib-generator | Loading commit data... | |
peephole.md | Loading commit data... | |
pic.md | Loading commit data... | |
predicates.md | Loading commit data... | |
riscv-builtins.c | Loading commit data... | |
riscv-c.c | Loading commit data... | |
riscv-cores.def | Loading commit data... | |
riscv-d.c | Loading commit data... | |
riscv-ftypes.def | Loading commit data... | |
riscv-modes.def | Loading commit data... | |
riscv-opts.h | Loading commit data... | |
riscv-passes.def | Loading commit data... | |
riscv-protos.h | Loading commit data... | |
riscv-shorten-memrefs.c | Loading commit data... | |
riscv-sr.c | Loading commit data... | |
riscv.c | Loading commit data... | |
riscv.h | Loading commit data... | |
riscv.md | Loading commit data... | |
riscv.opt | Loading commit data... | |
rtems.h | Loading commit data... | |
sifive-7.md | Loading commit data... | |
sync.md | Loading commit data... | |
t-elf-multilib | Loading commit data... | |
t-linux | Loading commit data... | |
t-linux-multilib | Loading commit data... | |
t-riscv | Loading commit data... | |
t-rtems | Loading commit data... | |
t-withmultilib | Loading commit data... | |
t-withmultilib-generator | Loading commit data... | |
withmultilib.h | Loading commit data... |