From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta039.useast.a.cloudfilter.net (omta039.useast.a.cloudfilter.net [44.202.169.38]) by sourceware.org (Postfix) with ESMTPS id 873A33858C1F for ; Sun, 20 Aug 2023 00:58:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 873A33858C1F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com Received: from eig-obgw-6001a.ext.cloudfilter.net ([10.0.30.140]) by cmsmtp with ESMTP id XRO2qvDpoyYOwXWleqjWnP; Sun, 20 Aug 2023 00:58:11 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id XWldqqz7SWs6SXWleqGqlG; Sun, 20 Aug 2023 00:58:10 +0000 X-Authority-Analysis: v=2.4 cv=Sb7ky9du c=1 sm=1 tr=0 ts=64e16522 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=OWjo9vPv0XrRhIrVQ50Ab3nP57M=:19 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=UttIx32zK-AA:10 a=Qbun_eYptAEA:10 a=_lJFNGNsdyIdDPKG2gMA:9 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=/LMNnysTYlGpiCFxNRNm7KZUHfNi7tsiQmn0W35cUZw=; b=WcF7E38Y9O2Prho8/jyWb8kJ52 X+v167Iiot1JEC7nPEsiTtaXgwlsmCI2U5ZAoQZtn9wveSPK0XrKtwQxJix8VUJCP3g1lRUa4w+xG GL5S3NN6mwlm7/Qmw6q+hcepQ; Received: from 75-166-142-177.hlrn.qwest.net ([75.166.142.177]:34576 helo=localhost.localdomain) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qXQgN-00017x-0W; Sat, 19 Aug 2023 12:28:19 -0600 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [pushed] Placate -Wmissing-declarations in sim/cris Date: Sat, 19 Aug 2023 12:28:08 -0600 Message-ID: <20230819182808.902012-1-tom@tromey.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.142.177 X-Source-L: No X-Exim-ID: 1qXQgN-00017x-0W X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-142-177.hlrn.qwest.net (localhost.localdomain) [75.166.142.177]:34576 X-Source-Auth: tom+tromey.com X-Email-Count: 0 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfPk/qVX6n14easWHVE75r0/kSSzApuxwKupAgAwSt+ohOTBOktEvwPuifnOnjWoKh8MJMc9tBOXpuB+tHQ/rjDGfpHeYcGWk5U1DKslz2CkMh4R2cITe Roob2YXGOGv0eLFfNhEmLE5AkAcYvl+ufUyDvJnHbR3cwmhH0dMDZ+uG27w30/uHIKW3AaQBalxKO2MaWhKsso15wKahHcrFfp4= X-Spam-Status: No, score=-3025.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,GIT_PATCH_0,JMQ_SPF_NEUTRAL,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 List-Id: I get a couple of -Wmissing-declarations errors when building the sim. This happens because an earlier patch added the declarations to a cgen-generated header, but the recent re-generation then removed them. This patch fixes the build by adding declarations just before the definition. This is normally not best practice, but in this particular situation it at leat un-breaks the build. --- sim/cris/cris-tmpl.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sim/cris/cris-tmpl.c b/sim/cris/cris-tmpl.c index d1fe90641b1..b39583cdb20 100644 --- a/sim/cris/cris-tmpl.c +++ b/sim/cris/cris-tmpl.c @@ -261,6 +261,9 @@ MY (make_thread_cpu_data) (SIM_CPU *current_cpu, void *context) return info; } +/* Placate -Wmissing-prototypes when mloop.in isn't used. */ +void MY (f_specific_init) (SIM_CPU *current_cpu); + /* Hook function for per-cpu simulator initialization. */ void @@ -276,6 +279,13 @@ MY (f_specific_init) (SIM_CPU *current_cpu) #endif } +/* Placate -Wmissing-prototypes when mloop.in isn't used. */ +int MY (XCONCAT3 (f_model_crisv,BASENUM, _u_stall)) + (SIM_CPU *current_cpu ATTRIBUTE_UNUSED, + const IDESC *idesc, + int unit_num, + int referenced ATTRIBUTE_UNUSED); + /* Model function for arbitrary single stall cycles. */ int -- 2.41.0