From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by sourceware.org (Postfix) with ESMTPS id A270E385840E for ; Mon, 18 Mar 2024 17:28:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A270E385840E 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 A270E385840E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::62b ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710782911; cv=none; b=BUvvv1STo+bSm75hiOIt0jE8SlYxJmqy/QKcPKWUF3JvZLuR96SvjZ0ecGX60G9kNHkJVmCf8dIzil3bWpLDCt4DJWPtBRDtiAvCPRXWETkCvOTKCC7cARC/BpQWquWtyFJIN9R6qcViG0hcTM0XRL2+3d0U+CUkOaHzYmJs9HE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710782911; c=relaxed/simple; bh=SJmBLQlQERY6vQYYNWeQyV7nLkpfQXLtFdFTLZgqLGg=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=JEjtyjBG98TT6YnsgFmu6SNXL2vcs61UUAvdCsdOCynPgZ1uQflGooOZ9rwxjXVYXGC5kY9r3p4JwkBy83ZkQHNPlrB3oBc48lvPnSAudvZo0W8XAQ+dTboHniHrM7WtszwB6iirSXawd6Dz+JMzrfeMqrYSHByNViznlZjWOcc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-a44ad785a44so547548566b.3 for ; Mon, 18 Mar 2024 10:28:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710782907; x=1711387707; darn=sourceware.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=jSvQh+BEKUpJ0td03AVsH9AmVcpLM4fQPR4wDJiM9Qo=; b=T5sIxQlrfKzH4Y4KSs4r8Rw+puxwJWkWV7HtW0ESlL85SaEMR+zGc8r3Lr8aZwPt8o obXEaZPBYYVeKrC5wFxuQWMSw4cQhKXZl6Rhc3i+SQ2an619zDQ9bFXFwwyCvbQz1F0Q K51532EE0gdUkdb6KKme2/RLic9kpb3YgMSr80g+sueYNXVKSL6LkVd2nL48MCkyGjmS llaAjidC2v6/GuVXKUTrxXrCXpWHJ8AbaUAv81PgV5kzuBpeWSrwJewL84wzUvUeYwZR 347PsdV6GTR7Oqb6xcY0QDoANQJiHmvf/T1WXttirooJyQnxLRQRcH3hKwj36wKmfXf2 J7yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710782907; x=1711387707; h=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=jSvQh+BEKUpJ0td03AVsH9AmVcpLM4fQPR4wDJiM9Qo=; b=kMDky5FeMAOJlJEtVHoTLGjvTNTHflcBlN8YG+Rslr01HTCvmzqT4PrlmCbtH6nduz D5SgY3KjJ9plWKn5GQqPRODuL9aC1dQ92TKXkG1c+40PeEPm8NhA+9pb0zJ5rw7UK/Cw xGeclOArEyTLKUf33Lb9ESdzbKKirOELbxFk48vCYHMyZfmZ1YQ+wZCDaqOnWJGoN8oG DavEx2LfUuvLNi9J5/uDnmV5orzspiBRHI0Yy7MXwuZBXMqdThWI9E/CGxNk6jLEWT3p jZvsCeUO6wenksv7x00Qw6zGiqumR7H+dwsyuwhHtJwIgCN+fUnAr6t8e2ZnFkd3x7Yi yfIw== X-Forwarded-Encrypted: i=1; AJvYcCUJGGB6TrzLimldkQhcrOme22rYYpCUzFMvn87e+DLzBOH7+fPeKMHkHAQgjLef2dFJQ0e9px5BJ0weZMlh8RRn/cw= X-Gm-Message-State: AOJu0YyH86dhGOFDe8fgaRq6mBa6yznGkABk2m6IxiwAbNIqU8g9Y3wZ GsO2zvtF7BIq2E52Feg8U1CDw/0frY5WClA8SbFDU8dGVUaaTqwwgz2D1WFLlYOblcHiZ1tMWZx Rf5CbzxGBQK3kTCXUdvwgWh8xjqo9e3pnkw2JDg== X-Google-Smtp-Source: AGHT+IFmaW5XlhrEWOFpmblkiUxkVihgTrwukSRnJBL22V5cwQDlliwE54u4V+fji82bqVt74zbTzMRDPS+PEXJsg0o= X-Received: by 2002:a17:906:ca56:b0:a43:e550:4067 with SMTP id jx22-20020a170906ca5600b00a43e5504067mr7600593ejb.12.1710782907310; Mon, 18 Mar 2024 10:28:27 -0700 (PDT) MIME-Version: 1.0 References: <20240313080237.1143034-1-christophe.lyon@linaro.org> <1eb529f2-3842-4090-a8e2-f713a28f2394@simark.ca> <87edcbk1x3.fsf@tromey.com> In-Reply-To: <87edcbk1x3.fsf@tromey.com> From: Christophe Lyon Date: Mon, 18 Mar 2024 18:28:16 +0100 Message-ID: Subject: Re: [RFC] add regenerate Makefile target To: Tom Tromey Cc: Eric Gallager , Simon Marchi , binutils@sourceware.org, gdb@sourceware.org, gcc@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-4.3 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,T_SCC_BODY_TEXT_LINE 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 Fri, 15 Mar 2024 at 15:25, Tom Tromey wrote: > > >>>>> "Eric" == Eric Gallager writes: > > Eric> Also there are the files generated by cgen, too, which no one seems to > Eric> know how to regenerate, either. > > I thought I sent out some info on this a while ago. > > Anyway what I do is make a symlink to the cgen source tree in the > binutils-gdb source tree, then configure with --enable-cgen-maint. > Then I make sure to build with 'make GUILE=guile3.0'. > > It could be better but that would require someone to actually work on > cgen. > > Eric> And then in bfd there's that chew > Eric> program in the doc subdir. And then in the binutils subdirectory > Eric> proper there's that sysinfo tool for generating sysroff.[ch]. > > gdb used to use a mish-mash of different approaches, some quite strange, > but over the last few years we standardized on Python scripts that > generate files. They're written to be seamless -- just invoke in the > source dir; the output is then just part of your patch. No special > configure options are needed. On the whole this has been a big > improvement. > Good to know that this is perceived as a big improvement, that's a strong argument for moving to a script. I'm not up-to-date with gdb's policy about patches: are they supposed to be posted with or without the regenerated parts included? IIUC they are not included in patch submissions for binutils and gcc, which makes the pre-commit CI miss some patches. Thanks, Christophe > Tom