From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by sourceware.org (Postfix) with ESMTPS id DECD73858C55 for ; Wed, 27 Mar 2024 18:15:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DECD73858C55 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DECD73858C55 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::636 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711563308; cv=none; b=UMy5HQyGtHPNPcYVuCch4KS0/k2nZcUsGbIQt15sMy0n5oyS/sxN+0FOY6c9vQ6vIx4z+YD548HJ7a8W+25tMoNDuSoMB1MMCLmp0TZKj/QuHxmx5MA8lf7c7ruMhBaLNPqyeDD/yG2Ocd0cF7zPWfmQwSaFcJlzblZIIY+CGso= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711563308; c=relaxed/simple; bh=eCuFZt2L+i660n0nuEpO6fA/mFPzN9ibA7Yxmkqup4Q=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=ZwY7dgT4yNVh7YdRjqtrvl6FsE1WcURN66QXGUSTW+ob6SqSJylw2Y4333myRgv4Qm7k28CCMa/anwF2wr1wd2TcFnZZkBAaFyw8NWEwYZxffAU3M0Nlj1qANFp70iRBiftPZcsfWsm7hO/dFD3hTl1amruSv+eOYmDGUpFN6/4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-a4715d4c2cbso14396666b.1 for ; Wed, 27 Mar 2024 11:15:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711563304; x=1712168104; darn=gcc.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=FGzHMXhNcyBogZRsfHaiwgWj+YBDbAuJhqKuPWtPn+I=; b=AchkjCaTyj0Zna1Go7YNowlcjvIslxNDHZ0ScNqkgCSBw01CI8cTPNvNQ0eVALGXEL 7arb3o+KvfZdif/Dq/QUJqdvUVzAKWNDbUvGNssnzqhqzk2dumgKiVzLhuuCx5S9Ja8m YKGhXktic6KyvB65rIiWs3XeeJpOdXm2Px4E2lBFCWF9Ox5hIrWjvcqobqFjQdmGKYeH EX7qYTSbnAySJjnbolC0jTHQsD8sGiPeoOV+NvTLEzaj9CAFEsrRK0CvOrazcIyQ1qP2 jMZCWAMPIWgHr1Fm2ikoWIDKuNfVPmXcRpynM9hlLv6RDXzdf55Kox1cN0/noYii6yzV nAtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711563304; x=1712168104; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FGzHMXhNcyBogZRsfHaiwgWj+YBDbAuJhqKuPWtPn+I=; b=JjCKjGHckh+0HVU3zvDpkPGk00E9EYkWd6GpF7jcHvaZYhjfiRad6IIRdHQxQFoTeP cSoR1DkSqdeM98r1L2OCeHm/DYVDYoIoXhiASUfHLzUu7OaD7bWVANeFAKcq5tDEO+pq a5UBdCHAeH7XpY0qxeZx1r3udZIRv7KKKojUtORCwxX8HvMilT5eX6N/wxGmksUcmPAL YNVwZgWk/HGM/xTxtXqM1R4MDz6T7iDw977pZPHOiK2rBibU9exfT0mBB1HXwxKPJUh/ rWd6tsW821ILQvYWPiaYQiwzkiaL8O+IdOfEDcLM4V1gyNT/Ws+V217492nioKnJ6c+0 /KdA== X-Forwarded-Encrypted: i=1; AJvYcCXlETzox+sxYFcRrBPxZxgpJmvJbLNEY6yIS35clFAhrBV4PFMKP2+846jn31SiNTsEEgtpRf+9731itu/Wd6E= X-Gm-Message-State: AOJu0Yw/j/6UGBhq4vItuW0DguYJiF5He+CMbNWvhnt751ww//RyVycA Sk/ucZ6vflb6qa8A2zYha1DdWUUdFESz3NP7tn4dC7mlW5j9pNqmAaGnKcY56MahhAGrxUZ1dAe UU2vMj0CKczzK5R36CyWBh/WfW3z6tos5zDgBsQ== X-Google-Smtp-Source: AGHT+IG45JQbUoH+WyCZ5PMQhKfK6mPliG8cif53maNWAri9+Kaja88B4L/mJa6BBa00e3X18AD8taGzoVqUBZRGSAE= X-Received: by 2002:a17:907:9485:b0:a47:36e5:5514 with SMTP id dm5-20020a170907948500b00a4736e55514mr257813ejc.14.1711563302033; Wed, 27 Mar 2024 11:15:02 -0700 (PDT) MIME-Version: 1.0 References: <20240313080237.1143034-1-christophe.lyon@linaro.org> <1eb529f2-3842-4090-a8e2-f713a28f2394@simark.ca> <78f1d113-f8ac-4a76-8dea-9f92519c1a89@linux.ibm.com> In-Reply-To: <78f1d113-f8ac-4a76-8dea-9f92519c1a89@linux.ibm.com> From: Christophe Lyon Date: Wed, 27 Mar 2024 19:14:53 +0100 Message-ID: Subject: Re: [RFC] add regenerate Makefile target To: Jens Remus Cc: Simon Marchi , binutils@sourceware.org, gdb@sourceware.org, GCC Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,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: 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 ar= e > >> 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 languag= e > >> 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= :-) Thanks, Christophe > Thanks and 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=C3=A4ftsf=C3=BChrung: David Faller; = Sitz der > Gesellschaft: B=C3=B6blingen; Registergericht: Amtsgericht Stuttgart, HRB= 243294 > IBM Data Privacy Statement: https://www.ibm.com/privacy/