From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id EPjOBU6msl9CZAAAWB0awg (envelope-from ) for ; Mon, 16 Nov 2020 11:18:22 -0500 Received: by simark.ca (Postfix, from userid 112) id 159E01F08B; Mon, 16 Nov 2020 11:18:22 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.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 B5ECE1E58F for ; Mon, 16 Nov 2020 11:18:21 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7777B3858C27; Mon, 16 Nov 2020 16:18:21 +0000 (GMT) Received: from rock.gnat.com (rock.gnat.com [IPv6:2620:20:4000:0:a9e:1ff:fe9b:1d1]) by sourceware.org (Postfix) with ESMTP id 976B13858C27 for ; Mon, 16 Nov 2020 16:18:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 976B13858C27 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey@adacore.com Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 782D7116299; Mon, 16 Nov 2020 11:18:19 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at gnat.com Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id f9UyMjtH2npG; Mon, 16 Nov 2020 11:18:19 -0500 (EST) Received: from murgatroyd (97-122-89-243.hlrn.qwest.net [97.122.89.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by rock.gnat.com (Postfix) with ESMTPSA id 1771B116290; Mon, 16 Nov 2020 11:18:19 -0500 (EST) From: Tom Tromey To: Tom Tromey Subject: Re: [PATCH 3/9] gmp-utils: New API to simply use of GMP's integer/rational/float objects References: <1604817017-25807-1-git-send-email-brobecker@adacore.com> <1604817017-25807-4-git-send-email-brobecker@adacore.com> <2966f3cf-955c-1849-e7ab-f01843cb7a33@simark.ca> <20201113081230.GA281286@adacore.com> <87y2j59u34.fsf@tromey.com> X-Attribution: Tom Date: Mon, 16 Nov 2020 09:18:18 -0700 In-Reply-To: <87y2j59u34.fsf@tromey.com> (Tom Tromey's message of "Fri, 13 Nov 2020 08:04:15 -0700") Message-ID: <87y2j11dit.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: , Cc: Simon Marchi , gdb-patches@sourceware.org, Joel Brobecker Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" Tom> Also perhaps instead of updating these we should reconsider using the Tom> c++ classes that come with gmp. See gmpxx.h or Tom> (info "(gmp) C++ Class Interface") Tom> (I'm don't recall why these weren't used, maybe it's the caveat in the Tom> manual. However I think we can probably deal with that ok.) I took a brief look at this, and this isn't a header-only wrapper -- it requires another library, and at least on Fedora this is packaged separately. For me at least this puts it into the "overkill" category; so I plan to look at just modifying our wrapper classes instead. Tom