binutils-gdb/sim/common
Tom de Vries b3f8962bdb [sim] Fix mbuild build breaker in sim-cpu.c
When running gdb/gdb_mbuild.sh, I run into:
...
src/sim/aarch64/../common/sim-cpu.c: In function 'sim_cpu_free':
src/sim/aarch64/../common/sim-cpu.c:64:3: error: implicit declaration of \
  function 'free' [-Werror=implicit-function-declaration]
   free (cpu);
   ^~~~
src/sim/aarch64/../common/sim-cpu.c:64:3: error: incompatible implicit \
  declaration of built-in function 'free' [-Werror]
src/sim/aarch64/../common/sim-cpu.c:64:3: note: include '<stdlib.h>' or \
  provide a declaration of 'free'
...

Fix this by adding "#include <stdlib.h>".

Tested by gdb/gdb_mbuild.sh -e aarch64-elf.

sim/common/ChangeLog:

2020-08-10  Tom de Vries  <tdevries@suse.de>

	* sim-cpu.c: Include stdlib.h for free.
2020-08-10 17:26:09 +02:00
..
acinclude.m4
aclocal.m4
callback.c
cgen-accfp.c
cgen-cpu.h
cgen-defs.h
cgen-engine.h
cgen-fpu.c
cgen-fpu.h
cgen-mem.h
cgen-ops.h
cgen-par.c
cgen-par.h
cgen-run.c
cgen-scache.c
cgen-scache.h
cgen-sim.h
cgen-trace.c
cgen-trace.h
cgen-types.h
cgen-utils.c
cgen.sh
ChangeLog [sim] Fix mbuild build breaker in sim-cpu.c 2020-08-10 17:26:09 +02:00
configure
configure.ac
create-version.sh
dv-cfi.c
dv-cfi.h
dv-core.c
dv-glue.c
dv-pal.c
dv-sockser.c
dv-sockser.h
gdbinit.in
genmloop.sh
gennltvals.sh
gentmap.c
gentvals.sh
hw-alloc.c
hw-alloc.h
hw-base.c
hw-base.h
hw-device.c
hw-device.h
hw-events.c
hw-events.h
hw-handles.c
hw-handles.h
hw-instances.c
hw-instances.h
hw-main.h
hw-ports.c
hw-ports.h
hw-properties.c
hw-properties.h
hw-tree.c
hw-tree.h
Make-common.in
Makefile.in
nltvals.def
nrun.c sim: add some stdlib.h includes 2020-01-19 19:48:16 -05:00
run.1
sim-abort.c
sim-alu.h
sim-arange.c
sim-arange.h
sim-assert.h
sim-base.h
sim-basics.h
sim-bits.c
sim-bits.h
sim-close.c
sim-command.c
sim-config.c
sim-config.h
sim-core.c sim: add some stdlib.h includes 2020-01-19 19:48:16 -05:00
sim-core.h
sim-cpu.c [sim] Fix mbuild build breaker in sim-cpu.c 2020-08-10 17:26:09 +02:00
sim-cpu.h
sim-endian.c
sim-endian.h
sim-engine.c sim: add some stdlib.h includes 2020-01-19 19:48:16 -05:00
sim-engine.h
sim-events.c
sim-events.h
sim-fpu.c
sim-fpu.h
sim-hload.c
sim-hrw.c
sim-hw.c
sim-hw.h
sim-info.c
sim-inline.c
sim-inline.h
sim-io.c sim: add some stdlib.h includes 2020-01-19 19:48:16 -05:00
sim-io.h
sim-load.c
sim-memopt.c
sim-memopt.h
sim-model.c
sim-model.h
sim-module.c sim: add some stdlib.h includes 2020-01-19 19:48:16 -05:00
sim-module.h
sim-n-bits.h
sim-n-core.h
sim-n-endian.h
sim-options.c
sim-options.h
sim-profile.c
sim-profile.h
sim-reason.c sim: add some stdlib.h includes 2020-01-19 19:48:16 -05:00
sim-reg.c
sim-resume.c
sim-run.c
sim-signal.c
sim-signal.h
sim-stop.c
sim-syscall.c
sim-syscall.h
sim-trace.c
sim-trace.h
sim-types.h
sim-utils.c
sim-utils.h
sim-watch.c
sim-watch.h
syscall.c
version.h