From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by sourceware.org (Postfix) with ESMTPS id 688D03858027 for ; Mon, 27 Jan 2025 16:44:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 688D03858027 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 688D03858027 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::62a ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1737996272; cv=none; b=J9mOsxH5pV8OBhd/w0neH4xVRX3JbJcK8PasiPFC24btn1wEts8q9q57+kEnI0Gu13iyf2taIfaRBmzpfHdUdw5BYt/rh4dKf/HMVVZ60EVyyOJZnE0aa5nPJKjC5JUaOJtF53wBwmw1L70VdrZEbeHCropTxUXsCwSXR6jOfH0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1737996272; c=relaxed/simple; bh=0rMIw4qyGtXdl0T7uAClMoUD2fh9iT/NwN7j3CRllOs=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:From:To; b=Y9CvomfWaCwDjx3CB5h9TYfDviNB+Dj8qsYJ3l5KZM2ltmgFuzm0MV9qbL6GBox4oJx8sopouGXbjPXZB2DqQ9V/fBGqE56cteayMcPV079KdsVeP4QJs2s/h6Ke5kP0mRI5MEsFCxIEh7n7MbBuU5At7cfN+6EK27jfSBNrfdo= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 688D03858027 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=suse.com header.i=@suse.com header.a=rsa-sha256 header.s=google header.b=KMWPiNQA Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-aaf57c2e0beso939657766b.3 for ; Mon, 27 Jan 2025 08:44:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1737996271; x=1738601071; darn=sourceware.org; h=content-transfer-encoding:in-reply-to:autocrypt:cc:content-language :references:to:from:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=TgYQZw22moqyDgJxfQdSn/puXfDFpa+E/JdLp2AgPYY=; b=KMWPiNQA7K1uEmq+AxG/QoxBTtQBc34Q8KEKQvQ0D0X30mGcIozqxL/0EXxmE/zbFM G6xNqQ7wCld8AzgP38+zJXFE1T2N6YNH40i7MEr0BC0oQ+S05Jl+/N4Nkn7pxS8lns/4 9hYtw6Nn/oM0wfB5ExSt+7tkJEu3qLvyj/JvL58Pjq9Ybh0nUHFq2xdiiF1eYD35W0WJ ksoqZfKpy+8dthHMUOuoPaxjOlyCYNCxNahSax/MJjAKIKuLBw/wOlkJOIiseXHHGqOh ty2+vfGQMiSm1U0N8PcJm0Mz7jHlKOG8zD+IZbqBFqkOtN52bPW8fGFSfl3B8sYIN6pj e2qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737996271; x=1738601071; h=content-transfer-encoding:in-reply-to:autocrypt:cc: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=TgYQZw22moqyDgJxfQdSn/puXfDFpa+E/JdLp2AgPYY=; b=VuOa2WmAFpT+/YmRoyLGIzDB98PT5zEw+4jR4KzYbVFp8Pv7fHOnnG8LrdcWGWejMs 1QY1VBH3eY/C6yS0/QRYIGZAzXUrX7L4+X5Av1De0/Sq9ec47N3cK89E+jJO45sQGIht JhXMTF/Ae1mFrcEaN8B57T1HkvJzWdAmDWntobCRQy3uY0kH3ALTTuFNSBTk07PUY2g3 FBiWgunllQ6m/EjuqDZUomP0vnBu+3k4qTYfhdDamq0gxZ6xvt93Q7VyT+ic66aXaEyW xHtjKy4y+xYOOMr7zSBj//OWnpfUo6eaeRY35pyxIZb9YnoYgoGS1IbYCF+OAOG00uMC M/sw== X-Gm-Message-State: AOJu0YzCbhxSlu8KSr3ISc0zHxbTONW6ghBN0O0ZfWkDVkzZAZBj0mZ0 1cgVcGnJ049nPbWqgtV7h//wBPkyBPJflTdVN4aVD7ph5mIQoYz3+lLTRh+WJmkH6ach9+v2T8I = X-Gm-Gg: ASbGncvan4K5egcjVEfpdzcwulzNAf2c5+SNvmi1JdS/71qyBk2fk9i71zyJlKedICZ cKMQVR6ilOmN60qnNNRMA6yjhF1Q24GEm+7qaWuWRooeU8de5RdKttCOdz/x1fTDDiANwnPeum6 H+6vndkIOMNg1bZYuK9dZQ9uZ2djyPKCKCRnC1Wt5l0ZqfKNcTiiG53uFwzhmt13tCavLXlurQ/ 4Xw454/xpyeq8YSc4NHZSgMMsdBRH1eciS7ExNF35Zv41zAMtcoHeJXFtj/hgJkHYUvYq3oQusH rok4r2pVddZ1qpoY9cFpCyfsZeqNfpmlgqVvXuBzbBAf+NdNv56HPeArUuXUF971aQ== X-Google-Smtp-Source: AGHT+IGhGMufMPbKhwqjUHYr7G+jrkJirS19uyum0/TvF7Qd285x5BGUepoYI+79i21jdWCrX/W3gg== X-Received: by 2002:a17:907:940e:b0:aae:bd36:b198 with SMTP id a640c23a62f3a-ab38b4c6a1emr3509744666b.47.1737996270910; Mon, 27 Jan 2025 08:44:30 -0800 (PST) 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 a640c23a62f3a-ab6aa40824asm164001766b.134.2025.01.27.08.44.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Jan 2025 08:44:30 -0800 (PST) Message-ID: Date: Mon, 27 Jan 2025 17:44:30 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: [PATCH v2 60/65] x86: use is_whitespace() From: Jan Beulich To: Binutils References: <2316ac5c-7870-4b46-9c80-eaecaef93a31@suse.com> Content-Language: en-US Cc: "H.J. Lu" Autocrypt: addr=jbeulich@suse.com; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P79Y2oLrsCgbZJfEwCgvz9JjGmQqQkRiTVzlZVCJYcyGGsD /0tbFCzD2h20ahe8rC1gbb3K3qk+LpBtvjBu1RY9drYk0NymiGbJWZgab6t1jM7sk2vuf0Py O9Hf9XBmK0uE9IgMaiCpc32XV9oASz6UJebwkX+zF2jG5I1BfnO9g7KlotcA/v5ClMjgo6Gl MDY4HxoSRu3i1cqqSDtVlt+AOVBJBACrZcnHAUSuCXBPy0jOlBhxPqRWv6ND4c9PH1xjQ3NP nxJuMBS8rnNg22uyfAgmBKNLpLgAGVRMZGaGoJObGf72s6TeIqKJo/LtggAS9qAUiuKVnygo 3wjfkS9A3DRO+SpU7JqWdsveeIQyeyEJ/8PTowmSQLakF+3fote9ybzd880fSmFuIEJldWxp Y2ggPGpiZXVsaWNoQHN1c2UuY29tPsJgBBMRAgAgBQJZN5xEAhsDBgsJCAcDAgQVAggDBBYC AwECHgECF4AACgkQoDSui/t3IH4J+wCfQ5jHdEjCRHj23O/5ttg9r9OIruwAn3103WUITZee e7Sbg12UgcQ5lv7SzsFNBFk3nEQQCACCuTjCjFOUdi5Nm244F+78kLghRcin/awv+IrTcIWF hUpSs1Y91iQQ7KItirz5uwCPlwejSJDQJLIS+QtJHaXDXeV6NI0Uef1hP20+y8qydDiVkv6l IreXjTb7DvksRgJNvCkWtYnlS3mYvQ9NzS9PhyALWbXnH6sIJd2O9lKS1Mrfq+y0IXCP10eS FFGg+Av3IQeFatkJAyju0PPthyTqxSI4lZYuJVPknzgaeuJv/2NccrPvmeDg6Coe7ZIeQ8Yj t0ARxu2xytAkkLCel1Lz1WLmwLstV30g80nkgZf/wr+/BXJW/oIvRlonUkxv+IbBM3dX2OV8 AmRv1ySWPTP7AAMFB/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: <2316ac5c-7870-4b46-9c80-eaecaef93a31@suse.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3022.1 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,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: Wherever blanks are permissible in input, tabs ought to be permissible, too. This is particularly relevant when -f is passed to gas (alongside appropriate input). --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -613,7 +613,6 @@ static char operand_chars[256]; /* Lexical macros. */ #define is_operand_char(x) (operand_chars[(unsigned char) x]) #define is_register_char(x) (register_chars[(unsigned char) x]) -#define is_space_char(x) ((x) == ' ') /* All non-digit non-letter characters that may occur in an operand and which aren't already in extra_symbol_chars[]. */ @@ -2115,7 +2114,7 @@ check_Scc_OszcOperations (const char *l) { const char *suffix_string = l; - while (is_space_char (*suffix_string)) + while (is_whitespace (*suffix_string)) suffix_string++; /* If {oszc flags} is absent, just return. */ @@ -2126,7 +2125,7 @@ check_Scc_OszcOperations (const char *l) suffix_string++; /* Parse 'dfv='. */ - while (is_space_char (*suffix_string)) + while (is_whitespace (*suffix_string)) suffix_string++; if (strncasecmp (suffix_string, "dfv", 3) == 0) @@ -2137,7 +2136,7 @@ check_Scc_OszcOperations (const char *l) return -1; } - while (is_space_char (*suffix_string)) + while (is_whitespace (*suffix_string)) suffix_string++; if (*suffix_string == '=') @@ -2151,7 +2150,7 @@ check_Scc_OszcOperations (const char *l) /* Parse 'of, sf, zf, cf}'. */ while (*suffix_string) { - while (is_space_char (*suffix_string)) + while (is_whitespace (*suffix_string)) suffix_string++; /* Return for '{dfv=}'. */ @@ -2186,7 +2185,7 @@ check_Scc_OszcOperations (const char *l) suffix_string += 2; - while (is_space_char (*suffix_string)) + while (is_whitespace (*suffix_string)) suffix_string++; if (*suffix_string == '}') @@ -7568,7 +7567,7 @@ parse_insn (const char *line, char *mnem { ++mnem_p; ++l; - if (is_space_char (*l)) + if (is_whitespace (*l)) ++l; } else if (mode == parse_pseudo_prefix) @@ -7587,7 +7586,7 @@ parse_insn (const char *line, char *mnem l++; } split = l; - if (is_space_char (*l)) + if (is_whitespace (*l)) ++l; /* Pseudo-prefixes end with a closing figure brace. */ if (*mnemonic == '{' && *l == '}') @@ -7597,7 +7596,7 @@ parse_insn (const char *line, char *mnem goto too_long; *mnem_p = '\0'; - if (is_space_char (*l)) + if (is_whitespace (*l)) ++l; } else if (l == split @@ -7746,7 +7745,7 @@ parse_insn (const char *line, char *mnem } /* Skip past PREFIX_SEPARATOR and reset token_start. */ l += (!intel_syntax && *l == PREFIX_SEPARATOR); - if (is_space_char (*l)) + if (is_whitespace (*l)) ++l; token_start = l; } @@ -7919,10 +7918,10 @@ parse_insn (const char *line, char *mnem may work in the future and it doesn't hurt to accept them now. */ token_start = l++; - if (is_space_char (*l)) + if (is_whitespace (*l)) ++l; if (TOLOWER (*l) == 'p' && ISALPHA (l[1]) - && (l[2] == END_OF_INSN || is_space_char (l[2]))) + && (l[2] == END_OF_INSN || is_whitespace (l[2]))) { if (TOLOWER (l[1]) == 't') { @@ -7990,7 +7989,7 @@ parse_operands (char *l, const char *mne bool in_quotes = false; /* Skip optional white space before operand. */ - if (is_space_char (*l)) + if (is_whitespace (*l)) ++l; if (!is_operand_char (*l) && *l != END_OF_INSN && *l != '"') { @@ -8024,7 +8023,7 @@ parse_operands (char *l, const char *mne ++l; else if (*l == '"') in_quotes = !in_quotes; - else if (!in_quotes && !is_operand_char (*l) && !is_space_char (*l)) + else if (!in_quotes && !is_operand_char (*l) && !is_whitespace (*l)) { as_bad (_("invalid character %s in operand %d"), output_invalid (*l), @@ -13155,7 +13154,7 @@ lex_got (enum bfd_reloc_code_real *rel, be necessary, but be safe. */ tmpbuf = XNEWVEC (char, first + second + 2); memcpy (tmpbuf, input_line_pointer, first); - if (second != 0 && *past_reloc != ' ') + if (second != 0 && !is_whitespace (*past_reloc)) /* Replace the relocation token with ' ', so that errors like foo@GOTOFF1 will be detected. */ tmpbuf[first++] = ' '; @@ -13302,7 +13301,7 @@ s_insn (int dummy ATTRIBUTE_UNUSED) i.tm.extension_opcode = None; if (startswith (line, "VEX") - && (line[3] == '.' || is_space_char (line[3]))) + && (line[3] == '.' || is_whitespace (line[3]))) { vex = true; line += 3; @@ -13313,7 +13312,7 @@ s_insn (int dummy ATTRIBUTE_UNUSED) unsigned long n = strtoul (line + 3, &e, 16); if (e == line + 5 && n >= 0x08 && n <= 0x1f - && (*e == '.' || is_space_char (*e))) + && (*e == '.' || is_whitespace (*e))) { xop = true; /* Arrange for build_vex_prefix() to emit 0x8f. */ @@ -13323,7 +13322,7 @@ s_insn (int dummy ATTRIBUTE_UNUSED) } } else if (startswith (line, "EVEX") - && (line[4] == '.' || is_space_char (line[4]))) + && (line[4] == '.' || is_whitespace (line[4]))) { evex = true; line += 4; @@ -13487,14 +13486,14 @@ s_insn (int dummy ATTRIBUTE_UNUSED) case '0': if (TOUPPER (line[2]) != 'F') break; - if (line[3] == '.' || is_space_char (line[3])) + if (line[3] == '.' || is_whitespace (line[3])) { i.insn_opcode_space = SPACE_0F; line += 3; } else if (line[3] == '3' && (line[4] == '8' || TOUPPER (line[4]) == 'A') - && (line[5] == '.' || is_space_char (line[5]))) + && (line[5] == '.' || is_whitespace (line[5]))) { i.insn_opcode_space = line[4] == '8' ? SPACE_0F38 : SPACE_0F3A; line += 5; @@ -13508,7 +13507,7 @@ s_insn (int dummy ATTRIBUTE_UNUSED) unsigned long n = strtoul (line + 2, &e, 10); if (n <= (evex ? 15 : 31) - && (*e == '.' || is_space_char (*e))) + && (*e == '.' || is_whitespace (*e))) { i.insn_opcode_space = n; line = e; @@ -13544,10 +13543,10 @@ s_insn (int dummy ATTRIBUTE_UNUSED) line += 3; } - if (line > end && *line && !is_space_char (*line)) + if (line > end && *line && !is_whitespace (*line)) { /* Improve diagnostic a little. */ - if (*line == '.' && line[1] && !is_space_char (line[1])) + if (*line == '.' && line[1] && !is_whitespace (line[1])) ++line; goto done; } @@ -13564,7 +13563,7 @@ s_insn (int dummy ATTRIBUTE_UNUSED) break; if (*ptr == '+' && ptr[1] == 'r' - && (ptr[2] == ',' || (is_space_char (ptr[2]) && ptr[3] == ','))) + && (ptr[2] == ',' || (is_whitespace (ptr[2]) && ptr[3] == ','))) { *ptr = ' '; ptr[1] = ' '; @@ -13575,7 +13574,7 @@ s_insn (int dummy ATTRIBUTE_UNUSED) if (*ptr == '/' && ISDIGIT (ptr[1]) && (n = strtoul (ptr + 1, &e, 8)) < 8 && e == ptr + 2 - && (ptr[2] == ',' || (is_space_char (ptr[2]) && ptr[3] == ','))) + && (ptr[2] == ',' || (is_whitespace (ptr[2]) && ptr[3] == ','))) { *ptr = ' '; ptr[1] = ' '; @@ -14181,7 +14180,7 @@ check_VecOperations (char *op_string) if (*op_string == '{') { op_string++; - if (is_space_char (*op_string)) + if (is_whitespace (*op_string)) op_string++; /* Check broadcasts. */ @@ -14353,7 +14352,7 @@ check_VecOperations (char *op_string) else goto unknown_vec_op; - if (is_space_char (*op_string)) + if (is_whitespace (*op_string)) op_string++; if (*op_string != '}') { @@ -14362,7 +14361,7 @@ check_VecOperations (char *op_string) } op_string++; - if (is_space_char (*op_string)) + if (is_whitespace (*op_string)) ++op_string; continue; @@ -14403,7 +14402,7 @@ i386_immediate (char *imm_start) exp = &im_expressions[i.imm_operands++]; i.op[this_operand].imms = exp; - if (is_space_char (*imm_start)) + if (is_whitespace (*imm_start)) ++imm_start; save_input_line_pointer = input_line_pointer; @@ -15037,14 +15036,14 @@ RC_SAE_immediate (const char *imm_start) return 0; pstr++; - if (is_space_char (*pstr)) + if (is_whitespace (*pstr)) pstr++; pstr = RC_SAE_specifier (pstr); if (pstr == NULL) return 0; - if (is_space_char (*pstr)) + if (is_whitespace (*pstr)) pstr++; if (*pstr++ != '}') @@ -15082,7 +15081,7 @@ i386_att_operand (char *operand_string) char *end_op; char *op_string = operand_string; - if (is_space_char (*op_string)) + if (is_whitespace (*op_string)) ++op_string; /* We check for an absolute prefix (differentiating, @@ -15091,7 +15090,7 @@ i386_att_operand (char *operand_string) && current_templates.start->opcode_modifier.jump) { ++op_string; - if (is_space_char (*op_string)) + if (is_whitespace (*op_string)) ++op_string; i.jumpabsolute = true; } @@ -15107,7 +15106,7 @@ i386_att_operand (char *operand_string) /* Check for a segment override by searching for ':' after a segment register. */ op_string = end_op; - if (is_space_char (*op_string)) + if (is_whitespace (*op_string)) ++op_string; if (*op_string == ':' && r->reg_type.bitfield.class == SReg) { @@ -15115,7 +15114,7 @@ i386_att_operand (char *operand_string) /* Skip the ':' and whitespace. */ ++op_string; - if (is_space_char (*op_string)) + if (is_whitespace (*op_string)) ++op_string; /* Handle case of %es:*foo. */ @@ -15123,7 +15122,7 @@ i386_att_operand (char *operand_string) && current_templates.start->opcode_modifier.jump) { ++op_string; - if (is_space_char (*op_string)) + if (is_whitespace (*op_string)) ++op_string; i.jumpabsolute = true; } @@ -15234,7 +15233,7 @@ i386_att_operand (char *operand_string) /* Handle vector operations. */ --base_string; - if (is_space_char (*base_string)) + if (is_whitespace (*base_string)) --base_string; if (*base_string == '}') @@ -15251,7 +15250,7 @@ i386_att_operand (char *operand_string) vop_start = base_string; --base_string; - if (is_space_char (*base_string)) + if (is_whitespace (*base_string)) --base_string; if (*base_string != '}') @@ -15303,7 +15302,7 @@ i386_att_operand (char *operand_string) /* Skip past '(' and whitespace. */ gas_assert (*base_string == '('); ++base_string; - if (is_space_char (*base_string)) + if (is_whitespace (*base_string)) ++base_string; if (*base_string == ',' @@ -15319,7 +15318,7 @@ i386_att_operand (char *operand_string) if (i.base_reg == &bad_reg) return 0; base_string = end_op; - if (is_space_char (*base_string)) + if (is_whitespace (*base_string)) ++base_string; } @@ -15327,7 +15326,7 @@ i386_att_operand (char *operand_string) if (*base_string == ',') { ++base_string; - if (is_space_char (*base_string)) + if (is_whitespace (*base_string)) ++base_string; if ((i.index_reg = parse_register (base_string, &end_op)) @@ -15336,12 +15335,12 @@ i386_att_operand (char *operand_string) if (i.index_reg == &bad_reg) return 0; base_string = end_op; - if (is_space_char (*base_string)) + if (is_whitespace (*base_string)) ++base_string; if (*base_string == ',') { ++base_string; - if (is_space_char (*base_string)) + if (is_whitespace (*base_string)) ++base_string; } else if (*base_string != ')') @@ -15370,7 +15369,7 @@ i386_att_operand (char *operand_string) return 0; base_string = end_scale; - if (is_space_char (*base_string)) + if (is_whitespace (*base_string)) ++base_string; if (*base_string != ')') { @@ -16615,7 +16614,7 @@ parse_real_register (const char *reg_str if (*s == REGISTER_PREFIX) ++s; - if (is_space_char (*s)) + if (is_whitespace (*s)) ++s; p = reg_name_given; @@ -16642,18 +16641,18 @@ parse_real_register (const char *reg_str && !allow_pseudo_reg) return (const reg_entry *) NULL; - if (is_space_char (*s)) + if (is_whitespace (*s)) ++s; if (*s == '(') { ++s; - if (is_space_char (*s)) + if (is_whitespace (*s)) ++s; if (*s >= '0' && *s <= '7') { int fpr = *s - '0'; ++s; - if (is_space_char (*s)) + if (is_whitespace (*s)) ++s; if (*s == ')') { --- a/gas/config/tc-i386-intel.c +++ b/gas/config/tc-i386-intel.c @@ -186,7 +186,7 @@ operatorT i386_operator (const char *nam if (strcasecmp (i386_types[j].name, name) == 0) break; - if (i386_types[j].name && *pc == ' ') + if (i386_types[j].name && is_whitespace (*pc)) { const char *start = ++input_line_pointer; char *pname;