From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id E6CAB3860C2E for ; Thu, 28 Mar 2024 08:55:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E6CAB3860C2E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linux.ibm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E6CAB3860C2E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=148.163.158.5 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711616116; cv=none; b=vwSG9PdGNso+WO5Eazj1lrPyCAxN7lLHIU9+wtpGy0IYnHEtDVUk1c+5GcXOjzSZ5sYJipMWnkBJIt3JI9j9qr76Nfu9lRsjZ5/BkNMgW0WqEEODvZ86+itoJzuRXy2MkGg9zJ2GmoePIZuiLkogZFnxHFFNHwUNCuKcGHZxhM4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711616116; c=relaxed/simple; bh=Gq9OzBznK9RdSKkF5Gu1cd9NR0My44Q5U/Dkey+Rls8=; h=DKIM-Signature:Message-ID:Date:Subject:To:From:MIME-Version; b=UES9h/ZrNPZ20EV0yWFi7CPu6FKq+2vEj0aEWJBCWnB7S2B91w3/dguQEDKtzKHh94xWY0IXQpXHrsYJ5OBxgEPFlbLjOBAeR72CLKK7HPVSIcvi4uoqpi/AkOU3q5fidw2KDTCC7vGHKKz3bpovGJebzYHE92alvwV63tB3KLk= 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pp1; bh=++l+nrJSLGpRG7MEXzNFEzhKjcVb/PTn1XaetNyVBfE=; b=MNX9Sozb071bi4c1Lr27dvhWtq3aX30qJjQbpN4Yh/p6kqY8YiHV71x2yF+/jmjJHu+8 HY+T8m9t5Whya/5d6sfXYDw6oxTHkK3jOM3XLgsFOa6ahNkmsVYPLn3Cn38D5lEFesjY zXiTPdEke2K85+cwFXFkMzRSRJaWgJKihGHZHDBthKSJFx2vexLmWOvm8pvRxb4Awx5t 6MZz1thqRoVT/S9WLZNH6Gm/bnLpB5YNEDvRKAecJKBo46Xn/Yh7ZAFniUJqIRFEQfGx CxNJw9oCRuQxdnCb7w7Zh5SsO0iEv68OXRQsOWNpL+gCOyJtCMh6atdQmC9+H5da07/B yQ== 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> From: Jens Remus 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.1 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=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: 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/