binutils-gdb/sim
Tom Tromey 888a2e22a8 Fix d10v sim build with GCC 15
The d10v sim fails when built with GCC 15.  From the bug:

d10v/table.c:171:17: error: initialization of ‘void (*)(struct sim_state *, SIM_CPU *)’ {aka ‘void (*)(struct sim_state *, struct _sim_cpu *)’} from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types]
  171 | { 0,0,0,0,0,0,0,(void (*)())0,0,{0,0,0}},
      |                 ^
d10v/table.c:171:17: note: (near initialization for ‘Simops[165].func’)

The bug here is that this is the wrong function pointer type.  Since
'0' is perfectly fine here, this patch simply removes the cast.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32900
Approved-By: Tom de Vries <tdevries@suse.de>
2025-04-25 14:38:11 -06:00
..
aarch64 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
avr Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
bfin Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
bpf Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
common Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
cr16 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
cris Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
d10v Fix d10v sim build with GCC 15 2025-04-25 14:38:11 -06:00
erc32 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
example-synacor Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
frv Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
ft32 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
h8300 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
igen Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
iq2000 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
lm32 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
m4 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
m32c Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
m32r Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
m68hc11 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
mcore Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
microblaze Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
mips Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
mn10300 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
moxie Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
msp430 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
or1k Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
ppc Use correct type for saved signal handler 2024-12-16 13:16:04 -07:00
pru Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
riscv Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
rl78 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
rx Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
sh Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
testsuite Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
v850 Update copyright dates to include 2025 2025-04-08 10:54:39 -06: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 Delete the ARM sub-directory of the SIM directory. 2025-03-25 13:30:32 +00:00
configure.ac Delete the ARM sub-directory of the SIM directory. 2025-03-25 13:30:32 +00: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 dates to include 2025 2025-04-08 10:54:39 -06:00
Makefile.in sim: fix Makefile.in copyright dates 2025-04-09 10:03:27 -04:00
README-HACKING sim: build: delete Make-common.in logic 2023-01-13 17:34:53 -05:00