diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2020-01-19 19:47:17 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2020-01-19 19:48:16 -0500 |
commit | b760fb3a1cd35fda01843ee7cdb3e420f07d27b9 (patch) | |
tree | 866133f85c6aef8e7770391006115721c9b2c312 /sim/common/ChangeLog | |
parent | f1cf2aa54e20257c7d68b795077ac41c3e492f57 (diff) | |
download | fsf-binutils-gdb-b760fb3a1cd35fda01843ee7cdb3e420f07d27b9.zip fsf-binutils-gdb-b760fb3a1cd35fda01843ee7cdb3e420f07d27b9.tar.gz fsf-binutils-gdb-b760fb3a1cd35fda01843ee7cdb3e420f07d27b9.tar.bz2 |
sim: add some stdlib.h includes
When trying to compile GDB with --target=avr, with gcc 9.2.0, I am
getting a bunch of:
/home/simark/src/binutils-gdb/sim/avr/../common/nrun.c:94:7: error: implicit declaration of function ‘abort’ [-Werror=implicit-function-declaration]
94 | abort ();
| ^~~~~
/home/simark/src/binutils-gdb/sim/avr/../common/nrun.c:94:7: error: incompatible implicit declaration of built-in function ‘abort’ [-Werror]
/home/simark/src/binutils-gdb/sim/avr/../common/nrun.c:94:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘abort’
I did what the compiler told me and added the relevant includes in the
problematic files.
sim/common/ChangeLog:
* nrun.c: Include stdlib.h.
* sim-core.c: Likewise.
* sim-engine.c: Likewise.
* sim-io.c: Likewise.
* sim-module.c: Likewise.
* sim-reason.c: Likewise.
Diffstat (limited to 'sim/common/ChangeLog')
-rw-r--r-- | sim/common/ChangeLog | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 6610c7b..a1ac3f1 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,12 @@ +2020-01-19 Simon Marchi <simon.marchi@polymtl.ca> + + * nrun.c: Include stdlib.h. + * sim-core.c: Likewise. + * sim-engine.c: Likewise. + * sim-io.c: Likewise. + * sim-module.c: Likewise. + * sim-reason.c: Likewise. + 2019-12-19 Tom Tromey <tromey@adacore.com> PR build/24572: |