binutils-gdb/sim
Mike Frysinger 8fed036bef sim: frv: fix -Wincompatible-function-pointer-types warnings [PR sim/29752]
Some compilers warn in the frv code:
sem.c:24343:41: error: incompatible function pointer types passing
  'void (SIM_CPU *, UINT, UDI)' (aka 'void (struct _sim_cpu *, unsigned int, unsigned long)')
  to parameter of type
  'void (*)(SIM_CPU *, UINT, DI)' (aka 'void (*)(struct _sim_cpu *, unsigned int, long)') [-Wincompatible-function-pointer-types]

This is due to frvbf_h_acc40U_set using UDI for setting the new value,
but using the common sim_queue_fn_di_write API which uses DI.  The same
size, but different sign.  We could change frvbf_h_acc40U_set to take a
DI without changing behavior in practice: the UDI is already passed via
the queue function which accepts a DI, and frvbf_h_acc40U_set already
casts the input to UDI before running any operations on it.  However,
these files are all generated, so manual changes here would be reverted.

Seems like we can only change the register type for all APIs in the cpu
definition.  This builds cleanly, and passes sim unittests.  Not sure if
it's 100% the answer, but seems to be the best we have currently.

Bug: https://sourceware.org/PR29752
2024-01-22 20:12:08 -05:00
..
aarch64 sim: Fix some -Werror=shadow=compatible-local issues in aarch64/simulator.c 2024-01-22 12:10:23 +01:00
arm Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
avr Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
bfin Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
bpf Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
common sim: Fix -Werror=shadow=local by changing mem to addr in sim_{read,write} 2024-01-22 14:22:30 +01:00
cr16 sim: Fix cc -Werror=shadow=local in cr16/simops.c 2024-01-22 12:04:49 +01:00
cris Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
d10v Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
erc32 sim: Fix -Werror=shadow=local by changing mem to addr in sim_{read,write} 2024-01-22 14:22:30 +01:00
example-synacor Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
frv sim: frv: fix -Wincompatible-function-pointer-types warnings [PR sim/29752] 2024-01-22 20:12:08 -05:00
ft32 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
h8300 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
igen Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
iq2000 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
lm32 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
m4 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
m32c sim: Fix -Werror=shadow=local by changing mem to addr in sim_{read,write} 2024-01-22 14:22:30 +01:00
m32r Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
m68hc11 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
mcore Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
microblaze Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
mips Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
mn10300 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
moxie Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
msp430 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
or1k Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
ppc sim: Fix -Werror=shadow=local by changing mem to addr in sim_{read,write} 2024-01-22 14:22:30 +01:00
pru Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
riscv Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
rl78 sim: Fix -Werror=shadow=local by changing mem to addr in sim_{read,write} 2024-01-22 14:22:30 +01:00
rx sim: Fix -Werror=shadow=local by changing mem to addr in sim_{read,write} 2024-01-22 14:22:30 +01:00
sh Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
testsuite sim: Fix compile errors 2024-01-12 21:48:25 +02:00
v850 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
.gitignore sim: drop unused gentmap & nltvals.def logic 2021-11-28 13:24:00 -05:00
aclocal.m4 sim: smp: make option available again 2022-12-25 02:13:30 -05:00
ChangeLog-2021 sim: rename ChangeLog files to ChangeLog-2021 2021-08-17 20:27:36 -04:00
config.h.in sim: m32r: fixup some of the int<->pointer casts 2024-01-10 22:37:03 -05:00
configure sim: m32r: fixup some of the int<->pointer casts 2024-01-10 22:37:03 -05:00
configure.ac sim: build: switch to gdbsupport/libiberty.m4 2024-01-10 19:53:10 -05:00
COPYING sim: clarify license text via COPYING file 2021-11-06 01:44:06 -04:00
gdbinit.in sim: gdbinit: hoist setup to common code 2022-02-21 13:57:33 -05:00
MAINTAINERS sim: Update mailing list address 2022-09-01 10:15:09 -04:00
Makefile.am Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
Makefile.in sim: frv: fix -Wincompatible-function-pointer-types warnings [PR sim/29752] 2024-01-22 20:12:08 -05:00
README-HACKING sim: build: delete Make-common.in logic 2023-01-13 17:34:53 -05:00