mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-03 04:12:10 +08:00
cbbcd7fd10
m32c/cpu.h defines mem as enum value, which causes GCC 14 to emit sim/m32c/gdb-if.c: In function ‘sim_read’: sim/m32c/gdb-if.c:162:33: error: declaration of ‘mem’ shadows a previous local [-Werror=shadow=local] 162 | sim_read (SIM_DESC sd, uint64_t mem, void *buf, uint64_t length) | ~~~~~~~~~^~~ In file included from ../../binutils-gdb/sim/m32c/gdb-if.c:38: sim/m32c/cpu.h:83:3: note: shadowed declaration is here 83 | mem, | ^~~ Fix this by renaming mem to addr in all sim_read and sim_write functions. Most already used addr instead of mem. In one file, sim/rx/gdb-if.c, this also meant renaming the local addr variable to vma. |
||
---|---|---|
.. | ||
ChangeLog-2021 | ||
cpu.h | ||
gdb-if.c | ||
int.c | ||
int.h | ||
load.c | ||
load.h | ||
local.mk | ||
m32c.opc | ||
main.c | ||
mem.c | ||
mem.h | ||
misc.c | ||
misc.h | ||
opc2c.c | ||
r8c.opc | ||
reg.c | ||
srcdest.c | ||
syscalls.c | ||
syscalls.h | ||
timer_a.h | ||
trace.c | ||
trace.h |