From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by sourceware.org (Postfix) with ESMTPS id 519DF3852216 for ; Thu, 17 Nov 2022 17:05:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 519DF3852216 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-x102d.google.com with SMTP id k2-20020a17090a4c8200b002187cce2f92so764220pjh.2 for ; Thu, 17 Nov 2022 09:05:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ZG5wDSpn5PZs24u9BqArY3rhps2GDp00MwT4NOz8ckw=; b=qrVdvmoW+b7/eTVZA9FK/R+HzkWau8D+KLDRdw38/W8g1Op8BL/btxfNi27QHhJJsu pPVIYrM9F7oiLPFncFBADYvgpVlVaDX3ZwNE1qT97J7vgHwllsnUPeh1mpGrvfNY9hht rRPu3YBq6kF5f1BdJFdvrBlvhtRYBxbdDO/2MwECsVCfqof87BnSizlvsFx3aHDhxRJ3 YbZb+4OYP5bl4pBG+xDFIc/YPnn8Abh8Fqp1HLWgDprj2ZzMPAhtn7d5Jc8wTl+ZLR6q XElJ37uoyFtzmJ3p1dMjW/92FPGSAtqx199Yk+8gXIJYF8DPuSWGQuegm0/bmolysEPr nNlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=ZG5wDSpn5PZs24u9BqArY3rhps2GDp00MwT4NOz8ckw=; b=TQgDjErnxP4mFTmBnBGfLq+Nbtm6Puyg57MIK3XqVhsmUO0QMhiq6EARVcAnSAEPgF xnl2+egIfgJN6ZQc8EVrIG72xVD6pezse2ZsU3xmbwb/QE0Sl4BzjFnCE4S1xmtpjFpl j2ch0dkNEh0PdwIWPXWLMZCttOVtDStPDljCGX8BEPlOiteY3J1TtiTorY3M7N72pXfv tB3FmZYer0rPlG3jEhNBRBY9fwTV9U9uYpGBXu3f7RFIj0kUfsU5KL8b7u7LZoMzACqC ytsL+ZovvuKH8AwpH1hJ0ExVc+eLh+TLNE/SpsbjXWofUD1pMWvWnnpPgWckJAp+eaos M/+Q== X-Gm-Message-State: ANoB5plTpAPoG8Z8wWED7DMBX3peS+4TDAMYs4/RBy8+82zOT862q7RT jtOG1jz0TLKrUhz8Is55u+m31zWfBVs= X-Google-Smtp-Source: AA0mqf5fcvSyCCwyAoonjmbEN3onTSY1hQei8pY/8CI5RLQzO//fm4LqBKxPD8wge7yo5KgHomyibg== X-Received: by 2002:a17:902:9f8f:b0:186:738e:5703 with SMTP id g15-20020a1709029f8f00b00186738e5703mr3505440plq.136.1668704749340; Thu, 17 Nov 2022 09:05:49 -0800 (PST) Received: from gnu-tgl-3.localdomain ([172.56.31.158]) by smtp.gmail.com with ESMTPSA id w4-20020a170902e88400b001868ed86a95sm1627976plg.174.2022.11.17.09.05.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 09:05:48 -0800 (PST) Received: from gnu-tgl-3.. (localhost [IPv6:::1]) by gnu-tgl-3.localdomain (Postfix) with ESMTP id E013DC0263; Thu, 17 Nov 2022 09:05:46 -0800 (PST) From: "H.J. Lu" To: binutils@sourceware.org Cc: Jan Beulich Subject: [PATCH] i386: Move i386_seg_prefixes to gas Date: Thu, 17 Nov 2022 09:05:46 -0800 Message-Id: <20221117170546.1941945-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3026.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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 List-Id: gas/ * config/tc-i386.c (i386_seg_prefixes): New. Moved from opcodes. opcodes/ * i386-opc.c (i386_seg_prefixes): Removed. * i386-opc.h (i386_seg_prefixes): Likewise. --- gas/config/tc-i386.c | 10 ++++++++++ opcodes/i386-opc.c | 10 ---------- opcodes/i386-opc.h | 1 - 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 5bc3a56e4b2..f54e7fddee0 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -464,6 +464,16 @@ static const struct RC_name RC_NamesTable[] = { saeonly, STRING_COMMA_LEN ("sae") }, }; +/* To be indexed by segment register number. */ +static const unsigned char i386_seg_prefixes[] = { + ES_PREFIX_OPCODE, + CS_PREFIX_OPCODE, + SS_PREFIX_OPCODE, + DS_PREFIX_OPCODE, + FS_PREFIX_OPCODE, + GS_PREFIX_OPCODE +}; + /* List of chars besides those in app.c:symbol_chars that can start an operand. Used to prevent the scrubber eating vital white-space. */ const char extra_symbol_chars[] = "*%-([{}" diff --git a/opcodes/i386-opc.c b/opcodes/i386-opc.c index 66566bd54b6..729c22932b1 100644 --- a/opcodes/i386-opc.c +++ b/opcodes/i386-opc.c @@ -22,13 +22,3 @@ #include "libiberty.h" #include "i386-opc.h" #include "i386-tbl.h" - -/* To be indexed by segment register number. */ -const unsigned char i386_seg_prefixes[] = { - ES_PREFIX_OPCODE, - CS_PREFIX_OPCODE, - SS_PREFIX_OPCODE, - DS_PREFIX_OPCODE, - FS_PREFIX_OPCODE, - GS_PREFIX_OPCODE -}; diff --git a/opcodes/i386-opc.h b/opcodes/i386-opc.h index 168729fec62..459268f3656 100644 --- a/opcodes/i386-opc.h +++ b/opcodes/i386-opc.h @@ -1014,4 +1014,3 @@ reg_entry; extern const reg_entry i386_regtab[]; extern const unsigned int i386_regtab_size; -extern const unsigned char i386_seg_prefixes[6]; -- 2.37.3