binutils-gdb/sim
Luis Machado 851c0536ca [ARM, sim] Fix build error and warnings
Newer GCC's have switched to -fno-common by default, and this breaks the build
for the ARM sim, like this:

binutils-gdb.git~gdb-8.3-release/sim/arm/maverick.c:65: multiple definition of `DSPsc'; libsim.a(wrapper.o):binutils-gdb.git~gdb-8.3-release/sim/arm/wrapper.c:134: first defined here
binutils-gdb.git~gdb-8.3-release/sim/arm/maverick.c:64: multiple definition of `DSPacc'; libsim.a(wrapper.o):binutils-gdb.git~gdb-8.3-release/sim/arm/wrapper.c:133: first defined here
binutils-gdb.git~gdb-8.3-release/sim/arm/maverick.c:63: multiple definition of `DSPregs'; libsim.a(wrapper.o):binutils-gdb.git~gdb-8.3-release/sim/arm/wrapper.c:132: first defined here

I also noticed a few warnings due to mismatching types, as follows:

../../../../repos/binutils-gdb/sim/arm/wrapper.c: In function ‘sim_create_inferior’:
../../../../repos/binutils-gdb/sim/arm/wrapper.c:335:16: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
       for (arg = argv; *arg != NULL; arg++)
                ^
../../../../repos/binutils-gdb/sim/arm/wrapper.c:342:8: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
    arg = argv;
        ^
../../../../repos/binutils-gdb/sim/arm/wrapper.c:345:13: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
    for (arg = argv; *arg != NULL; arg++)
             ^
The following patch fixes both of the above.

sim/arm/ChangeLog:

2019-12-06  Luis Machado  <luis.machado@linaro.org>

	* armemu.c (isize): Move this declaration ...
	* arminit.c (isize): ... here.
	* maverick.h: New file.
	* wrapper.c: Include "maverick.h".
	(<struct maverick_regs>, <union maverick_acc_regs>): Remove and update
	comment.
	(sim_create_inferior): Cast variables to proper type.
	* maverick.c: Include "maverick.h".
	(<struct maverick_regs>, <union maverick_acc_regs>): Move
	declarations to maverick.h and update comment.
	(DSPsc, DSPacc, DSPregs): Adjust comment.

Change-Id: I21db699d3b61b2de8c44053e47be4387285af28f
2019-12-06 18:16:20 -03:00
..
aarch64 sim: fix aarch64 sim build 2019-03-28 13:46:09 +00:00
arm [ARM, sim] Fix build error and warnings 2019-12-06 18:16:20 -03:00
avr Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
bfin Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
common sim-utils.c: prevent buffer overflow. 2019-12-04 10:38:08 -07:00
cr16 Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
cris bfd_section_* macros 2019-09-19 09:40:13 +09:30
d10v Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
erc32 bfd_section_* macros 2019-09-19 09:40:13 +09:30
frv Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
ft32 Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
h8300 Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
igen Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
iq2000 Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
lm32 bfd_section_* macros 2019-09-19 09:40:13 +09:30
m32c bfd_section_* macros 2019-09-19 09:40:13 +09:30
m32r Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
m68hc11 bfd_section_* macros 2019-09-19 09:40:13 +09:30
mcore Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
microblaze Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mips Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
mn10300 Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
moxie Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
msp430 Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
or1k sim/or1k: Regenerate sim 2019-06-13 21:27:09 +09:00
ppc bfd macro conversion to inline functions 2019-09-20 18:04:02 +09:30
pru sim: Add PRU simulator port 2019-09-23 22:11:02 +01:00
rl78 bfd_section_* macros 2019-09-19 09:40:13 +09:30
rx bfd_section_* macros 2019-09-19 09:40:13 +09:30
sh Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sh64 Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
testsuite Add testsuite for the PRU simulator port 2019-09-23 22:11:16 +01:00
v850 Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
.gitignore sim: drop common/cconfig.h in favor of a single config.h 2016-01-09 03:52:30 -05:00
ChangeLog sim: Add PRU simulator port 2019-09-23 22:11:02 +01:00
configure sim: Add PRU simulator port 2019-09-23 22:11:02 +01:00
configure.ac Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
configure.tgt sim: Add PRU simulator port 2019-09-23 22:11:02 +01:00
MAINTAINERS sim: Add PRU simulator port 2019-09-23 22:11:02 +01:00
Makefile.in Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
README-HACKING sim: punt WITH_DEVICES & tconfig.h support 2015-12-26 20:38:31 -05:00