| Message ID | 20240812154322.2315864-1-hjl.tools@gmail.com |
|---|---|
| Headers |
Return-Path: <binutils-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8A8713858D20 for <patchwork@sourceware.org>; Mon, 12 Aug 2024 15:44:04 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by sourceware.org (Postfix) with ESMTPS id 2BE053858D34 for <binutils@sourceware.org>; Mon, 12 Aug 2024 15:43:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2BE053858D34 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2BE053858D34 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1029 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1723477406; cv=none; b=DbAee0q8pFqsWwKxGGY+XEZwJ0uN3Fad/dClm6c2Vx+KjqDy73iwJ4ZpVFEgSgyTEBI+qKtIOMvcsAm/LrV2XTi0ddAzZBLuR6w9ggRYY41uLtVk0e9EKsVeF3pyTlC1qcufixpyjqhYnjOHt34P5AVpFqbbuerbLyHlQLBrGVY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1723477406; c=relaxed/simple; bh=TTFdIM+reVBsrH8kMjkGk+UXBrC5hmhDvuFCBPRO35Y=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Qgrf4nHc6WbT0E00ageIPfk4AGk51CRJVScMCJ21VCMxFc/5SduUVR44rlfH3POc6lngGxdt0J9p4IPOkVqhTTipELBXwWAz3PCQpgrMDijGhuFicuR4vhfiCHHR0OZ237NxbumLQ5me2oyQuIkt3gEMqaLuZdL/P4yR1wi0nyM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pj1-x1029.google.com with SMTP id 98e67ed59e1d1-2cd34c8c588so2964570a91.0 for <binutils@sourceware.org>; Mon, 12 Aug 2024 08:43:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723477404; x=1724082204; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=O+kColnesvZiJCOY8YuO359+BXyYwWrVRmprQQ27BnI=; b=XkOEq4cW+LgxZ6oyjxGQ4WJDDLQTYTgDlHdrJiYNWe0YVdyftRoKATjxmXR5yAyFR1 FMkDrcfyQSzj41OIr6yUxzJThJZpw/9MYWYrtZA1v0FiVBnmqNPwD07lXdv0YSYfv2/X j3rBDWBmGDMQLzYlR/NP1OhBdESfkB5SkgEZ4nTV6Fhzv5AbiiQRo0YpbadKr2xpZHv2 whpRBz+8Fwvq7wvXhwwfyR1dLYgGQyvUpVpg92zuzjqQ0VZTkU4pUzXWZl8nJOa0d9gS byj1Uw21e7u6SfXDYfOuc5nSkQ/BSXSSHYeVkAW8WyqifRPBXiJqdYb8IlFBaPsQWqIM RhaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723477404; x=1724082204; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=O+kColnesvZiJCOY8YuO359+BXyYwWrVRmprQQ27BnI=; b=adcnJXYh5vzEgHW5i9dtC8KkWzeS7L8NEdwUb3jY2sUYQAQ1um8DrL2boBJxK0gqHT 5QvGdLIDaCFiUg5LHoaD4KJ9tBRs0KZbI/uKY0R8UZ2CWOq02vwOnUpvk6cFeBN8cnAC WmcXhpoOUGVbTGLiLP5pheJCRHHw1nXeR046mbYAC8W6iHnJvJbMQ5xXPOD/bJSsr2Zz 6ccCiCfCpWZFFwDHZA1c2E5ERqWXoUrCkO//9pzlwOfbuhD6NfAbnOKfBmFM9rxWCU+w w6t7Lf1+iL0GimywT1ZJR/SaK7cVdQgwAw0IeXCrbtFgvOAdIKVwlvgFBjzjmpl9BPPM l6gA== X-Gm-Message-State: AOJu0YxV4i3JeWhkbES4mrr79tEnCVaJ3Spk7kbHfHtZ24zRt5DkJ0vp Ahojr4oTI21zOuOdYfx8ax007j1alTia7zT9Cadb8eQU1fHMxVXv X-Google-Smtp-Source: AGHT+IEi4xjAlnp/UJRDEyvNgg1iw1omTYpWScxGGIGcm5h8z2xfFmI96n5KS3+6beyz334/8SzihQ== X-Received: by 2002:a17:90a:7c05:b0:2cd:27be:8218 with SMTP id 98e67ed59e1d1-2d3924d5354mr728248a91.8.1723477404035; Mon, 12 Aug 2024 08:43:24 -0700 (PDT) Received: from gnu-cfl-3.localdomain ([172.56.169.70]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2d1fcfe34c0sm5261698a91.45.2024.08.12.08.43.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Aug 2024 08:43:23 -0700 (PDT) Received: from gnu-cfl-3.. (localhost [IPv6:::1]) by gnu-cfl-3.localdomain (Postfix) with ESMTP id 8AA16740082; Mon, 12 Aug 2024 08:43:22 -0700 (PDT) From: "H.J. Lu" <hjl.tools@gmail.com> To: binutils@sourceware.org Cc: nickc@redhat.com, jbeulich@suse.com Subject: [PATCH v4 0/3] Restore the original macro behaviors Date: Mon, 12 Aug 2024 08:43:19 -0700 Message-ID: <20240812154322.2315864-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3009.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_ABUSEAT, RCVD_IN_DNSWL_NONE, RCVD_IN_SBL_CSS, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.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 |
Restore the original macro behaviors
|
|
Message
H.J. Lu
Aug. 12, 2024, 3:43 p.m. UTC
Changes in v4:
1. Add inner white spaces to arg1 test comments.
Changes in v3:
1. Add test for a white space before argument added by C preprocessor to
macros/arg1.s.
2. Add comments to tests.
Changes in v2:
1. Mention PR gas/32073 in reverting commits.
2. Add a test from x86-64 glibc.
----
commit 6ae8a30d44f016cafb46a75843b5109316eb1996
Author: Jan Beulich <jbeulich@suse.com>
Date: Fri Aug 9 11:59:31 2024 +0200
gas: have scrubber retain more whitespace
breaks GCC builds for ARM, AVR, PRU and others as well as x86-64 kernel
and glibc builds. Revert
7dd0dfbde7e gas: drop scrubber states 14 and 15
6ae8a30d44f gas: have scrubber retain more whitespace
to restore the original macro behaviors and add tests from Linux kernel
and glibc.
H.J. Lu (3):
Revert "gas: drop scrubber states 14 and 15"
Revert "gas: have scrubber retain more whitespace"
gas: Add macro tests for PR gas/32073
gas/NEWS | 7 -
gas/app.c | 200 ++++++++++++++++++------
gas/config/tc-aarch64.c | 19 +--
gas/config/tc-arm.c | 2 -
gas/config/tc-crx.c | 6 +-
gas/config/tc-csky.c | 23 +--
gas/config/tc-ia64.h | 3 +
gas/config/tc-pru.c | 10 +-
gas/config/tc-sparc.c | 48 ++----
gas/config/tc-tic6x.h | 2 +
gas/config/tc-v850.c | 4 -
gas/testsuite/gas/all/macro.l | 10 --
gas/testsuite/gas/all/macro.s | 4 +-
gas/testsuite/gas/i386/x86-64-apx-nf.s | 40 ++---
gas/testsuite/gas/i386/x86-64-macro-1.d | 11 ++
gas/testsuite/gas/i386/x86-64-macro-1.s | 9 ++
gas/testsuite/gas/i386/x86-64.exp | 2 +
gas/testsuite/gas/macros/arg1.d | 7 +
gas/testsuite/gas/macros/arg1.s | 12 ++
gas/testsuite/gas/macros/macros.exp | 2 +
opcodes/cgen-asm.in | 52 +++---
opcodes/epiphany-asm.c | 52 +++---
opcodes/fr30-asm.c | 52 +++---
opcodes/frv-asm.c | 52 +++---
opcodes/ip2k-asm.c | 52 +++---
opcodes/iq2000-asm.c | 52 +++---
opcodes/lm32-asm.c | 52 +++---
opcodes/m32c-asm.c | 52 +++---
opcodes/m32r-asm.c | 52 +++---
opcodes/mep-asm.c | 52 +++---
opcodes/mt-asm.c | 52 +++---
opcodes/nds32-asm.c | 5 -
opcodes/or1k-asm.c | 52 +++---
opcodes/xstormy16-asm.c | 52 +++---
34 files changed, 482 insertions(+), 620 deletions(-)
create mode 100644 gas/testsuite/gas/i386/x86-64-macro-1.d
create mode 100644 gas/testsuite/gas/i386/x86-64-macro-1.s
create mode 100644 gas/testsuite/gas/macros/arg1.d
create mode 100644 gas/testsuite/gas/macros/arg1.s
Comments
On 12.08.2024 17:43, H.J. Lu wrote: > Changes in v4: > > 1. Add inner white spaces to arg1 test comments. > > Changes in v3: > > 1. Add test for a white space before argument added by C preprocessor to > macros/arg1.s. > 2. Add comments to tests. > > Changes in v2: > > 1. Mention PR gas/32073 in reverting commits. > 2. Add a test from x86-64 glibc. > > ---- > commit 6ae8a30d44f016cafb46a75843b5109316eb1996 > Author: Jan Beulich <jbeulich@suse.com> > Date: Fri Aug 9 11:59:31 2024 +0200 > > gas: have scrubber retain more whitespace > > breaks GCC builds for ARM, AVR, PRU and others as well as x86-64 kernel > and glibc builds. Revert > > 7dd0dfbde7e gas: drop scrubber states 14 and 15 > 6ae8a30d44f gas: have scrubber retain more whitespace > > to restore the original macro behaviors and add tests from Linux kernel > and glibc. > > H.J. Lu (3): > Revert "gas: drop scrubber states 14 and 15" > Revert "gas: have scrubber retain more whitespace" > gas: Add macro tests for PR gas/32073 > > gas/NEWS | 7 - > gas/app.c | 200 ++++++++++++++++++------ > gas/config/tc-aarch64.c | 19 +-- > gas/config/tc-arm.c | 2 - > gas/config/tc-crx.c | 6 +- > gas/config/tc-csky.c | 23 +-- > gas/config/tc-ia64.h | 3 + > gas/config/tc-pru.c | 10 +- > gas/config/tc-sparc.c | 48 ++---- > gas/config/tc-tic6x.h | 2 + > gas/config/tc-v850.c | 4 - > gas/testsuite/gas/all/macro.l | 10 -- > gas/testsuite/gas/all/macro.s | 4 +- > gas/testsuite/gas/i386/x86-64-apx-nf.s | 40 ++--- > gas/testsuite/gas/i386/x86-64-macro-1.d | 11 ++ > gas/testsuite/gas/i386/x86-64-macro-1.s | 9 ++ > gas/testsuite/gas/i386/x86-64.exp | 2 + > gas/testsuite/gas/macros/arg1.d | 7 + > gas/testsuite/gas/macros/arg1.s | 12 ++ > gas/testsuite/gas/macros/macros.exp | 2 + > opcodes/cgen-asm.in | 52 +++--- > opcodes/epiphany-asm.c | 52 +++--- > opcodes/fr30-asm.c | 52 +++--- > opcodes/frv-asm.c | 52 +++--- > opcodes/ip2k-asm.c | 52 +++--- > opcodes/iq2000-asm.c | 52 +++--- > opcodes/lm32-asm.c | 52 +++--- > opcodes/m32c-asm.c | 52 +++--- > opcodes/m32r-asm.c | 52 +++--- > opcodes/mep-asm.c | 52 +++--- > opcodes/mt-asm.c | 52 +++--- > opcodes/nds32-asm.c | 5 - > opcodes/or1k-asm.c | 52 +++--- > opcodes/xstormy16-asm.c | 52 +++--- > 34 files changed, 482 insertions(+), 620 deletions(-) > create mode 100644 gas/testsuite/gas/i386/x86-64-macro-1.d > create mode 100644 gas/testsuite/gas/i386/x86-64-macro-1.s > create mode 100644 gas/testsuite/gas/macros/arg1.d > create mode 100644 gas/testsuite/gas/macros/arg1.s I'm willing to give my okay here as long as the discussion on what to do longer term won't die out. With this reverted I would work on a fix for the one case that I think we really need to deal with (blank between backslash and parameter name). What else (if anything) to change before making a 2nd attempt depends on outcomes of the discussion (and perhaps Nick's input). Leaving things as broken as they are is not an option to me. Jan
On Mon, Aug 12, 2024 at 8:49 AM Jan Beulich <jbeulich@suse.com> wrote: > > On 12.08.2024 17:43, H.J. Lu wrote: > > Changes in v4: > > > > 1. Add inner white spaces to arg1 test comments. > > > > Changes in v3: > > > > 1. Add test for a white space before argument added by C preprocessor to > > macros/arg1.s. > > 2. Add comments to tests. > > > > Changes in v2: > > > > 1. Mention PR gas/32073 in reverting commits. > > 2. Add a test from x86-64 glibc. > > > > ---- > > commit 6ae8a30d44f016cafb46a75843b5109316eb1996 > > Author: Jan Beulich <jbeulich@suse.com> > > Date: Fri Aug 9 11:59:31 2024 +0200 > > > > gas: have scrubber retain more whitespace > > > > breaks GCC builds for ARM, AVR, PRU and others as well as x86-64 kernel > > and glibc builds. Revert > > > > 7dd0dfbde7e gas: drop scrubber states 14 and 15 > > 6ae8a30d44f gas: have scrubber retain more whitespace > > > > to restore the original macro behaviors and add tests from Linux kernel > > and glibc. > > > > H.J. Lu (3): > > Revert "gas: drop scrubber states 14 and 15" > > Revert "gas: have scrubber retain more whitespace" > > gas: Add macro tests for PR gas/32073 > > > > gas/NEWS | 7 - > > gas/app.c | 200 ++++++++++++++++++------ > > gas/config/tc-aarch64.c | 19 +-- > > gas/config/tc-arm.c | 2 - > > gas/config/tc-crx.c | 6 +- > > gas/config/tc-csky.c | 23 +-- > > gas/config/tc-ia64.h | 3 + > > gas/config/tc-pru.c | 10 +- > > gas/config/tc-sparc.c | 48 ++---- > > gas/config/tc-tic6x.h | 2 + > > gas/config/tc-v850.c | 4 - > > gas/testsuite/gas/all/macro.l | 10 -- > > gas/testsuite/gas/all/macro.s | 4 +- > > gas/testsuite/gas/i386/x86-64-apx-nf.s | 40 ++--- > > gas/testsuite/gas/i386/x86-64-macro-1.d | 11 ++ > > gas/testsuite/gas/i386/x86-64-macro-1.s | 9 ++ > > gas/testsuite/gas/i386/x86-64.exp | 2 + > > gas/testsuite/gas/macros/arg1.d | 7 + > > gas/testsuite/gas/macros/arg1.s | 12 ++ > > gas/testsuite/gas/macros/macros.exp | 2 + > > opcodes/cgen-asm.in | 52 +++--- > > opcodes/epiphany-asm.c | 52 +++--- > > opcodes/fr30-asm.c | 52 +++--- > > opcodes/frv-asm.c | 52 +++--- > > opcodes/ip2k-asm.c | 52 +++--- > > opcodes/iq2000-asm.c | 52 +++--- > > opcodes/lm32-asm.c | 52 +++--- > > opcodes/m32c-asm.c | 52 +++--- > > opcodes/m32r-asm.c | 52 +++--- > > opcodes/mep-asm.c | 52 +++--- > > opcodes/mt-asm.c | 52 +++--- > > opcodes/nds32-asm.c | 5 - > > opcodes/or1k-asm.c | 52 +++--- > > opcodes/xstormy16-asm.c | 52 +++--- > > 34 files changed, 482 insertions(+), 620 deletions(-) > > create mode 100644 gas/testsuite/gas/i386/x86-64-macro-1.d > > create mode 100644 gas/testsuite/gas/i386/x86-64-macro-1.s > > create mode 100644 gas/testsuite/gas/macros/arg1.d > > create mode 100644 gas/testsuite/gas/macros/arg1.s > > I'm willing to give my okay here as long as the discussion on what to do > longer term won't die out. With this reverted I would work on a fix for > the one case that I think we really need to deal with (blank between > backslash and parameter name). What else (if anything) to change before > making a 2nd attempt depends on outcomes of the discussion (and perhaps > Nick's input). Leaving things as broken as they are is not an option to > me. > > Jan I will check it in today.
On Mon, Aug 12, 2024 at 8:49 AM Jan Beulich <jbeulich@suse.com> wrote: > > On 12.08.2024 17:43, H.J. Lu wrote: > > Changes in v4: > > > > 1. Add inner white spaces to arg1 test comments. > > > > Changes in v3: > > > > 1. Add test for a white space before argument added by C preprocessor to > > macros/arg1.s. > > 2. Add comments to tests. > > > > Changes in v2: > > > > 1. Mention PR gas/32073 in reverting commits. > > 2. Add a test from x86-64 glibc. > > > > ---- > > commit 6ae8a30d44f016cafb46a75843b5109316eb1996 > > Author: Jan Beulich <jbeulich@suse.com> > > Date: Fri Aug 9 11:59:31 2024 +0200 > > > > gas: have scrubber retain more whitespace > > > > breaks GCC builds for ARM, AVR, PRU and others as well as x86-64 kernel > > and glibc builds. Revert > > > > 7dd0dfbde7e gas: drop scrubber states 14 and 15 > > 6ae8a30d44f gas: have scrubber retain more whitespace > > > > to restore the original macro behaviors and add tests from Linux kernel > > and glibc. > > > > H.J. Lu (3): > > Revert "gas: drop scrubber states 14 and 15" > > Revert "gas: have scrubber retain more whitespace" > > gas: Add macro tests for PR gas/32073 > > > > gas/NEWS | 7 - > > gas/app.c | 200 ++++++++++++++++++------ > > gas/config/tc-aarch64.c | 19 +-- > > gas/config/tc-arm.c | 2 - > > gas/config/tc-crx.c | 6 +- > > gas/config/tc-csky.c | 23 +-- > > gas/config/tc-ia64.h | 3 + > > gas/config/tc-pru.c | 10 +- > > gas/config/tc-sparc.c | 48 ++---- > > gas/config/tc-tic6x.h | 2 + > > gas/config/tc-v850.c | 4 - > > gas/testsuite/gas/all/macro.l | 10 -- > > gas/testsuite/gas/all/macro.s | 4 +- > > gas/testsuite/gas/i386/x86-64-apx-nf.s | 40 ++--- > > gas/testsuite/gas/i386/x86-64-macro-1.d | 11 ++ > > gas/testsuite/gas/i386/x86-64-macro-1.s | 9 ++ > > gas/testsuite/gas/i386/x86-64.exp | 2 + > > gas/testsuite/gas/macros/arg1.d | 7 + > > gas/testsuite/gas/macros/arg1.s | 12 ++ > > gas/testsuite/gas/macros/macros.exp | 2 + > > opcodes/cgen-asm.in | 52 +++--- > > opcodes/epiphany-asm.c | 52 +++--- > > opcodes/fr30-asm.c | 52 +++--- > > opcodes/frv-asm.c | 52 +++--- > > opcodes/ip2k-asm.c | 52 +++--- > > opcodes/iq2000-asm.c | 52 +++--- > > opcodes/lm32-asm.c | 52 +++--- > > opcodes/m32c-asm.c | 52 +++--- > > opcodes/m32r-asm.c | 52 +++--- > > opcodes/mep-asm.c | 52 +++--- > > opcodes/mt-asm.c | 52 +++--- > > opcodes/nds32-asm.c | 5 - > > opcodes/or1k-asm.c | 52 +++--- > > opcodes/xstormy16-asm.c | 52 +++--- > > 34 files changed, 482 insertions(+), 620 deletions(-) > > create mode 100644 gas/testsuite/gas/i386/x86-64-macro-1.d > > create mode 100644 gas/testsuite/gas/i386/x86-64-macro-1.s > > create mode 100644 gas/testsuite/gas/macros/arg1.d > > create mode 100644 gas/testsuite/gas/macros/arg1.s > > I'm willing to give my okay here as long as the discussion on what to do > longer term won't die out. With this reverted I would work on a fix for The sensible solution is to document these longstanding usages as features with tests. > the one case that I think we really need to deal with (blank between > backslash and parameter name). What else (if anything) to change before > making a 2nd attempt depends on outcomes of the discussion (and perhaps > Nick's input). Leaving things as broken as they are is not an option to > me. > > Jan