binutils-gdb/sim
Andrew Burgess 1be79b1ebf sim/lm32: fix some missing function declaration warnings
In the lm32 simulator, I was seeing some warnings about missing
function declarations.

The lm32 simulator has a weird header structure, in order to pull in
the full cpu.h header we need to define WANT_CPU_LM32BF.  This is done
in some files, but not in others.  Critically, it's not done in some
files that then use functions declared in cpu.h

In this commit I added the missing #define so that the full cpu.h can
be included.

After doing this there are still a few functions that are used
undeclared, these functions appear to be missing any declarations at
all, so I've added some to cpu.h.

With this done all the warnings when compiling lm32 are resolved for
both gcc and clang, so I've removed the SIM_WERROR_CFLAGS line from
Makefile.in, this allows lm32 to build with -Werror.
2022-10-24 17:24:29 +01:00
..
aarch64 sim/aarch64: remove two unused functions 2022-10-24 17:20:29 +01:00
arm sim: fixes for libopcodes styled disassembler 2022-04-04 22:41:24 +01:00
avr Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
bfin sim: remove use of PTR 2022-05-13 14:32:54 +09:30
bpf sim: gdbinit: hoist setup to common code 2022-02-21 13:57:33 -05:00
common sim/cgen: mask uninitialized variable warning in cgen-run.c 2022-10-19 14:32:21 +01:00
cr16 Don't use BFD_VMA_FMT in gdb and sim 2022-08-06 08:03:16 +09:30
cris sim/cris: Add ATTRIBUTE_PRINTF 2022-10-11 15:18:14 +01:00
d10v Don't use BFD_VMA_FMT in gdb and sim 2022-08-06 08:03:16 +09:30
erc32 sim/erc32: avoid dereferencing type-punned pointer warnings 2022-10-19 14:32:22 +01:00
example-synacor sim: synacor: migrate to standard uintXX_t types 2022-01-06 01:17:38 -05:00
frv sim: remove use of PTR 2022-05-13 14:32:54 +09:30
ft32 Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
h8300 sim/h8300: avoid self assignment 2022-10-24 17:23:47 +01:00
igen sim: igen: migrate to standard uintXX_t types 2022-01-06 01:17:38 -05:00
iq2000 sim/iq2000: silence pointer-sign warnings 2022-10-19 14:32:22 +01:00
lm32 sim/lm32: fix some missing function declaration warnings 2022-10-24 17:24:29 +01:00
m4 sim: Link ZSTD_LIBS 2022-09-27 11:42:32 -07:00
m32c sim/m32c: Add ATTRIBUTE_PRINTF 2022-10-11 15:18:14 +01:00
m32r sim: remove use of PTR 2022-05-13 14:32:54 +09:30
m68hc11 sim/m68hc11: Add ATTRIBUTE_PRINTF 2022-10-11 15:18:14 +01:00
mcore Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
microblaze Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
mips sim: mips/ppc/riscv: re-add AC_CANONICAL_SYSTEM [PR sim/29439] 2022-10-23 22:51:17 +05:45
mn10300 sim: gdbinit: hoist setup to common code 2022-02-21 13:57:33 -05:00
moxie sim/moxie: add custom directory stamp rule 2022-10-11 11:22:14 +01:00
msp430 sim: msp430: migrate to standard uintXX_t types 2022-01-06 01:17:38 -05:00
or1k sim: gdbinit: hoist setup to common code 2022-02-21 13:57:33 -05:00
ppc sim/ppc: fix for operator precedence warning from clang 2022-10-24 17:19:04 +01:00
pru Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
riscv sim: mips/ppc/riscv: re-add AC_CANONICAL_SYSTEM [PR sim/29439] 2022-10-23 22:51:17 +05:45
rl78 sim/rl78: Add ATTRIBUTE_PRINTF 2022-10-11 15:18:14 +01:00
rx Don't use BFD_VMA_FMT in gdb and sim 2022-08-06 08:03:16 +09:30
sh sim/sh: use fabs instead of abs 2022-10-24 17:00:49 +01:00
testsuite sim: testsuite: update ignored .exp files [PR sim/29596] 2022-10-24 01:28:15 +05:45
v850 Fix for v850e divq instruction 2022-04-06 11:10:40 -04:00
.gitignore sim: drop unused gentmap & nltvals.def logic 2021-11-28 13:24:00 -05:00
aclocal.m4 sim: Link ZSTD_LIBS 2022-09-27 11:42:32 -07:00
arch-subdir.mk.in sim: Remove unused CXXFLAGS substitution 2022-10-21 01:10:03 +00:00
ChangeLog-2021 sim: rename ChangeLog files to ChangeLog-2021 2021-08-17 20:27:36 -04:00
config.h.in sim: Check known getopt definition existence 2022-10-11 15:18:14 +01:00
configure sim: Check known getopt definition existence 2022-10-11 15:18:14 +01:00
configure.ac sim: Check known getopt definition existence 2022-10-11 15:18:14 +01: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 Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
Makefile.in sim: testsuite: update ignored .exp files [PR sim/29596] 2022-10-24 01:28:15 +05:45
README-HACKING sim: nltvals: pull target syscalls out into a dedicated source file 2021-11-28 13:23:57 -05:00