On 21 Jan 2024 23:57, Mark Wielaard wrote: > 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 memory in m32c/gdb-if.c hmm, seems like we should change all sim_read/sim_write to use "addr" instead of "mem" to be more consistent with other core APIs. if you don't want to clean them all up, we should at least change the include/sim/sim.h header and adjust m32c to match to fix the warnings. -mike