Message ID | 8fc126fb-f33b-4b3a-a405-fc5ad6ead795@suse.com |
---|---|
State | Superseded |
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 8F7053826DDA for <patchwork@sourceware.org>; Fri, 28 Jun 2024 13:19:39 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by sourceware.org (Postfix) with ESMTPS id 019583826DD4 for <binutils@sourceware.org>; Fri, 28 Jun 2024 13:18:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 019583826DD4 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 019583826DD4 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::429 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719580747; cv=none; b=G9lTvLSYkmxtR2EEpzfbMkUG4hNeP7XRSenP+AS3RynhWCKqb+eDlJIqBKSsjZfjUzl4JTsKqYtpRxZrFYxnO+L7ibgKbdHsVFJ1XGfGl0ydP3hZhVOP2sGgR71oxvGXEbZnCv99eG1+J+EgJwbBUvGXCBY7Fqpvh8IVkdkUIW0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719580747; c=relaxed/simple; bh=MgnxALcBjoHzw6u3eNRBMTj79S7IoZ2pfaYF/2yhhxU=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:From:To; b=Tb9Mr4fVdG/BBHitDJI0XUa1LWlHK3EVKoPcNExot8XSFm4UWJennJ9HlY3+mcmJo0EoUBR37AqXG033TlP0NcfMYYZwXcBuDdnF1w5urYKlWFIPXPiEjffzbJ9cn/COce99LkM87+ArcpFwF2hPoeAk7QuFag5K3chWeXY1prs= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-36743abace4so1104492f8f.1 for <binutils@sourceware.org>; Fri, 28 Jun 2024 06:18:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1719580735; x=1720185535; darn=sourceware.org; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :references:to:from:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=sPpYqhBavG+uR6+d8D1nIvEm+WCPEWf4M/HV5jcLi8c=; b=WXUrieS4ylSlG0dd8Y/a2uS5DO7jXsyhz1BhtuoRhs4tW0x4C/cf+/ZqjfaOPm9ZPd nqrFcyvzxd1ojUp56WRgmFt0M8BYxmH6s7m6jRyGJoGh4jLss0D9iXGzUp6l+mZ5N7hD YjUg617kYZ67vyBBOpEUwuBPZkLgVpAlaRCuGkmaW6+IH8gJEiKeLXeb6qgZrA0nLZC9 ZwSjt+XJdyKCY2br98D/EIrwMlui38Rt5s9DvGwzWzUdvJh0trOXGczXy9FAPOFiejB7 W4dobhKs88E6ENioY06ft9mj9brTgrSzlosAlP5vAlRN3gOtEUivMW0iV9MiEkm+kTkR 9xpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719580735; x=1720185535; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :references:to:from:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=sPpYqhBavG+uR6+d8D1nIvEm+WCPEWf4M/HV5jcLi8c=; b=fQmf5npsNIVxKNVQ0cbU5lBpJprP+X5Je5vlfw45fK+IrFm6wr4ODSKifcGr2B9+BX 6xwAMsgJJj3zQC09S7liasT0jdFT6rpELtYKZAuPtxegDBSM/Zm9Qifkz7umTpZsrj2H 5RBQrY1syYwd3E5Jb6Ko+QBRfB4S/uQ7Vh7ZJjDFw199RbOLUewxN0/1XcBZ7EGjVrLw kuTlNbl0j5eG9TP5kz3gPxK5FP004TEmSTTUkWFhvfg5Zy6hkWeBjaLlC5BFIk+pisrr M7iG/062MzzK/SeiaVU2H/nZAPkzX/zo3tTCbxmUhpR2pPOH6ktUN0nLrKX72FtzNMw+ yloA== X-Gm-Message-State: AOJu0Yygr4Gd7gunZ5E8Fj69weqvQHHlF/aEmLmIAAdOa+HT09rMZWVZ t9dSMjLSgukyTAtl4LPzyPFOokSbXQ0DBi8TbskhEo3kyarAJMH1nQ4ftM6MigJO6Zeuti/SQuE = X-Google-Smtp-Source: AGHT+IHgSwrKaLgiuRdFHIVCwh81opbvoOsbsV4oLOZXJ6JarnTbMn51tJ2tuYp/GO55eUGFzx2IkQ== X-Received: by 2002:a5d:47a8:0:b0:366:ee84:6a77 with SMTP id ffacd0b85a97d-36760a63045mr1887217f8f.3.1719580735647; Fri, 28 Jun 2024 06:18:55 -0700 (PDT) Received: from [10.156.60.236] (ip-037-024-206-209.um08.pools.vodafone-ip.de. [37.24.206.209]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-72c69b5188csm1116090a12.3.2024.06.28.06.18.53 for <binutils@sourceware.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 28 Jun 2024 06:18:55 -0700 (PDT) Message-ID: <8fc126fb-f33b-4b3a-a405-fc5ad6ead795@suse.com> Date: Fri, 28 Jun 2024 15:18:49 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: [PATCH 04/11] gas: don't open-code IS_WHITESPACE() / IS_NEWLINE() From: Jan Beulich <jbeulich@suse.com> To: Binutils <binutils@sourceware.org> References: <f12de588-f77f-41b5-a6d0-83c1eb7de05c@suse.com> Content-Language: en-US Autocrypt: addr=jbeulich@suse.com; keydata= xsDiBFk3nEQRBADAEaS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MFB/9PQK/VtlNUJvg8GXj9ootzrteGfVZVVT4XBJkfwBcpC/XcPzldjv+3 HYudvpdNK3lLujXeA5fLOH+Z/G9WBc5pFVSMocI71I8bT8lIAzreg0WvkWg5V2WZsUMlnDL9 mpwIGFhlbM3gfDMs7MPMu8YQRFVdUvtSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL In-Reply-To: <f12de588-f77f-41b5-a6d0-83c1eb7de05c@suse.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3024.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, 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 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 |
gas: scrubber adjustments
|
|
Commit Message
Jan Beulich
June 28, 2024, 1:18 p.m. UTC
Better be consistent in use of the wrapper macros, which imo also helps readability. --- I'm wondering about LEX_IS_COLON, which has no corresponding IS_COLON(): Do we really need this? IOW do we really expect architectures may be using other than a colon (and other than nothing at all) to "terminate" a label definition?
--- a/gas/app.c +++ b/gas/app.c @@ -819,7 +819,7 @@ do_scrub_chars (size_t (*get) (char *, s if (ch != '\0' && (*mri_state == ch || (*mri_state == ' ' - && lex[ch] == LEX_IS_WHITESPACE) + && IS_WHITESPACE (ch)) || (*mri_state == '0' && ch == '1'))) { @@ -827,8 +827,7 @@ do_scrub_chars (size_t (*get) (char *, s ++mri_state; } else if (*mri_state != '\0' - || (lex[ch] != LEX_IS_WHITESPACE - && lex[ch] != LEX_IS_NEWLINE)) + || (!IS_WHITESPACE (ch) && !IS_NEWLINE (ch))) { /* We did not get the expected character, or we didn't get a valid terminating character after seeing the