sim: common: add missing stdlib.h for abort()
authorMike Frysinger <vapier@gentoo.org>
Sat, 9 Jan 2021 07:43:54 +0000 (02:43 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 9 Jan 2021 07:45:14 +0000 (02:45 -0500)
sim/common/ChangeLog
sim/common/cgen-par.c
sim/common/cgen-trace.c
sim/common/hw-events.c
sim/common/sim-abort.c

index df78108370d6f4da4c3ca8fb75eba1062d344715..52a2003e9c61a54aea03354043e158fcf5c1dcb8 100644 (file)
@@ -1,3 +1,8 @@
+2021-01-09  Mike Frysinger  <vapier@gentoo.org>
+
+       * cgen-par.c: Include stdlib.h.
+       * cgen-trace.c, hw-events.c, sim-abort.c: Likewise.
+
 2021-01-08  Mike Frysinger  <vapier@gentoo.org>
 
        * Make-common.in (C_DIALECT): Define.
index 8f2b0f94e57a759dbec8c0de75d73540b38bc6a5..4cf0388e16f47379ae2881ded4a38425ab61fc7c 100644 (file)
@@ -18,6 +18,7 @@ You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "sim-main.h"
+#include <stdlib.h>
 #include "cgen-mem.h"
 #include "cgen-par.h"
 
index 43bf0173944be06d20e7639ac2d9bddb94cb7b7e..82abad61b6c86ea694742a1ee1d3b34b555dabd0 100644 (file)
@@ -19,6 +19,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "config.h"
 #include <errno.h>
+#include <stdlib.h>
 #include "dis-asm.h"
 #include "bfd.h"
 #include "sim-main.h"
index 1102420c910fc306e9e845de1f797911b8866e75..917d7bde4e9079fde257dee2fb11300c03414007 100644 (file)
@@ -187,6 +187,7 @@ hw_event_remain_time (struct hw *me, struct hw_event *event)
 #include "sim-main.h"
 #include <string.h>
 #include <stdio.h>
+#include <stdlib.h>
 
 static void
 test_handler (struct hw *me,
index ef4fea14ca49338fcb3aab918b00f8834c4ba09d..bf05504255fc048ae971a3d332c5e92514d1ced0 100644 (file)
@@ -18,6 +18,7 @@ You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include <stdio.h>
+#include <stdlib.h>
 
 #include "sim-main.h"
 #include "sim-assert.h"