Message ID | 3904a5c3e80f8548150d8088a92059dd728c7ff8.1666257885.git.research_trasio@irq.a4lg.com |
---|---|
State | Accepted |
Headers |
Return-Path: <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp154663wrs; Thu, 20 Oct 2022 02:31:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5zgm9/+cIdZBIOVeRDdQWbwzd4DFSe9A75GUQfXMZ6kxH9RM5MxHapNTxtmh/UeSOlAzrJ X-Received: by 2002:a05:6402:27d4:b0:45d:a69e:336d with SMTP id c20-20020a05640227d400b0045da69e336dmr11301635ede.298.1666258314174; Thu, 20 Oct 2022 02:31:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666258314; cv=none; d=google.com; s=arc-20160816; b=FT5QBkwGgYc/ZaxOHpU8Y3a9Rna8hBge3rgB79E6CLL6fflslElkocfjpse+nY6ybc +fMT1jrhBdcUp3M0pmv7tLdjwJjDlBPoRQFs361iw3RpuEwaftYzqBCJliTG4O6Sqm9c 5Py1aUShQuWU8tsF5aafaOQqy+F2VzmacWo+U/yVLACDBGUJ0e4ub/8JJe2ZscY57exD 4TuY5LoiqQau3z6V16kxkA5FL6ocHTcOrtEfcg/d8u2dpisSvlB+03Qc0/EvyGXZl4Jw zvpmfHFt+HgcNm6TH2sdVTgA52WqEHgEiwlYHLERhopd+0eQRAeNEHV+7wrcbgnX35MP ZuwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:from:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:dmarc-filter:delivered-to:dkim-signature :dkim-filter; bh=wSc7GsQVfWfQxciF0C3o8qc3GaZdVuMxvyAiY+Il5HY=; b=lMaTfayBiwp6gqCG7y8SBOqug3VrOWSg9BlvXJxvjhO0cyouAAOk61vH3ygUD27ExN vDP6wfokm0olaGIrYGZ9u5Bjr9sbiggoS9lYxBwEY9XNwrmWGUvXt7+0eQgXcAuYcTPM 4OixwFKorQufm0Gvn6YWd71Vs0e90HuyGUgC/pTIgJjAcWU7os9A0waSG7j+iXytPd83 ouQN/uofYQTfb2YpIFR0FVeZq/MNHYpJeBAOPXQgh/sHXkve9DDsNQGou10sr7l4U71F a3XmrkydTlii2J6EV6a/8WlyGC3HGEd7xuxJvI/hD71GirbwpVCdDFPjPM8xX4+UUowh By9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=F5eBtOBJ; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id l15-20020a170906794f00b0078dc7f7d0ebsi17005565ejo.822.2022.10.20.02.31.54 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Oct 2022 02:31:54 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=F5eBtOBJ; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C5E6738A90BB for <ouuuleilei@gmail.com>; Thu, 20 Oct 2022 09:29:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C5E6738A90BB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666258150; bh=wSc7GsQVfWfQxciF0C3o8qc3GaZdVuMxvyAiY+Il5HY=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=F5eBtOBJGHfpQMmAKzQYfz4UKzvrn0xkBCL7V1j8ug6bH3J4OPWdbfA6ckJ37veBA UUDgv8qnrxJoaEuUR7oHgbYxUXX5ncTA9fETS8mbPqHcXvstebe9xtdekIdEnf6umP rGF7wxctiN547UNO73+px2HWVWS9CowGJvI4VkNU= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-sender-0.a4lg.com (mail-sender-0.a4lg.com [IPv6:2401:2500:203:30b:4000:6bfe:4757:0]) by sourceware.org (Postfix) with ESMTPS id ADB803865C2D for <binutils@sourceware.org>; Thu, 20 Oct 2022 09:27:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org ADB803865C2D Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id 152D3300089; Thu, 20 Oct 2022 09:27:40 +0000 (UTC) To: Tsukasa OI <research_trasio@irq.a4lg.com>, Andrew Burgess <aburgess@redhat.com>, Mike Frysinger <vapier@gentoo.org>, Nick Clifton <nickc@redhat.com> Subject: [PATCH 06/40] sim/cris: Move declarations of f_specific_init Date: Thu, 20 Oct 2022 09:25:52 +0000 Message-Id: <3904a5c3e80f8548150d8088a92059dd728c7ff8.1666257885.git.research_trasio@irq.a4lg.com> In-Reply-To: <cover.1666257885.git.research_trasio@irq.a4lg.com> References: <cover.1666257885.git.research_trasio@irq.a4lg.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> From: Tsukasa OI via Binutils <binutils@sourceware.org> Reply-To: Tsukasa OI <research_trasio@irq.a4lg.com> Cc: binutils@sourceware.org Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747198478022596964?= X-GMAIL-MSGID: =?utf-8?q?1747198478022596964?= |
Series |
sim+gdb: Suppress warnings if built with Clang (big batch 1)
|
|
Checks
Context | Check | Description |
---|---|---|
snail/binutils-gdb-check | success | Github commit url |
Commit Message
Tsukasa OI
Oct. 20, 2022, 9:25 a.m. UTC
Declarations for MY (f_specific_init) functions are defined in CGEN- generated header files: sim/cris/decodev10.h (crisv10f_specific_init) and sim/cris/decodev32.h (crisv32f_specific_init). However, those declarations are manually added by the commit 4e6e8ba7c565 ("sim: cris: clean up missing func prototype warnings") as a hack and not a CGEN-generated part. Those definitions are required by $(builddir)/sim/cris/mloopv{10,32}f.c, generated from $(srcdir)/sim/cris/mloop.in. If we define a declaration in mloop.in, we no longer need manually added one. This commit adds a template for function declaration so that we no longer have to touch CGEN-generated code. With this and the previous commit "cpu/cris: Add stall unit to CRIS v32", we can now safely regenerate CRIS CPU declarations with CGEN. --- sim/cris/cris-tmpl.c | 2 ++ 1 file changed, 2 insertions(+)
Comments
On Thu, 20 Oct 2022, Tsukasa OI via Binutils wrote: > Declarations for MY (f_specific_init) functions are defined in CGEN- > generated header files: sim/cris/decodev10.h (crisv10f_specific_init) and > sim/cris/decodev32.h (crisv32f_specific_init). However, those declarations > are manually added by the commit 4e6e8ba7c565 ("sim: cris: clean up missing > func prototype warnings") as a hack and not a CGEN-generated part. > > Those definitions are required by $(builddir)/sim/cris/mloopv{10,32}f.c, > generated from $(srcdir)/sim/cris/mloop.in. If we define a declaration in > mloop.in, we no longer need manually added one. > > This commit adds a template for function declaration so that we no longer > have to touch CGEN-generated code. With this and the previous commit > "cpu/cris: Add stall unit to CRIS v32", we can now safely regenerate > CRIS CPU declarations with CGEN. > --- > sim/cris/cris-tmpl.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/sim/cris/cris-tmpl.c b/sim/cris/cris-tmpl.c > index 9f0c06e755e..8694d38b2af 100644 > --- a/sim/cris/cris-tmpl.c > +++ b/sim/cris/cris-tmpl.c > @@ -264,6 +264,8 @@ MY (make_thread_cpu_data) (SIM_CPU *current_cpu, void *context) > > /* Hook function for per-cpu simulator initialization. */ > > +extern void MY (f_specific_init) (SIM_CPU *); > + > void > MY (f_specific_init) (SIM_CPU *current_cpu) > { > -- > 2.34.1 > > Ok, thanks. brgds, H-P
diff --git a/sim/cris/cris-tmpl.c b/sim/cris/cris-tmpl.c index 9f0c06e755e..8694d38b2af 100644 --- a/sim/cris/cris-tmpl.c +++ b/sim/cris/cris-tmpl.c @@ -264,6 +264,8 @@ MY (make_thread_cpu_data) (SIM_CPU *current_cpu, void *context) /* Hook function for per-cpu simulator initialization. */ +extern void MY (f_specific_init) (SIM_CPU *); + void MY (f_specific_init) (SIM_CPU *current_cpu) {