From: Pip Cet Date: Mon, 10 Apr 2017 00:10:28 +0000 (+0000) Subject: WebAssembly disassembler support X-Git-Tag: gdb-8.0-release~164 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aa808707033a46ee063263f4bc1bd06449851621;p=platform%2Fupstream%2Fbinutils.git WebAssembly disassembler support * wasm32-dis.c (print_insn_wasm32): Avoid DECIMAL_DIG, specify appropriate floating-point precision directly. --- diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 73a0071..1e8763e 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2017-04-09 Pip Cet + + * wasm32-dis.c (print_insn_wasm32): Avoid DECIMAL_DIG, specify + appropriate floating-point precision directly. + 2017-04-07 Alan Modra * ppc-opc.c (powerpc_opcodes #include "libiberty.h" #include "elf-bfd.h" #include "elf/internal.h" @@ -405,7 +404,7 @@ print_insn_wasm32 (bfd_vma pc, struct disassemble_info *info) if (ret < 0) return -1; len += ret; - prin (stream, " %.*g", DECIMAL_DIG, fconstant); + prin (stream, " %.9g", fconstant); break; case wasm_constant_f64: @@ -413,7 +412,7 @@ print_insn_wasm32 (bfd_vma pc, struct disassemble_info *info) if (ret < 0) return -1; len += ret; - prin (stream, " %.*g", DECIMAL_DIG, fconstant); + prin (stream, " %.17g", fconstant); break; case wasm_call: