mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2026-08-27 00:26:02 -04:00
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.
|
||
|---|---|---|
| .. | ||
| callback.h | ||
| ChangeLog-2021 | ||
| sim-aarch64.h | ||
| sim-arm.h | ||
| sim-bfin.h | ||
| sim-cr16.h | ||
| sim-d10v.h | ||
| sim-frv.h | ||
| sim-ft32.h | ||
| sim-h8300.h | ||
| sim-lm32.h | ||
| sim-m32c.h | ||
| sim-ppc.h | ||
| sim-riscv.h | ||
| sim-rl78.h | ||
| sim-rx.h | ||
| sim-sh.h | ||
| sim.h | ||