From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AC21C3858404; Fri, 8 Dec 2023 15:39:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AC21C3858404 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1702049940; bh=QocrM+NjDX2rqd3lMzEKNtpcF4GOt0jxdiluBLFvkmQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=dmqZyDD3mlJtN7Fc2ANECqffL2sWKnlZ3RfB8SIM9h9T4aBoUw1RzlbX49IW75gPu r2bDz7vcWrK3Djyc9+VGZGJFZmD87Z9nKJ/scmoQcLsX1VwfDRsMsRyrWk8loK48aI HlNwrmjpP+SfIrA4KrB55lGfnhNyglaCRy/Ob0GM= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug rust/31082] rust-parse infers `0xffffffd00000009a` and other addresses as i128, preventing `as *mut _` coercions in `print` Date: Fri, 08 Dec 2023 15:39:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: rust X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: tromey at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31082 --- Comment #3 from Sourceware Commits --- The master branch has been updated by Tom Tromey : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D44671f3f7f4c= 6435e7a639ad2215629f4e1ea8a7 commit 44671f3f7f4c6435e7a639ad2215629f4e1ea8a7 Author: Tom Tromey Date: Fri Nov 24 12:10:53 2023 -0700 Allow cast of 128-bit integer to pointer PR rust/31082 points out that casting a 128-bit integer to a pointer will fail. This happens because a case in value_cast was not converted to use GMP. This patch fixes the problem. I am not really sure that testing against the negative value here makes sense, but I opted to just preserve the existing behavior rather than change it. Regression tested on x86-64 Fedora 38. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31082 --=20 You are receiving this mail because: You are on the CC list for the bug.=