diff options
author | Robin Dapp <rdapp@ventanamicro.com> | 2023-12-01 09:45:29 +0100 |
---|---|---|
committer | Robin Dapp <rdapp@ventanamicro.com> | 2023-12-04 16:24:19 +0100 |
commit | cdb34bf5dd10df967b7f72a502a48cc34e284ef0 (patch) | |
tree | 70d679405711f130ee765cf35565154041da6bac /gcc/cp/constexpr.cc | |
parent | 4ae5a7336ac8e1ba57ee1e885b5b76ed86cdbfd5 (diff) | |
download | gcc-cdb34bf5dd10df967b7f72a502a48cc34e284ef0.zip gcc-cdb34bf5dd10df967b7f72a502a48cc34e284ef0.tar.gz gcc-cdb34bf5dd10df967b7f72a502a48cc34e284ef0.tar.bz2 |
RISC-V: Fix rawmemchr implementation.
This fixes a bug in the rawmemchr implementation by incrementing the
source address by vl * element_size instead of just vl.
This is normally harmless as we will just scan the same region more than
once but, in combination with an older qemu version, will lead to
an execution failure in SPEC2017.
gcc/ChangeLog:
* config/riscv/riscv-string.cc (expand_rawmemchr): Increment
source address by vl * element_size.
Diffstat (limited to 'gcc/cp/constexpr.cc')
0 files changed, 0 insertions, 0 deletions