From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by sourceware.org (Postfix) with ESMTPS id CD8903857352 for ; Fri, 29 Jul 2022 20:44:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CD8903857352 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=nefkom.net Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4Lvfd35Kf0z1qybm; Fri, 29 Jul 2022 22:44:07 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4Lvfd34rtcz1qqkB; Fri, 29 Jul 2022 22:44:07 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 6gHaf77uCeJk; Fri, 29 Jul 2022 22:44:06 +0200 (CEST) X-Auth-Info: lT7m5UyIei9DiNziDuHbHYQjesbQHsJnk/3Cb/RgexawqhB2G99F0G0TAtvjLfm+ Received: from igel.home (ppp-46-244-176-182.dynamic.mnet-online.de [46.244.176.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Fri, 29 Jul 2022 22:44:06 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 317342C3356; Fri, 29 Jul 2022 22:44:06 +0200 (CEST) From: Andreas Schwab To: Cary Coutant via Binutils Cc: Vladislav Khmelevsky , Cary Coutant Subject: Re: [PATCH] gold/aarch64: Fix adrp distance check References: <20220625175259.3171982-1-och95@yandex.ru> X-Yow: Now, I think it would be GOOD to buy FIVE or SIX STUDEBAKERS and CRUISE for ARTIFICIAL FLAVORING!! Date: Fri, 29 Jul 2022 22:44:06 +0200 In-Reply-To: (Cary Coutant via Binutils's message of "Fri, 29 Jul 2022 13:14:08 -0700") Message-ID: <87a68r8x9l.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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 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: Fri, 29 Jul 2022 20:44:11 -0000 On Jul 29 2022, Cary Coutant via Binutils wrote: > The cast is unnecessary here for assignment to an int64_t. Once the > result is in a signed int, I don't think you need to go to all that > extra trouble to shift it. Note that right shifting a negative value is fully defined only in C++20 and later. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."