binutils-gdb/sim/common
Stafford Horne ef9866970c sim/common: convert sim-arange to use sim-inline
This fixes a TODO item and also fixes an error which we get when
building with no optimizations (-O0) in at least gcc 8.2.1.

Tested with sims that use cgen code lm32, or1k, cris, m32r and inlining
is working corretly.

Reference Error:

gcc -DHAVE_CONFIG_H -DWITH_DEFAULT_MODEL='"or1200"' -DWITH_ALIGNMENT=STRICT_ALIGNMENT \
 -DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31 -DWITH_TARGET_ADDRESS_BITSIZE=32 \
 -DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_BIG   -DDEFAULT_INLINE=0  -DWITH_SCACHE=16384 \
 -I. -I../../../binutils-gdb/sim/or1k -I../common -I../../../binutils-gdb/sim/or1k/../common \
 -I../../include -I../../../binutils-gdb/sim/or1k/../../include -I../../bfd \
 -I../../../binutils-gdb/sim/or1k/../../bfd -I../../opcodes -I../../../binutils-gdb/sim/or1k/../../opcodes \
 -g -o run nrun.o libsim.a ../../bfd/libbfd.a ../../opcodes/libopcodes.a  ../../libiberty/libiberty.a \
 -ldl  -lz -lm

/usr/bin/ld: libsim.a(mloop.o): in function `extract':
/home/shorne/work/openrisc/gdb-musl/sim/or1k/mloop.c:82: undefined reference to `sim_addr_range_hit_p'
/usr/bin/ld: /home/shorne/work/openrisc/gdb-musl/sim/or1k/mloop.c:83: undefined reference to `sim_addr_range_hit_p'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:305: run] Error 1

sim/common/ChangeLog:

	* Make-common.in (sim-arange_h): Remove sim-arange.c
	* sim-arange.c: Remove SIM_ARANGE_C.
	Add ifdef for _SIM_ARANGE_C_.
	Include "sim-arange.h".
	Remove include for unused "sim-assert.h".
	Remove DEFINE_INLINE_P.  Remove DEFINE_NON_INLINE_P.
	(sim_addr_range_add): Declare as INLINE_SIM_ARANGE.
	(sim_addr_range_delete): Declare as INLINE_SIM_ARANGE.
	(sim_addr_range_hit_p): Change from SIM_ARANGE_INLINE to
	INLINE_SIM_ARANGE.
	* sim-arange.h (sim_addr_range_add): Declare as
	INLINE_SIM_ARANGE.
	(sim_addr_range_delete): Declare as INLINE_SIM_ARANGE.
	(sim_addr_range_hit_p) Declare as INLINE_SIM_ARANGE.
	Remove definition of SIM_ARANGE_INLINE.
	Remove [HAVE_INLINE].
	Wrap include "sim-arange.c" in H_REVEALS_MODULE_P.
	* sim-base.h: Include "sim-arange.h"
	* sim-basics.h: Remove include of "sim-arange.h"
	* sim-inline.c: Include "sim-arange.c"
	* sim-inline.h: Define INLINE_SIM_ARANGE.
	Define SIM_ARANGE_INLINE.  Define EXTERN_SIM_ARANGE_P.
	Define STATIC_INLINE_SIM_ARANGE.  Define STATIC_SIM_ARANGE.
2019-03-28 06:40:30 +09:00
..
acinclude.m4 sim/opcodes: Allow use of out of tree cgen source directory 2018-12-06 12:21:10 +00:00
aclocal.m4
callback.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
cgen-accfp.c
cgen-cpu.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
cgen-defs.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
cgen-engine.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
cgen-fpu.c
cgen-fpu.h
cgen-mem.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
cgen-ops.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
cgen-par.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
cgen-par.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
cgen-run.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
cgen-scache.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
cgen-scache.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
cgen-sim.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
cgen-trace.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
cgen-trace.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
cgen-types.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
cgen-utils.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
cgen.sh
ChangeLog sim/common: convert sim-arange to use sim-inline 2019-03-28 06:40:30 +09:00
configure
configure.ac
create-version.sh Fix the sim build 2019-01-26 08:53:31 -07:00
dv-cfi.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
dv-cfi.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
dv-core.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
dv-glue.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
dv-pal.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
dv-sockser.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
dv-sockser.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
gdbinit.in
genmloop.sh Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
gennltvals.sh
gentmap.c
gentvals.sh
hw-alloc.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
hw-alloc.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
hw-base.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
hw-base.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
hw-device.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
hw-device.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
hw-events.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
hw-events.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
hw-handles.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
hw-handles.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
hw-instances.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
hw-instances.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
hw-main.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
hw-ports.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
hw-ports.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
hw-properties.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
hw-properties.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
hw-tree.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
hw-tree.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
Make-common.in sim/common: convert sim-arange to use sim-inline 2019-03-28 06:40:30 +09:00
Makefile.in Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
nltvals.def
nrun.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
run.1 Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-abort.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-alu.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-arange.c sim/common: convert sim-arange to use sim-inline 2019-03-28 06:40:30 +09:00
sim-arange.h sim/common: convert sim-arange to use sim-inline 2019-03-28 06:40:30 +09:00
sim-assert.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-base.h sim/common: convert sim-arange to use sim-inline 2019-03-28 06:40:30 +09:00
sim-basics.h sim/common: convert sim-arange to use sim-inline 2019-03-28 06:40:30 +09:00
sim-bits.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-bits.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-close.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-command.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-config.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-config.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-core.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-core.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-cpu.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-cpu.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-endian.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-endian.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-engine.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-engine.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-events.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-events.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-fpu.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-fpu.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-hload.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-hrw.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-hw.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-hw.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-info.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-inline.c sim/common: convert sim-arange to use sim-inline 2019-03-28 06:40:30 +09:00
sim-inline.h sim/common: convert sim-arange to use sim-inline 2019-03-28 06:40:30 +09:00
sim-io.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-io.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-load.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-memopt.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-memopt.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-model.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-model.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-module.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-module.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-n-bits.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-n-core.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-n-endian.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-options.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-options.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-profile.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-profile.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-reason.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-reg.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-resume.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-run.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-signal.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-signal.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-stop.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-syscall.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-syscall.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-trace.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-trace.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-types.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-utils.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-utils.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-watch.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
sim-watch.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
syscall.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
version.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00