This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] [MPFR] Fix regression on 32-bit host systems
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Mon, 11 Dec 2017 09:55:28 -0500
- Subject: [binutils-gdb] [MPFR] Fix regression on 32-bit host systems
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT f2f9e7ecc1f02bfe5da83c38cf356ea96d428c6d ***
Author: Ulrich Weigand <ulrich.weigand@de.ibm.com>
Branch: master
Commit: f2f9e7ecc1f02bfe5da83c38cf356ea96d428c6d
[MPFR] Fix regression on 32-bit host systems
When converting parts of the mantissa to MPFR, we need to make sure to do
an *unsigned* conversion. Since we convert at most 32 bits at a time,
stored in an unsigned long, this doesn't matter on systems where "long"
is larger than 32 bits. But on systems where it is 32 bits, we can get
conversion errors.
gdb/ChangeLog
2017-12-11 Ulrich Weigand <uweigand@de.ibm.com>
* target-float.c (mpfr_float_ops::from_target): Use mpfr_set_ui
instead of mpfr_set_si to convert mantissa bits.