This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC v2][2/2] Target FP: Make use of MPFR if available


On 11/29/2017 05:55 PM, Ulrich Weigand wrote:
> John Baldwin wrote:
> 
>> FreeBSD's stdint.h uses _SYS_STDINT_H_ as it's include guard for <stdint.h>,
>> so this check doesn't work.  Perhaps GDB's sources should just define
>> MPFR_USE_INTMAX_T explicitly after ensuring <stdint.h> is included?  That
>> would seem to be the most portable approach and I think is what the
>> "Portable software should not rely on these tests" implies.
> 
> I agree.  GDB now requires C++11, which always has intmax_t, so it should
> be fine to simply always require this.

And even if a compiler isn't compliant for some reason, we'd
get a stdint.h replacement via gnulib that provides intmax_t.

Thanks,
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]