| Message ID | 20251203085111.3655102-1-tdevries@suse.de |
|---|---|
| State | New |
| Headers |
Return-Path: <binutils-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 495EB4D108FF for <patchwork@sourceware.org>; Wed, 3 Dec 2025 08:52:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 495EB4D108FF Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=fwzcjkNx; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=otjNRCv8; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=k8YuY2Xi; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=0zGrIOwz X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) by sourceware.org (Postfix) with ESMTPS id 5B1554D1085E for <binutils@sourceware.org>; Wed, 3 Dec 2025 08:51:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5B1554D1085E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5B1554D1085E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=195.135.223.131 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1764751875; cv=none; b=AKXyS5P81dZRtIljEmNXEKp+1GwrK3xE0T8354HG+kGrgjMn0+vGxUfgWCO0c36wOwvRvzLhZnJ9gMM+45geRnWAbCQugfqhgoC+JIWW8i3AcKfpqutWqDxt4YaW4uYWCOqQ7LFiAEt8Mbh0lgH5CTF7Ti/oT+F1/EE8X50h0XY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1764751875; c=relaxed/simple; bh=jaTLNgN7BrKD77CHH7LfJACAfydF78IZ/LyFEM09a1o=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:From: To:Subject:Date:Message-ID:MIME-Version; b=mnHWkl14RbbUvtLAvZewnNyE+tfetnvQ9/rxmP9zxMoVG++m33XjP+/84Dd8Qct/PUSCfJbu4ZafehpRdboxYNjBNoP0S1WImmCcNN9tFJGeV0fxauqE9r5ZCLqSEIzvxATQ09v+0vTeo6zmHJsWidHIhclmxaxipyTQhbXXsDs= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5B1554D1085E Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id A55D15BD11; Wed, 3 Dec 2025 08:51:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1764751873; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=mycJcOji4Oi+nOTlPNPpZ16z2u2E59FS5QrrwmPJoTg=; b=fwzcjkNxvNcDqrFo0pIawBfrhnzF1g6mEBWLlCeT+Z9lUoqwXw25Wg1iLTj8loVGHPczkg EsuW9EaCCQOL3tZ/JybcanIiGDkFHOHQBzcRqigGbZuYBPQT/chvP063gcxdP6L6saot5P 5rceHsLa4lDourbUw2LiqrCtC27J0Jk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1764751873; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=mycJcOji4Oi+nOTlPNPpZ16z2u2E59FS5QrrwmPJoTg=; b=otjNRCv8FryN68Xon8sw4TS9/dWc4CSbbAvGdMtA4oN6hgz9XtaXTzTwG2TuSrmyMdrz2m agAtHSXu3eW06PAw== Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=k8YuY2Xi; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=0zGrIOwz DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1764751871; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=mycJcOji4Oi+nOTlPNPpZ16z2u2E59FS5QrrwmPJoTg=; b=k8YuY2XiIN75lmaf3h3vw0V3ldTl2gAxMRN4dFz2wMjzXBvC61ggCDH1eeWHWzs+GJo3wU LzQOvR9kMMKyy4v1yf9jnU5cYYNQU3Dzk62XAoUSNy0/YOyhM8OXsOT3e7Qyn0R5cH4hMh NDcs6T7nB8SxAVmOlRcKjaa49l2Rqwk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1764751871; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=mycJcOji4Oi+nOTlPNPpZ16z2u2E59FS5QrrwmPJoTg=; b=0zGrIOwzkoTE6UgakygRf/968lp9TeWh3XToXXKNMDXc+qg8Pll3UU7gq/ugt58zuN3jGI oYEZ5ME3IwdrbWCQ== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 85E0A3EA63; Wed, 3 Dec 2025 08:51:11 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id CrnoHv/5L2l+agAAD6G6ig (envelope-from <tdevries@suse.de>); Wed, 03 Dec 2025 08:51:11 +0000 From: Tom de Vries <tdevries@suse.de> To: gdb-patches@sourceware.org, binutils@sourceware.org Subject: [PATCH] binutils-gdb/git: Handle *.ac and *.m4 files in .gitattributes Date: Wed, 3 Dec 2025 09:51:11 +0100 Message-ID: <20251203085111.3655102-1-tdevries@suse.de> X-Mailer: git-send-email 2.51.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-2.51 / 50.00]; BAYES_HAM(-2.50)[97.76%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; MIME_TRACE(0.00)[0:+]; FUZZY_RATELIMITED(0.00)[rspamd.com]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:dkim,suse.de:mid,imap1.dmz-prg2.suse.org:helo,imap1.dmz-prg2.suse.org:rdns]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; RCVD_TLS_ALL(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[suse.de:+] X-Rspamd-Action: no action X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spam-Level: X-Rspamd-Queue-Id: A55D15BD11 X-Spam-Score: -2.51 X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_NONE, SPF_PASS, TXREP, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> Errors-To: binutils-bounces~patchwork=sourceware.org@sourceware.org |
| Series |
binutils-gdb/git: Handle *.ac and *.m4 files in .gitattributes
|
|
Commit Message
Tom de Vries
Dec. 3, 2025, 8:51 a.m. UTC
Since commit 52ca3d3fe61 ("toplevel: unify the GCC and GDB/binutils .editorconfig
files"), .editorconfig has settings for .ac and .m4 files:
...
[*.{ac,m4}]
indent_style = tab
indent_size = 2
trim_trailing_whitespace = true
...
There are no setting for those files in .gitattributes, so the whitespace
attribute defaults to trailing-space (shorthand for blank-at-eol,
blank-at-eof) and space-before-tab.
Since according to .editorconfig the indentation style is tab, add
indent-with-non-tab as well.
Since aclocal.m4 is generated, unset the whitespace attribute. Likewise for
configure.
---
.gitattributes | 10 ++++++++++
1 file changed, 10 insertions(+)
base-commit: d03293898d81e4273ac7f9163a8186dba46db0e5
Comments
>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:
Tom> Since commit 52ca3d3fe61 ("toplevel: unify the GCC and GDB/binutils .editorconfig
Tom> files"), .editorconfig has settings for .ac and .m4 files:
Tom> ...
Tom> [*.{ac,m4}]
Tom> indent_style = tab
Tom> indent_size = 2
Tom> trim_trailing_whitespace = true
Tom> ...
Tom> There are no setting for those files in .gitattributes, so the whitespace
Tom> attribute defaults to trailing-space (shorthand for blank-at-eol,
Tom> blank-at-eof) and space-before-tab.
Tom> Since according to .editorconfig the indentation style is tab, add
Tom> indent-with-non-tab as well.
Tom> Since aclocal.m4 is generated, unset the whitespace attribute. Likewise for
Tom> configure.
FWIW this seems fine to me.
Tom
On 12/3/25 9:51 AM, Tom de Vries wrote: > Since commit 52ca3d3fe61 ("toplevel: unify the GCC and GDB/binutils .editorconfig > files"), .editorconfig has settings for .ac and .m4 files: > ... > [*.{ac,m4}] > indent_style = tab > indent_size = 2 > trim_trailing_whitespace = true > ... > > There are no setting for those files in .gitattributes, so the whitespace > attribute defaults to trailing-space (shorthand for blank-at-eol, > blank-at-eof) and space-before-tab. > > Since according to .editorconfig the indentation style is tab, add > indent-with-non-tab as well. > > Since aclocal.m4 is generated, unset the whitespace attribute. Likewise for > configure. Ping. Thanks, - Tom > --- > .gitattributes | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/.gitattributes b/.gitattributes > index 6f7c6d8ba52..3639ebcfe55 100644 > --- a/.gitattributes > +++ b/.gitattributes > @@ -33,3 +33,13 @@ ChangeLog merge=merge-changelog > *.[cChH] whitespace=space-before-tab,indent-with-non-tab,trailing-space > *.exp whitespace=space-before-tab,indent-with-non-tab,trailing-space > *.tcl whitespace=space-before-tab,indent-with-non-tab,trailing-space > + > +# Autoconf. > + > +*.ac whitespace=space-before-tab,indent-with-non-tab,trailing-space > +*.m4 whitespace=space-before-tab,indent-with-non-tab,trailing-space > + > +# Generated files. > + > +configure -whitespace > +aclocal.m4 -whitespace > > base-commit: d03293898d81e4273ac7f9163a8186dba46db0e5
On Wed, Dec 17, 2025 at 10:25:24PM +0100, Tom de Vries wrote: > On 12/3/25 9:51 AM, Tom de Vries wrote: > > Since commit 52ca3d3fe61 ("toplevel: unify the GCC and GDB/binutils .editorconfig > > files"), .editorconfig has settings for .ac and .m4 files: > > ... > > [*.{ac,m4}] > > indent_style = tab > > indent_size = 2 > > trim_trailing_whitespace = true > > ... > > > > There are no setting for those files in .gitattributes, so the whitespace > > attribute defaults to trailing-space (shorthand for blank-at-eol, > > blank-at-eof) and space-before-tab. > > > > Since according to .editorconfig the indentation style is tab, add > > indent-with-non-tab as well. > > > > Since aclocal.m4 is generated, unset the whitespace attribute. Likewise for > > configure. > > Ping. I'll rubber-stamp this for the binutils side, but IMO there is no need for a global gdb maintainer to wait for approval from binutils maintainers for this shared file.
[+cc GCC] On Thu, 18 Dec 2025, Alan Modra wrote: > I'll rubber-stamp this for the binutils side, but IMO there is no need > for a global gdb maintainer to wait for approval from binutils > maintainers for this shared file. Should this be documented in top-level MAINTAINERS? Should this file be kept in sync with GCC? Maciej
diff --git a/.gitattributes b/.gitattributes index 6f7c6d8ba52..3639ebcfe55 100644 --- a/.gitattributes +++ b/.gitattributes @@ -33,3 +33,13 @@ ChangeLog merge=merge-changelog *.[cChH] whitespace=space-before-tab,indent-with-non-tab,trailing-space *.exp whitespace=space-before-tab,indent-with-non-tab,trailing-space *.tcl whitespace=space-before-tab,indent-with-non-tab,trailing-space + +# Autoconf. + +*.ac whitespace=space-before-tab,indent-with-non-tab,trailing-space +*.m4 whitespace=space-before-tab,indent-with-non-tab,trailing-space + +# Generated files. + +configure -whitespace +aclocal.m4 -whitespace