binutils-gdb/include/sim
Mark Wielaard cbbcd7fd10 sim: Fix -Werror=shadow=local by changing mem to addr in sim_{read,write}
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.
2024-01-22 14:22:30 +01:00
..
callback.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
ChangeLog-2021 sim: rename ChangeLog files to ChangeLog-2021 2021-08-17 20:27:36 -04:00
sim-aarch64.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
sim-arm.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
sim-bfin.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
sim-cr16.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
sim-d10v.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
sim-frv.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
sim-ft32.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
sim-h8300.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
sim-lm32.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
sim-m32c.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
sim-ppc.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
sim-riscv.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
sim-rl78.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
sim-rx.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
sim-sh.h Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
sim.h sim: Fix -Werror=shadow=local by changing mem to addr in sim_{read,write} 2024-01-22 14:22:30 +01:00