]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[MPFR] Fix regression on 32-bit host systems
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 11 Dec 2017 14:26:26 +0000 (15:26 +0100)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 11 Dec 2017 14:26:26 +0000 (15:26 +0100)
commitf2f9e7ecc1f02bfe5da83c38cf356ea96d428c6d
tree2fe28700886648828a34f277803dfff5793e4c46
parentc5f9cfc894373abd00ee56c6723ee0ba95a84f95
[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.
gdb/ChangeLog
gdb/target-float.c