diff options
author | Tom Tromey <tom@tromey.com> | 2021-04-08 08:52:50 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-04-08 14:34:42 -0600 |
commit | 32a046ab0d7717256f16f59d87438474e825fcb8 (patch) | |
tree | d3e5a42c96a4c3a4281834210cc91e5f430d2f6e /sim/cris | |
parent | 81e6e8ae407b206def2c6840736dad0dcf75eb0b (diff) | |
download | gdb-32a046ab0d7717256f16f59d87438474e825fcb8.zip gdb-32a046ab0d7717256f16f59d87438474e825fcb8.tar.gz gdb-32a046ab0d7717256f16f59d87438474e825fcb8.tar.bz2 |
Add system includes in sim
This updates various parts of the sim to include missing system
headers. I made the includes unconditional, because other parts of
the tree are already doing this.
2021-04-08 Tom Tromey <tom@tromey.com>
* traps.c: Include stdlib.h.
* cris-tmpl.c: Include stdlib.h.
sim/erc32/ChangeLog
2021-04-08 Tom Tromey <tom@tromey.com>
* func.c: Include sys/time.h.
sim/frv/ChangeLog
2021-04-08 Tom Tromey <tom@tromey.com>
* traps.c: Include stdlib.h.
* registers.c: Include stdlib.h.
* profile.c: Include stdlib.h.
* memory.c: Include stdlib.h.
* interrupts.c: Include stdlib.h.
* frv.c: Include stdlib.h.
* cache.c: Include stdlib.h.
sim/iq2000/ChangeLog
2021-04-08 Tom Tromey <tom@tromey.com>
* iq2000.c: Include stdlib.h.
sim/m32r/ChangeLog
2021-04-08 Tom Tromey <tom@tromey.com>
* traps.c: Include stdlib.h.
* m32r.c: Include stdlib.h.
sim/ppc/ChangeLog
2021-04-08 Tom Tromey <tom@tromey.com>
* emul_unix.c: Include time.h.
Diffstat (limited to 'sim/cris')
-rw-r--r-- | sim/cris/ChangeLog | 5 | ||||
-rw-r--r-- | sim/cris/cris-tmpl.c | 2 | ||||
-rw-r--r-- | sim/cris/traps.c | 1 |
3 files changed, 8 insertions, 0 deletions
diff --git a/sim/cris/ChangeLog b/sim/cris/ChangeLog index 3899045..4590798 100644 --- a/sim/cris/ChangeLog +++ b/sim/cris/ChangeLog @@ -1,3 +1,8 @@ +2021-04-08 Tom Tromey <tom@tromey.com> + + * traps.c: Include stdlib.h. + * cris-tmpl.c: Include stdlib.h. + 2021-04-02 Mike Frysinger <vapier@gentoo.org> * aclocal.m4, configure: Regenerate. diff --git a/sim/cris/cris-tmpl.c b/sim/cris/cris-tmpl.c index b5ad718..95579db 100644 --- a/sim/cris/cris-tmpl.c +++ b/sim/cris/cris-tmpl.c @@ -25,6 +25,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "cgen-mem.h" #include "cgen-ops.h" +#include <stdlib.h> + #define MY(f) XCONCAT3(crisv,BASENUM,f) /* Dispatcher for break insn. */ diff --git a/sim/cris/traps.c b/sim/cris/traps.c index 2aaa1f4..1c8ca41 100644 --- a/sim/cris/traps.c +++ b/sim/cris/traps.c @@ -23,6 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "bfd.h" /* FIXME: get rid of targ-vals.h usage everywhere else. */ +#include <stdlib.h> #include <stdarg.h> #include <errno.h> #ifdef HAVE_UNISTD_H |