From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by sourceware.org (Postfix) with ESMTPS id DB7693858C98 for ; Wed, 27 Mar 2024 18:15:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DB7693858C98 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 DB7693858C98 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::62e ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711563308; cv=none; b=IhqDLNQ53nl3F8Gg8s2dZNtR/N0IcTAUnWxH/qdoghwQt2vJJt/NLOxRAoeOBJ8osUSONCzbWDKljHx5C+eFiFbA1NFEqL03umbk4nj/PJbeN0hLA+0wKEAotlnycP+tpiM0P07ZKtuo/A30cCyKCgakZXgVvGvohhlUMWpxAb4= 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=fbV8n5HfuYo0eOb0s+omKmlFuQK/cvmpCiyrM4cIxMxF3OOi73JZy4pbn2RXwdVygMkQoFZxoPrBnz9lZnI6Z1a+fMcn3/uuXTjUjyrCT8YYesSIGeQldmvDOnCheiEhs8HGxhaZa9Npu5AMaG1v3vCUasFqhOGXYovuhrfQejI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a4e1566610fso77666b.2 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=sourceware.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=llhwDVA44CLBqIjsZX3pybTTPg5bC/SylU+XT/9lUfxjceM2FuX8E7JkqVGIso1vvT 5ZK8TeOIoX+Y387W997IWAcq2i/rJROe5u+I5spO0Ez1uFwMQi434OA29S92YxMbKW26 NdtWMlEmfuHVQGsyJ5XclsFZ3JyfkWe59LReMzdSxJcxh7GuSbltBZeFtCpl76jbf1pu peUAsDPylD4W86csVRG33QJIujabAuGf0LzZkMfvWb80lX4dvaUKFfl1OEiQjAYL5eZh 9xcIE/b4pyF70vVpjA1/+9iYs9W1hEUR5YbrA0NCzDfh6CPOazuF/Yh/hE/3sqDJbyao DcFg== 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=Ao0+Uo3fFX/A1wUKN1G4MnR4lck0np/9EgHW4AIjPw1B4tBaeXRrGrxKwOVy0xw8NW xdnh71GeOtWPmQZ1q4EdYdvSE+GnTynbBrSM2LDRQGD0MjIKTE9xyPj3tIp/mdI+i2YR NfPNpvFjhkYm72du8/iDGrJJs0xHGVOb2iQMSOmXUF8PWzN91mxxcXtEagNMkDrcSkMj abFzSVIIwv66bP4OG0oVwDk35meBQROaYSoxnWPPEKZoDiwBH+EooPH2Q9gEs5R8SP8n 9Jya+tZtYTK+SO0OHUMargPNOfp9OcTfgAATblxNxg5ztFpqcA8hKfs4P10HkQ2Eg8WY f11A== X-Forwarded-Encrypted: i=1; AJvYcCWj+dvRzM+rUzmgLGVe+wQXEaun3AyRHhCIVhCCoNRv13aG6LADqBjZ9hFtNGfIys9w2tSi6ZE2YJgp7OUYPAoI5aU= X-Gm-Message-State: AOJu0YwfmBoA88K3d3tN0aH/BKEFO+6bBYtsP7XlSWUtgymL3PrJEbhO kwxlAJUZ2OXDd7cW+SOqlEEOxJomjSH6cDgMQJyY4o0pi/0jMSG8jUGvBAKyuu0LelamVa6/qeP C2b8n8eDDaGIV2ql0kMfOqhA8JoPNnTkL0jiYGw== 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/