From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id WPIwNK0wBWb9QxkAWB0awg (envelope-from ) for ; Thu, 28 Mar 2024 04:56:13 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=kXTD6ia5; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id D114D1E0C0; Thu, 28 Mar 2024 04:56:13 -0400 (EDT) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id BE7271E030 for ; Thu, 28 Mar 2024 04:56:11 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 15A903861823 for ; Thu, 28 Mar 2024 08:56:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 15A903861823 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1711616171; bh=++l+nrJSLGpRG7MEXzNFEzhKjcVb/PTn1XaetNyVBfE=; h=Date:Subject:To:Cc:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=kXTD6ia5mF1OkREtt4DKcc6w/f90MLWKTrBOu2DqAlZTM4ChBd7NGBSQ/zWJlwl4H /uZoYQjsVazga/KMlPovcddjhSBUidDrFRdhJdlnQj4nMnFvHPNTSQanrrg3s4lUAc I+K3ySR8oP7qeirEiMGT302M60pGOFfXi5Pr2uds= Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id 5D86C3861000; Thu, 28 Mar 2024 08:55:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5D86C3861000 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5D86C3861000 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711616119; cv=none; b=xTgzqkjDj7A0t8hBdbL75rEDEuBd+Z7qjX1ps0srtZdWv7ZHd01Mo87OwoC4DgnY0r8GaZfFKP24daUaXN4ahxaBnwXfdBq4ZXk/VDirlQGDhSaZxo9BLF6Hq3dRHizzVCsCPzJzjErORZriBQsywOxYx8InFJQopTUx1lZkJhk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711616119; c=relaxed/simple; bh=Gq9OzBznK9RdSKkF5Gu1cd9NR0My44Q5U/Dkey+Rls8=; h=DKIM-Signature:Message-ID:Date:Subject:To:From:MIME-Version; b=F2jWaHFrY0bjnpCdjBjsfhhSUXLO37PqmVsTkIvlDEhlv2ckIbfu8VM9s6wUDstMKlsjOdyQdmRTydPnDIXv0armTNRZKZ3O6JPmv4/0gV0jc68S+L2ZfsbPf9kNsl7/4gq2PIN/eXaLDAw+QNATOlhP9uIJQ7zBZwrf2UAknHE= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0356516.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 42S8XAQa024866; Thu, 28 Mar 2024 08:55:13 GMT Received: from ppma13.dal12v.mail.ibm.com (dd.9e.1632.ip4.static.sl-reverse.com [50.22.158.221]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3x554q81k1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 28 Mar 2024 08:55:12 +0000 Received: from pps.filterd (ppma13.dal12v.mail.ibm.com [127.0.0.1]) by ppma13.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 42S5r0pn011233; Thu, 28 Mar 2024 08:55:12 GMT Received: from smtprelay07.fra02v.mail.ibm.com ([9.218.2.229]) by ppma13.dal12v.mail.ibm.com (PPS) with ESMTPS id 3x2bmmc25s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 28 Mar 2024 08:55:12 +0000 Received: from smtpav02.fra02v.mail.ibm.com (smtpav02.fra02v.mail.ibm.com [10.20.54.101]) by smtprelay07.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 42S8t8j947776134 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 28 Mar 2024 08:55:10 GMT Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 604FB2004E; Thu, 28 Mar 2024 08:55:08 +0000 (GMT) Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3C1892004B; Thu, 28 Mar 2024 08:55:08 +0000 (GMT) Received: from [9.155.201.79] (unknown [9.155.201.79]) by smtpav02.fra02v.mail.ibm.com (Postfix) with ESMTP; Thu, 28 Mar 2024 08:55:08 +0000 (GMT) Message-ID: <6cc55677-e1ad-4d66-a8b6-931ad750a20e@linux.ibm.com> Date: Thu, 28 Mar 2024 09:55:07 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [RFC] add regenerate Makefile target To: Christophe Lyon Cc: Simon Marchi , binutils@sourceware.org, gdb@sourceware.org, GCC Mailing List , Andreas Krebbel References: <20240313080237.1143034-1-christophe.lyon@linaro.org> <1eb529f2-3842-4090-a8e2-f713a28f2394@simark.ca> <78f1d113-f8ac-4a76-8dea-9f92519c1a89@linux.ibm.com> Content-Language: en-US Organization: IBM Deutschland Research & Development GmbH In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: 4jhl4k0W8-HO07KTVMuaAtXXuHaY2InQ X-Proofpoint-GUID: 4jhl4k0W8-HO07KTVMuaAtXXuHaY2InQ Content-Transfer-Encoding: 8bit X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-28_07,2024-03-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 adultscore=0 mlxlogscore=999 impostorscore=0 priorityscore=1501 lowpriorityscore=0 malwarescore=0 spamscore=0 phishscore=0 mlxscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2403210000 definitions=main-2403280058 X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Jens Remus via Gdb Reply-To: Jens Remus Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" Am 27.03.2024 um 19:14 schrieb Christophe Lyon: > On Tue, 26 Mar 2024 at 16:42, Jens Remus wrote: >> Am 15.03.2024 um 09:50 schrieb Christophe Lyon: >>> On Thu, 14 Mar 2024 at 19:10, Simon Marchi wrote: >>>> On 2024-03-13 04:02, Christophe Lyon via Gdb wrote: >> ... >>>> There's just the issue of files that are generated using tools that are >>>> compiled. When experimenting with maintainer mode the other day, I >>>> stumbled on the opcodes/i386-gen, for instance. I don't have a good >>>> solution to that, except to rewrite these tools in a scripting language >>>> like Python. >>> >>> So for opcodes, it currently means rewriting such programs for i386, >>> aarch64, ia64 and luckily msp430/rl78/rx share the same opc2c >>> generator. >>> Not sure how to find volunteers? >> >> Why are those generated source files checked into the repository and not >> generated at build-time? Would there be a reason for s390 do so as well >> (opcodes/s390-opc.tab is generated at build-time from >> opcodes/s390-opc.txt using s390-mkopc built from opcodes/s390-mkopc.c)? >> > I remember someone mentioned a requirement of being able to rebuild > with the sources on a read-only filesystem. > I don't know if there's a requirement that such generated files should > be part of the source tree though. Is opcodes/s390-opc.tab in builddir > or in srcdir? > > I think there are other motivations but I can't remember them at the moment :-) Thank you for the insights, Christophe! opcodes/s390-opc.tab is generated in builddir. Regards, Jens -- Jens Remus Linux on Z Development (D3303) and z/VSE Support +49-7031-16-1128 Office jremus@de.ibm.com IBM IBM Deutschland Research & Development GmbH; Vorsitzender des Aufsichtsrats: Wolfgang Wendt; Geschäftsführung: David Faller; Sitz der Gesellschaft: Böblingen; Registergericht: Amtsgericht Stuttgart, HRB 243294 IBM Data Privacy Statement: https://www.ibm.com/privacy/