binutils-gdb/sim
Jan-Benedict Glaw 8b1a24e546 sim/aarch64: Fix aarch64_get_CPSR_bits() declaration
Noticed while doing mass builds with a very recent GCC:

/usr/lib/gcc-snapshot/bin/gcc  -DHAVE_CONFIG_H   -DWITH_HW=1 -DHAVE_DV_SOCKSER -DDEFAULT_INLINE=0 -Wall -Wdeclaration-after-statement -Wpointer-arith -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter -Wno-error=maybe-uninitialized -Wmissing-declarations -Wmissing-prototypes -Wdeclaration-after-statement -Wmissing-parameter-type -Wpointer-sign -Wold-style-declaration -Werror  -I. -I/var/lib/laminar/run/gdb-aarch64-elf/1/binutils-gdb/sim/aarch64 -I../common -I/var/lib/laminar/run/gdb-aarch64-elf/1/binutils-gdb/sim/aarch64/../common -I../../include -I/var/lib/laminar/run/gdb-aarch64-elf/1/binutils-gdb/sim/aarch64/../../include -I../../bfd -I/var/lib/laminar/run/gdb-aarch64-elf/1/binutils-gdb/sim/aarch64/../../bfd -I../../opcodes -I/var/lib/laminar/run/gdb-aarch64-elf/1/binutils-gdb/sim/aarch64/../../opcodes -I../..  -I/var/lib/laminar/run/gdb-aarch64-elf/1/binutils-gdb/sim/aarch64/../../gnulib/import -I../../gnulib/import  -g -O2   -c -o cpustate.o -MT cpustate.o -MMD -MP -MF .deps/cpustate.Tpo cpustate.c
cpustate.c:270:1: error: conflicting types for 'aarch64_get_CPSR_bits' due to enum/integer mismatch; have 'uint32_t(sim_cpu *, FlagMask)' {aka 'unsigned int(struct _sim_cpu *, FlagMask)'} [-Werror=enum-int-mismatch]
  270 | aarch64_get_CPSR_bits (sim_cpu *cpu, FlagMask mask)
      | ^~~~~~~~~~~~~~~~~~~~~
In file included from sim-main.h:30,
                 from cpustate.c:28:
cpustate.h:310:20: note: previous declaration of 'aarch64_get_CPSR_bits' with type 'uint32_t(sim_cpu *, uint32_t)' {aka 'unsigned int(struct _sim_cpu *, unsigned int)'}
  310 | extern uint32_t    aarch64_get_CPSR_bits  (sim_cpu *, uint32_t);
      |                    ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
2022-08-25 18:35:59 +02:00
..
aarch64 sim/aarch64: Fix aarch64_get_CPSR_bits() declaration 2022-08-25 18:35:59 +02:00
arm
avr
bfin
bpf
common Don't use BFD_VMA_FMT in gdb and sim 2022-08-06 08:03:16 +09:30
cr16 Don't use BFD_VMA_FMT in gdb and sim 2022-08-06 08:03:16 +09:30
cris Don't use BFD_VMA_FMT in gdb and sim 2022-08-06 08:03:16 +09:30
d10v Don't use BFD_VMA_FMT in gdb and sim 2022-08-06 08:03:16 +09:30
erc32 Don't use BFD_VMA_FMT in gdb and sim 2022-08-06 08:03:16 +09:30
example-synacor
frv
ft32
h8300
igen
iq2000
lm32
m4
m32c Don't use BFD_VMA_FMT in gdb and sim 2022-08-06 08:03:16 +09:30
m32r
m68hc11
mcore
microblaze
mips
mn10300
moxie
msp430
or1k
ppc
pru
riscv
rl78 Don't use BFD_VMA_FMT in gdb and sim 2022-08-06 08:03:16 +09:30
rx Don't use BFD_VMA_FMT in gdb and sim 2022-08-06 08:03:16 +09:30
sh
testsuite
v850
.gitignore
aclocal.m4
arch-subdir.mk.in
ChangeLog-2021
config.h.in
configure
configure.ac
COPYING
gdbinit.in
MAINTAINERS
Makefile.am
Makefile.in
README-HACKING