This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC v2][2/2] Target FP: Make use of MPFR if available
- From: John Baldwin <jhb at freebsd dot org>
- To: gdb-patches at sourceware dot org
- Cc: Ulrich Weigand <uweigand at de dot ibm dot com>
- Date: Wed, 29 Nov 2017 16:23:28 -0800
- Subject: Re: [RFC v2][2/2] Target FP: Make use of MPFR if available
- Authentication-results: sourceware.org; auth=none
- References: <20171129175536.A27B8D80320@oc3748833570.ibm.com>
On Wednesday, November 29, 2017 06:55:36 PM Ulrich Weigand wrote:
> John Baldwin wrote:
> > Indeed, this does fix the build on FreeBSD:
> >
> > 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<T>::compare (const gdb_byte *x, const
> > struct type *type_x,
> >
> > #ifdef HAVE_LIBMPFR
> >
> > +#define MPFR_USE_INTMAX_T
> > +
> > #include <mpfr.h>
> >
> > class mpfr_float_ops : public target_float_ops
>
> This looks good to me. Can you check this in?
Will do, thanks.
--
John Baldwin