public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH/committed] sim: common: add missing stdlib.h for abort()
@ 2021-01-09  7:58 Mike Frysinger
  2021-01-09 11:38 ` Andrew Burgess
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2021-01-09  7:58 UTC (permalink / raw)
  To: gdb-patches

---
 sim/common/ChangeLog    | 5 +++++
 sim/common/cgen-par.c   | 1 +
 sim/common/cgen-trace.c | 1 +
 sim/common/hw-events.c  | 1 +
 sim/common/sim-abort.c  | 1 +
 5 files changed, 9 insertions(+)

diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index df78108370d6..52a2003e9c61 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -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.
diff --git a/sim/common/cgen-par.c b/sim/common/cgen-par.c
index 8f2b0f94e57a..4cf0388e16f4 100644
--- a/sim/common/cgen-par.c
+++ b/sim/common/cgen-par.c
@@ -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"
 
diff --git a/sim/common/cgen-trace.c b/sim/common/cgen-trace.c
index 43bf0173944b..82abad61b6c8 100644
--- a/sim/common/cgen-trace.c
+++ b/sim/common/cgen-trace.c
@@ -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"
diff --git a/sim/common/hw-events.c b/sim/common/hw-events.c
index 1102420c910f..917d7bde4e90 100644
--- a/sim/common/hw-events.c
+++ b/sim/common/hw-events.c
@@ -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,
diff --git a/sim/common/sim-abort.c b/sim/common/sim-abort.c
index ef4fea14ca49..bf05504255fc 100644
--- a/sim/common/sim-abort.c
+++ b/sim/common/sim-abort.c
@@ -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"
-- 
2.28.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH/committed] sim: common: add missing stdlib.h for abort()
  2021-01-09  7:58 [PATCH/committed] sim: common: add missing stdlib.h for abort() Mike Frysinger
@ 2021-01-09 11:38 ` Andrew Burgess
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Burgess @ 2021-01-09 11:38 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: gdb-patches

* Mike Frysinger via Gdb-patches <gdb-patches@sourceware.org> [2021-01-09 02:58:11 -0500]:

> ---
>  sim/common/ChangeLog    | 5 +++++
>  sim/common/cgen-par.c   | 1 +
>  sim/common/cgen-trace.c | 1 +
>  sim/common/hw-events.c  | 1 +
>  sim/common/sim-abort.c  | 1 +
>  5 files changed, 9 insertions(+)

LGTM, but will need a ChangeLog entry.

Thanks,
Andrew


> 
> diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
> index df78108370d6..52a2003e9c61 100644
> --- a/sim/common/ChangeLog
> +++ b/sim/common/ChangeLog
> @@ -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.
> diff --git a/sim/common/cgen-par.c b/sim/common/cgen-par.c
> index 8f2b0f94e57a..4cf0388e16f4 100644
> --- a/sim/common/cgen-par.c
> +++ b/sim/common/cgen-par.c
> @@ -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"
>  
> diff --git a/sim/common/cgen-trace.c b/sim/common/cgen-trace.c
> index 43bf0173944b..82abad61b6c8 100644
> --- a/sim/common/cgen-trace.c
> +++ b/sim/common/cgen-trace.c
> @@ -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"
> diff --git a/sim/common/hw-events.c b/sim/common/hw-events.c
> index 1102420c910f..917d7bde4e90 100644
> --- a/sim/common/hw-events.c
> +++ b/sim/common/hw-events.c
> @@ -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,
> diff --git a/sim/common/sim-abort.c b/sim/common/sim-abort.c
> index ef4fea14ca49..bf05504255fc 100644
> --- a/sim/common/sim-abort.c
> +++ b/sim/common/sim-abort.c
> @@ -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"
> -- 
> 2.28.0
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-09 11:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-09  7:58 [PATCH/committed] sim: common: add missing stdlib.h for abort() Mike Frysinger
2021-01-09 11:38 ` Andrew Burgess

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).