aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-array-bounds.cc
diff options
context:
space:
mode:
authorSinan Lin <sinan@isrc.iscas.ac.cn>2021-03-04 18:02:39 +0800
committerKito Cheng <kito.cheng@sifive.com>2021-03-19 00:04:32 +0800
commitd9f0ade001533c9544bf2153b6baa8844ec0bee4 (patch)
tree8eecdce257f1dcb48988439276135d6880e48087 /gcc/gimple-array-bounds.cc
parent89d44a9f3b9ab97634b7ef894e2c83ebd83582a8 (diff)
downloadgcc-d9f0ade001533c9544bf2153b6baa8844ec0bee4.zip
gcc-d9f0ade001533c9544bf2153b6baa8844ec0bee4.tar.gz
gcc-d9f0ade001533c9544bf2153b6baa8844ec0bee4.tar.bz2
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 <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.
Diffstat (limited to 'gcc/gimple-array-bounds.cc')
0 files changed, 0 insertions, 0 deletions