From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id MLz3AhRhkWBWZAAAWB0awg (envelope-from ) for ; Tue, 04 May 2021 10:58:28 -0400 Received: by simark.ca (Postfix, from userid 112) id 077181F11C; Tue, 4 May 2021 10:58:27 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=MAILING_LIST_MULTI, RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 6C83E1E54D for ; Tue, 4 May 2021 10:58:25 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2FD5F398EC31; Tue, 4 May 2021 14:58:25 +0000 (GMT) Received: from rock.gnat.com (rock.gnat.com [205.232.38.15]) by sourceware.org (Postfix) with ESMTP id 2FC88398EC20 for ; Tue, 4 May 2021 14:58:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 2FC88398EC20 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey@adacore.com Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 02E8856155; Tue, 4 May 2021 10:58:21 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at gnat.com Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id hkmriX5HW9ae; Tue, 4 May 2021 10:58:20 -0400 (EDT) Received: from murgatroyd.Home (97-122-70-176.hlrn.qwest.net [97.122.70.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by rock.gnat.com (Postfix) with ESMTPSA id B48D8117786; Tue, 4 May 2021 10:58:20 -0400 (EDT) From: Tom Tromey To: gdb-patches@sourceware.org Subject: [PATCH 3/3] Add missing stdlib.h includes to sim Date: Tue, 4 May 2021 08:58:18 -0600 Message-Id: <20210504145818.4088770-4-tromey@adacore.com> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20210504145818.4088770-1-tromey@adacore.com> References: <20210504145818.4088770-1-tromey@adacore.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tom Tromey Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" This updates the various "mloop.in" files to emit an include of stdlib.h, to avoid warnings about 'abort' being undeclared. One such warning now remains, in mn10300.igen. I don't know offhand the best way to fix this one. sim/cris/ChangeLog 2021-05-04 Tom Tromey * mloop.in: Include . sim/iq2000/ChangeLog 2021-05-04 Tom Tromey * mloop.in: Include . sim/lm32/ChangeLog 2021-05-04 Tom Tromey * mloop.in: Include . sim/m32r/ChangeLog 2021-05-04 Tom Tromey * mloop.in: Include . sim/or1k/ChangeLog 2021-05-04 Tom Tromey * mloop.in: Include . --- sim/cris/ChangeLog | 4 ++++ sim/cris/mloop.in | 2 ++ sim/iq2000/ChangeLog | 4 ++++ sim/iq2000/mloop.in | 1 + sim/lm32/ChangeLog | 4 ++++ sim/lm32/mloop.in | 1 + sim/m32r/ChangeLog | 4 ++++ sim/m32r/mloop.in | 1 + sim/or1k/ChangeLog | 4 ++++ sim/or1k/mloop.in | 1 + 10 files changed, 26 insertions(+) diff --git a/sim/cris/mloop.in b/sim/cris/mloop.in index 32f5fef95f3..645d8211606 100644 --- a/sim/cris/mloop.in +++ b/sim/cris/mloop.in @@ -42,6 +42,8 @@ case "x$1" in xsupport) cat < + /* It seems we don't have a templated header file corresponding to cris-tmpl.c, so we have to get out declarations the hackish way. */ extern void @cpu@_specific_init (SIM_CPU *current_cpu); diff --git a/sim/iq2000/mloop.in b/sim/iq2000/mloop.in index b973fa106ab..7d3a9b5e9a1 100644 --- a/sim/iq2000/mloop.in +++ b/sim/iq2000/mloop.in @@ -40,6 +40,7 @@ case "x$1" in xsupport) cat < static INLINE const IDESC * extract (SIM_CPU *current_cpu, PCADDR pc, CGEN_INSN_INT insn, ARGBUF *abuf, diff --git a/sim/lm32/mloop.in b/sim/lm32/mloop.in index a8db7f51768..574f00a5119 100644 --- a/sim/lm32/mloop.in +++ b/sim/lm32/mloop.in @@ -32,6 +32,7 @@ case "x$1" in xsupport) cat < static INLINE const IDESC * extract (SIM_CPU *current_cpu, PCADDR pc, CGEN_INSN_INT insn, diff --git a/sim/m32r/mloop.in b/sim/m32r/mloop.in index 405a7e92736..6b0d0dec616 100644 --- a/sim/m32r/mloop.in +++ b/sim/m32r/mloop.in @@ -42,6 +42,7 @@ case "x$1" in xsupport) cat < static INLINE const IDESC * extract16 (SIM_CPU *current_cpu, PCADDR pc, CGEN_INSN_INT insn, diff --git a/sim/or1k/mloop.in b/sim/or1k/mloop.in index 49c42276209..a94b534a9ae 100644 --- a/sim/or1k/mloop.in +++ b/sim/or1k/mloop.in @@ -42,6 +42,7 @@ case "x$1" in xsupport) cat < static INLINE const IDESC * extract (SIM_CPU *current_cpu, PCADDR pc, CGEN_INSN_INT insn, -- 2.26.3