From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by sourceware.org (Postfix) with ESMTPS id 4D8593851406; Wed, 11 May 2022 18:00:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4D8593851406 Received: by mail-ed1-x533.google.com with SMTP id d6so3484208ede.8; Wed, 11 May 2022 11:00:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=gVIQJ/IfkXLK/TT1TYDFceONxp2DCW79brTr+ixOfc4=; b=dHf+Q5IHTka+AVKexzHIBe4bj5D06ede1BO4VTgNPkw18UTrAgC5XJcXljjKg/VSpT 2FW3LclIZHte6+iEZ1pQcnbXsNQNV3NNGRODNz9ZA9Kh9tZ1ljNFTgW8oLY1wEvz6P+E z/DlciqpEdepUH8OcdXx9GxbNE9NUjNFpbEm0/IdDLpHo8Rjiv+f0ajYWe2bCS5ydQxQ 18VUsprZoyHk0ytJFJX4dJw7NeQE9pNHvJUrMTxV/8eXZ+aUYgrSUxcEp8DzmfjrL6ol oEeBolKjMbw6g+FcxId/mFSVVVY3a1UO+l3EN4EhPJwFRAnQ1t8gUirE4ACRiwCpxaAK OY7Q== X-Gm-Message-State: AOAM530ke9wU+QYuhcmRdcE3CFbfy3oaHhQGK02/OrPSl34D0hyYdfWH IxkaSYGhm36hq0XafhD88L/YOj/O7SHPk+5+xoY4WwL1JOg= X-Google-Smtp-Source: ABdhPJyCLRbQYrJmmnSJw6xkPCu8Hwu5bouN1FqVrkYax61VodPAQOFITnwhtDn8BOdE6WrtVwoLDuzUDvO2/+an2BA= X-Received: by 2002:a05:6402:3214:b0:428:9d92:e5c5 with SMTP id g20-20020a056402321400b004289d92e5c5mr17903211eda.108.1652292000674; Wed, 11 May 2022 11:00:00 -0700 (PDT) MIME-Version: 1.0 From: Dmitry Selyutin Date: Wed, 11 May 2022 20:59:24 +0300 Message-ID: Subject: [PATCH 2/2] gas/write: extend fx_pcrel_adjust to 16 bits To: binutils@sourceware.org Cc: gdb-patches@sourceware.org, Alan Modra , Luke Kenneth Casson Leighton Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-8.1 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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 May 2022 18:00:03 -0000 PowerPC code stores operand index into fx_pcrel_adjust field of fix struct. Once count of PowerPC operands exceeds an 8-bit integer, the code won't be able to store operand index anymore. This patch extends the aforementioned field to 16 bits, exactly like the ppc_opindex_t type; the missing 8 bits are taken from the fx_unused field. --- gas/write.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gas/write.h b/gas/write.h index 501bdd828f..e31a0f5955 100644 --- a/gas/write.h +++ b/gas/write.h @@ -73,10 +73,10 @@ struct fix unsigned fx_tcbit2 : 1; /* Spare bits. */ - unsigned fx_unused : 10; + unsigned fx_unused : 2; /* pc-relative offset adjust (only used by some CPU specific code) */ - int fx_pcrel_adjust : 8; + int fx_pcrel_adjust : 16; /* How many bytes are involved? */ unsigned fx_size : 8; -- 2.36.0