RISC-V: fix build after "Add support for arbitrary immediate encoding formats"
authorJan Beulich <jbeulich@suse.com>
Fri, 30 Sep 2022 09:43:59 +0000 (11:43 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 30 Sep 2022 09:43:59 +0000 (11:43 +0200)
commitb0423163b808c463fe35e861471f80123f0b309f
treecf356bb6f5e89dcbe4a82882fa5ba119d55ae768
parent3bf4994276269a241d97f8ccb5171fe581baa4cb
RISC-V: fix build after "Add support for arbitrary immediate encoding formats"

Pre- and post-increment/decrement are side effects, the behavior of
which is undefined when combined with passing an address of the accessed
variable in the same function invocation. There's no need for the
increments here - simply adding 1 achieves the intended effect without
triggering compiler diagnostics (which are fatal with -Werror).
gas/config/tc-riscv.c
opcodes/riscv-dis.c