From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id OHWCOZr6e2I0sQUAWB0awg (envelope-from ) for ; Wed, 11 May 2022 14:04:10 -0400 Received: by simark.ca (Postfix, from userid 112) id E8BB61E220; Wed, 11 May 2022 14:04:10 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=Ggf7hnIQ; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 8236C1E00D for ; Wed, 11 May 2022 14:04:10 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E71BB3856DE7 for ; Wed, 11 May 2022 18:04:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E71BB3856DE7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1652292249; bh=gVIQJ/IfkXLK/TT1TYDFceONxp2DCW79brTr+ixOfc4=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=Ggf7hnIQuDDcWHPpuKVO+7uSgPtUhJVSZNPFehk/uKxn28aNPYKacQXVgvVNDjj8T cN8VTOYIKHlo9YtVAmYrOccbW+fXeWhT5DMLKorr+5+GUqd1MiUs9XTfjiKyWFJlok ktQpEC+41MmO21lA9fCnWjqaek17DH+rvGnN4TyY= 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 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 Content-Type: text/plain; charset="UTF-8" X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Dmitry Selyutin via Gdb-patches Reply-To: Dmitry Selyutin Cc: Luke Kenneth Casson Leighton , gdb-patches@sourceware.org, Alan Modra Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" 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