binutils-gdb/sim/cr16
Mark Wielaard 865e469c60 sim: Fix cc -Werror=shadow=local in cr16/simops.c
include/opcode/cr16.h defines cc as an enum value, which causes GCC 14
to warn

sim/cr16/simops.c: In function ‘cond_stat’:
sim/cr16/simops.c:138:26: error: declaration of ‘cc’ shadows a previous local [-Werror=shadow=local]
  138 | static int cond_stat(int cc)
      |                      ~~~~^~
In file included from ../../binutils-gdb/sim/cr16/cr16-sim.h:26,
                 from ../../binutils-gdb/sim/cr16/simops.c:39:
sim/../include/opcode/cr16.h:149:3: note: shadowed declaration is here
  149 |   cc,
      |   ^~

Fix this by renaming cc in cr16/simops.c to cond.
2024-01-22 12:04:49 +01:00
..
ChangeLog-2021
cr16-sim.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
gencode.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
interp.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
local.mk Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-main.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
simops.c sim: Fix cc -Werror=shadow=local in cr16/simops.c 2024-01-22 12:04:49 +01:00