From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta038.useast.a.cloudfilter.net (omta038.useast.a.cloudfilter.net [44.202.169.37]) by sourceware.org (Postfix) with ESMTPS id 9B0083858D28 for ; Sun, 21 Apr 2024 17:00:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9B0083858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9B0083858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.37 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713718809; cv=none; b=wGrRV/jYnwvXRyQRBPHPC74kFqEL3zb4LdNtxmF1h8MyF7Bdi6/XhF7/AqBl1AMCI9pWuYbJ0Ppy0A5RzXXNSCl5uwa4SV+qFzeLUqv8vEu+wQQWp7nQeBxWMHBNqCzxBk9WuT7eqhy4tXQ9jS6bPP1n+9JEmydrfPFtpcvqxtw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713718809; c=relaxed/simple; bh=rzA7W2OPLL6icsiyVKp7u3kF0xbBqB2zAL/cbX5ljP8=; h=DKIM-Signature:From:Date:Subject:MIME-Version:Message-Id:To; b=RPTdOa8eYe2SoQhgL6L8WzR/KSH36FzPt9hS8seeD3FpC7q8fsRO7c4auMRImFqb3YBgv+V5V/QnwmG3epSyzwMFWnPuRZv4/AjOkMesaKvkldqvT1W+rZCL1FJOdEzS3oOc9ikx1ZJTFTjrmDOzA4ZuUQWKxDGTJQrGnZDQJIc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-6002a.ext.cloudfilter.net ([10.0.30.222]) by cmsmtp with ESMTPS id yZvzrEQKOQr4SyaXsrn4r8; Sun, 21 Apr 2024 17:00:04 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id yaXrrPsPgiKqRyaXrrylJ2; Sun, 21 Apr 2024 17:00:03 +0000 X-Authority-Analysis: v=2.4 cv=I9quR8gg c=1 sm=1 tr=0 ts=66254613 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=IkcTkHD0fZMA:10 a=raytVjVEu-sA:10 a=Qbun_eYptAEA:10 a=ToalVDDbPj6qE0ikdkEA:9 a=QEXdDO2ut3YA:10 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=To:In-Reply-To:References:Message-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:Subject:Date:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=WKvGjUaWKCs3Ln4Ie3apdjy5p3qUi1Bn73whWhytuDE=; b=fdknly6BkOlQKW353wdFFLkdsN 0JKz2QIlzjqW7R9tpV4xLcLBFVPU50H7ob9QoqTvbjfodbOmUEzbGJzGzdFEyCKUYCbWw7HOqai4v YqPN7EC3uKG67bF+HD6KxiYrZ; Received: from 97-122-86-252.hlrn.qwest.net ([97.122.86.252]:53968 helo=[192.168.0.21]) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1ryaXq-003wVC-2u for gdb-patches@sourceware.org; Sun, 21 Apr 2024 11:00:02 -0600 From: Tom Tromey Date: Sun, 21 Apr 2024 11:00:02 -0600 Subject: [PATCH 02/10] Allow initialization functions in .y files MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240421-canon-fixes-v1-2-4dc4791d270d@tromey.com> References: <20240421-canon-fixes-v1-0-4dc4791d270d@tromey.com> In-Reply-To: <20240421-canon-fixes-v1-0-4dc4791d270d@tromey.com> To: gdb-patches@sourceware.org X-Mailer: b4 0.13.0 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: 97.122.86.252 X-Source-L: No X-Exim-ID: 1ryaXq-003wVC-2u X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-86-252.hlrn.qwest.net ([192.168.0.21]) [97.122.86.252]:53968 X-Source-Auth: tom+tromey.com X-Email-Count: 3 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfJAhCcvv0juDrxRKcshuPxnCcMPLnGhYn47nF9SBRnHlAkT3gu4AfAbah9BfqMOP0YE+2ACrrxuQEC/cmHFgSDLEG69NVa48Ws5L6jZEn5/WGNgeJgf+ QhZvXLyUsUf4MZzZIvt+hAHg3D1gcwmcElmwgKtX5Y4ESLOxqf5Z/7VXEWZ/SfyRmrm+0eY4NFryb2wjxw3mTsg43J2n1FVBmko= X-Spam-Status: No, score=-3021.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,GIT_PATCH_0,JMQ_SPF_NEUTRAL,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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: If you add an initialization function to a .y file, it will not show up in init.c, because if the yacc output is in the build tree, it won't be found. This patch changes the Makefile to be more robust in this situation. --- gdb/Makefile.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 2f7fc1ca249..b51a294ed88 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -2172,7 +2172,9 @@ INIT_FILES = \ init.c: stamp-init; @true stamp-init: $(INIT_FILES) config.status $(srcdir)/make-init-c $(ECHO_INIT_C) - $(SILENCE) $(srcdir)/make-init-c $(addprefix $(srcdir)/,$(INIT_FILES)) > init.c-tmp + $(SILENCE) $(srcdir)/make-init-c \ + $(filter-out config.status $(srcdir)/make-init-c,$^) \ + > init.c-tmp $(SILENCE) $(SHELL) $(srcdir)/../move-if-change init.c-tmp init.c $(SILENCE) echo stamp > stamp-init -- 2.44.0