From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta040.useast.a.cloudfilter.net (omta040.useast.a.cloudfilter.net [44.202.169.39]) by sourceware.org (Postfix) with ESMTPS id 9ED7F3858404 for ; Fri, 8 Dec 2023 15:15:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9ED7F3858404 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9ED7F3858404 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702048547; cv=none; b=g3nCh9Tx7ukYUMWQbYKovdQP+oHni1FGaGVFwa2cl9z9fR9ihC+xz9ErZ0YoYaM7cn43nneOsVxYs4jarDHdviDyEo/sTRESHlxHopvgETaUG7ENqU4kX4kX1L/Bq2q+pyhsv9TCWFYCfavXFeCGfoePSoQn+7fJge0xAx4qJaY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702048547; c=relaxed/simple; bh=1WV/RFZ/89xEzwd3rgw0TqtScjmt3Ri/bagRsyDcX3Q=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=s+3DbgplDj4TPU1AezIVSGdnnZ/FWmJxAqRftxu/PF9TkMBqXznSDUhnPNcCd3UguZXJLe+6O28ilV2vxgzLD/M2QOR7/F1S6F7pVnwe4jmv217LBP0srSBIB6vZIS/RI4Phoy1UiMrCyWPYOriAT60kWKPX99KWWGGdSfURpg8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-6010a.ext.cloudfilter.net ([10.0.30.248]) by cmsmtp with ESMTPS id BLwarKvxG6nOZBcZtreiOP; Fri, 08 Dec 2023 15:15:45 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id BcZsrFqNt8vT0BcZsrXIS9; Fri, 08 Dec 2023 15:15:44 +0000 X-Authority-Analysis: v=2.4 cv=ffi+dmcF c=1 sm=1 tr=0 ts=65733320 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=OWjo9vPv0XrRhIrVQ50Ab3nP57M=:19 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=e2cXIFwxEfEA:10 a=Qbun_eYptAEA:10 a=zstS-IiYAAAA:8 a=GkJ5xcCHEeIuKjnEhAEA:9 a=zgiPjhLxNE0A:10 a=4G6NA9xxw8l3yy4pmD5M:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=VWSO4v7vvVP2uz+Xgsy7yCmOyVPbztgOujXD6KLdr8Y=; b=ganFWpEXxykPMZiLWWUUH083CR J7GJXWjCx8MXyN/Kg87B8/JmUTzR2CYqJ69otWNlsdpdP9q7bQCmC6xg4vd7l1gEgB3kpxF0kDPmr ZinSIahwqyYPxQQPp/h9PwhmB; Received: from 71-211-161-25.hlrn.qwest.net ([71.211.161.25]:33798 helo=murgatroyd) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1rBcZs-000YdQ-0k; Fri, 08 Dec 2023 08:15:44 -0700 From: Tom Tromey To: Tom Tromey Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] Allow cast of 128-bit integer to pointer References: <20231125022548.1613394-1-tom@tromey.com> X-Attribution: Tom Date: Fri, 08 Dec 2023 08:15:43 -0700 In-Reply-To: <20231125022548.1613394-1-tom@tromey.com> (Tom Tromey's message of "Fri, 24 Nov 2023 19:25:48 -0700") Message-ID: <87bkb0iv34.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 71.211.161.25 X-Source-L: No X-Exim-ID: 1rBcZs-000YdQ-0k X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 71-211-161-25.hlrn.qwest.net (murgatroyd) [71.211.161.25]:33798 X-Source-Auth: tom+tromey.com X-Email-Count: 3 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfIiNkhL5BzNhVf1c/7RHt8U9GBk1cFuesNMthA3fy0qLBqjmbofITYlyncV/Z3jhVmkV3inoqmfk7XRvJYuXmQ3WoxNKuWWTmyEjuol/mEeIn5XzizEP ivaQcb60j6caNF1yL1H0ho4Z2reMi4yLHI3f5wKtay1dbzXQmutZGsH7lnU/bfqJB2Opui1dA/d2TGBSh1iMYRBpOOy4b/cS4oU= X-Spam-Status: No, score=-3016.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,JMQ_SPF_NEUTRAL,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: >>>>> "Tom" == Tom Tromey writes: Tom> PR rust/31082 points out that casting a 128-bit integer to a pointer Tom> will fail. This happens because a case in value_cast was not Tom> converted to use GMP. Tom> This patch fixes the problem. I am not really sure that testing Tom> against the negative value here makes sense, but I opted to just Tom> preserve the existing behavior rather than change it. I'm checking this in. Tom