From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by sourceware.org (Postfix) with ESMTPS id 437413858C33 for ; Mon, 12 Aug 2024 15:12:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 437413858C33 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 437413858C33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::42e ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1723475575; cv=none; b=GfThdCo0jdswMJLEHFj9hrt1ftgSRCUFNd6kxzkQ8jIMCVUKfSHlraPNHKAHcZnThYJxUWQYUWXyewjwDu9xL5uFeTTYc7jwx4Y1+ZF+Dr6213l+cFBjoXlJv+VXblOAqlgi07vL8jOlk/ljy39F5GFQEhLlc4NiOzQlE9oWRqk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1723475575; c=relaxed/simple; bh=Jh+6Peu0ervjjp55jP2SF77t3NiZmpUkPiCnzwX6x3M=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=M6GYozLgsWYZAn5AsJ1M01UhPDyVjBSLhrXFv5HGbR5PHUcTWGoNWvYwqfqrpLw2S8SXUIOgiZTk/kXXBbAwIHbIM4/bw7Qzgrq8q1SGj1zwMaGQ+WYpGhJ/ODcPL92FLYXfOvJl5nBrEwmX3tC3iG3Mlr3MOGWelKMqu/Lz3WM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-70d1fb6c108so3128998b3a.3 for ; Mon, 12 Aug 2024 08:12:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723475573; x=1724080373; 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=Jkse1q09V+aglof9G5INo6gJJLUluYP+MQxvor9j/Ac=; b=KwhA2q9o8SyHJTyIS9YFBKx+cg0PHKrUX7lAUZl/7VdhrKz06KipMKP5Okwwsz8Txe PNF9su9YsySporSNYLRqRd1VnmL0Btu1O627lBWV66ye+XBkQHwKuKEnlGOQCgKWBt82 Q9+Xz9PlbOU2KcgytutQU4zCxtXsGuu9j9M6dwuE1q8FzvRDyUYL3WJ6dqspCAKz3j1k +aVtjHQU+y0VlqhZYMxa3aM4LYDpZGZo8DJ97yjDTwykER3pxeH9uI2D+xDsqKYQKFYF 4XJkkJqGn86yS7b0pBZaCZtEqMDRfxdCSy36NQgDW01N0jqynFeQ+hE0EcfOW7MNzISb BaDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723475573; x=1724080373; 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=Jkse1q09V+aglof9G5INo6gJJLUluYP+MQxvor9j/Ac=; b=WLnPHq6867t8+HeTcELaf6c42VDGMA6ddvlDdM6C1EX2BMhn1NwAWe3BpNZx5H43Y4 OmxXQn6PSJs6/m2B82+u14SDTNxwNbKHDP5cmBbAuV6ujHw0NsGeH/9XCQGpTkMt956Q tJfpvVtmTT/UaoCK/nu+PvmRKq3rr04ZY1Ax7ptA1Ke8Wv9z5fNNywI1L3H0k+0y17TZ uVCxQ/rpJSPxvKMbRaa6/prfGcPzUJBq3RyR8sotGcWAmfpJ6mBwxe3jHd52ZRaxQC2j a/QJrtj9uwFOSYXg+o2NFh4QmezuFQvUEmGQAzlwDCEZOGMIMOppeLY1UqSrNiHeuMnK Cj8A== X-Gm-Message-State: AOJu0YxCZAQxVNwPKxtXWlCcnoSQXdJwtr61cc4NIEUoA5dBedsrLhGS zP22GyWrqokOx4umg3rLmitvtaicichvfohbD+kVRgEfFSsouKzY+o1cP/7R X-Google-Smtp-Source: AGHT+IHSOpAf/OTbj1/ZSsX4VKMylNe/Wvu55ZsGZVWvj19+2sd0UCATtt2/qtdiqmhkeykwXFZ1LA== X-Received: by 2002:a05:6a00:2346:b0:70d:2cf6:5f4 with SMTP id d2e1a72fcca58-7125525d101mr589050b3a.25.1723475573019; Mon, 12 Aug 2024 08:12:53 -0700 (PDT) Received: from gnu-cfl-3.localdomain ([172.56.169.70]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-710e58aa0adsm4120591b3a.81.2024.08.12.08.12.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Aug 2024 08:12:52 -0700 (PDT) Received: from gnu-cfl-3.. (localhost [IPv6:::1]) by gnu-cfl-3.localdomain (Postfix) with ESMTP id 21DD87400AA; Mon, 12 Aug 2024 08:12:51 -0700 (PDT) From: "H.J. Lu" To: binutils@sourceware.org Cc: nickc@redhat.com, jbeulich@suse.com Subject: [PATCH v3 0/3] Restore the original macro behaviors Date: Mon, 12 Aug 2024 08:12:48 -0700 Message-ID: <20240812151251.2315001-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.4 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 List-Id: 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 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 -- 2.46.0