summaryrefslogtreecommitdiff
path: root/gdb/sparc64-linux-nat.c
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2017-11-16 18:49:11 +0100
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2017-11-16 18:49:11 +0100
commitd723696126beb185dc1f8f3196be7cb29948148d (patch)
tree11066788de07d7bf7c5bfaac9eab744b942e7e25 /gdb/sparc64-linux-nat.c
parentd0f7791c6659081f3a62e220289417c010997baa (diff)
downloadbinutils-gdb-d723696126beb185dc1f8f3196be7cb29948148d.tar.gz
Refactor endian handling in DFP routines
This patch moves endian conversion into the decimal_from_number and decimal_to_number routines, and removes it from all their callers, making the code simpler overall. No functional change. gdb/ChangeLog: 2017-11-16 Ulrich Weigand <uweigand@de.ibm.com> * target-float.c (decimal_from_number): Add byte_order argument and call match_endianness. Error if unknown floating-point type. (decimal_to_number): Add byte_order argument and call match_endianness. (decimal_from_longest): Update call. Do not call match_endianness. (decimal_from_ulongest): Likewise. (decimal_binop): Likewise. (decimal_is_zero): Likewise. (decimal_compare): Likewise. (decimal_convert): Likewise.
Diffstat (limited to 'gdb/sparc64-linux-nat.c')
0 files changed, 0 insertions, 0 deletions