From patchwork Thu Nov 30 16:44:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Baldwin X-Patchwork-Id: 24637 Received: (qmail 115698 invoked by alias); 30 Nov 2017 16:44:23 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 115681 invoked by uid 89); 30 Nov 2017 16:44:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KB_WAM_FROM_NAME_SINGLEWORD, SPF_HELO_PASS, SPF_SOFTFAIL autolearn=ham version=3.3.2 spammy= X-HELO: mail.baldwin.cx Received: from bigwig.baldwin.cx (HELO mail.baldwin.cx) (96.47.65.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 30 Nov 2017 16:44:20 +0000 Received: from ralph.baldwin.cx.com (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by mail.baldwin.cx (Postfix) with ESMTPSA id ECF9210A8BE for ; Thu, 30 Nov 2017 11:44:18 -0500 (EST) From: John Baldwin To: gdb-patches@sourceware.org Subject: [PUSHED] Define MPFR_USE_INTMAX_T so that mpfr.h assumes intmax_t is available. Date: Thu, 30 Nov 2017 08:44:04 -0800 Message-Id: <20171130164404.30230-1-jhb@FreeBSD.org> X-IsSubscribed: yes mpfr.h uses a non-portable test to guess if intmax_t is available and if API functions using intmax_t should be exposed. Define MPFR_USE_INTMAX_T to override the non-portable test and always expose these functions. This fixes the build on platforms where the test guesses incorrectly. gdb/ChangeLog: * target-float.c [HAVE_LIBMPFR]: Define MPFR_USE_INTMAX_T. --- gdb/ChangeLog | 4 ++++ gdb/target-float.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ca8c5dfaf1..d6cbba8aeb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2017-11-29 John Baldwin + + * target-float.c [HAVE_LIBMPFR]: Define MPFR_USE_INTMAX_T. + 2017-11-29 Joel Brobecker * ada-lang.c (to_fixed_range_type): Make sure that the size diff --git a/gdb/target-float.c b/gdb/target-float.c index 32237ec9d9..b40b6416c1 100644 --- a/gdb/target-float.c +++ b/gdb/target-float.c @@ -1147,6 +1147,8 @@ host_float_ops::compare (const gdb_byte *x, const struct type *type_x, #ifdef HAVE_LIBMPFR +#define MPFR_USE_INTMAX_T + #include class mpfr_float_ops : public target_float_ops