Target FP: Remove convert_typed_floating from tdep files
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 69d83854cf1864a80690adbb0655fba6b502f3c4..617caaea7980c0d0504c62c2478c9f8707d358e9 100644 (file)
@@ -1,3 +1,225 @@
+2017-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * i386-tdep.c: Include "target-float.h".  Do not include "doublest.h".
+       (i386_extract_return_value): Use target_float_convert.
+       (i386_store_return_value): Likewise.
+       * i387-tdep.c (i387_register_to_value): Use target_float_convert.
+       (i387_value_to_register): Likewise.
+       * ia64-tdep.c: Include "target-float.h".  Do not include "doublest.h".
+       (ia64_register_to_value): Use target_float_convert.
+       (ia64_value_to_register): Likewise.
+       (ia64_extract_return_value): Likewise.
+       (ia64_store_return_value): Likewise.
+       (ia64_push_dummy_call): Likewise.
+       * m68k-tdep.c: Include "target-float.h".
+       (m68k_register_to_value): Use target_float_convert.
+       (m68k_value_to_register): Likewise.
+       (m68k_svr4_extract_return_value): Likewise.
+       (m68k_svr4_store_return_value): Likewise.
+       * ppc-sysv-tdep.c: Include "target-float.h".
+       (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
+       (do_ppc_sysv_return_value): Likewise.
+       (ppc64_sysv_abi_push_freg): Likewise.
+       (ppc64_sysv_abi_return_value_base): Likewise.
+       * rs6000-aix-tdep.c: Include "target-float.h".
+       (rs6000_push_dummy_call): Use target_float_convert.
+       (rs6000_return_value): Likewise.
+       * rs6000-lynx178-tdep.c: Include "target-float.h".
+       (rs6000_lynx178_push_dummy_call): Use target_float_convert.
+       (rs6000_lynx178_return_value): Likewise.
+       * rs6000-tdep.c: Include "target-float.h".  Do not include "doublest.h".
+       (rs6000_register_to_value): Use target_float_convert.
+       (rs6000_value_to_register): Likewise.
+       * arm-tdep.c: Include "target-float.h".  Do not include "doublest.h".
+       (arm_extract_return_value): Use target_float_convert.
+       (arm_store_return_value): Likewise.
+       * sh-tdep.c: Include "target-float.h".  Do not include "doublest.h".
+       (sh_register_convert_to_virtual): Use target_float_convert.
+       (sh_register_convert_to_raw): Likewise.
+       * sh64-tdep.c: Include "target-float.h".
+       (sh64_extract_return_value): Use target_float_convert.
+       (sh64_register_convert_to_virtual): Likewise.
+       (sh64_register_convert_to_raw): Likewise.  Fix argument types.
+
+2017-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * target-float.c (floatformat_to_host_double): New function.
+       (floatformat_from_host_double): Likewise.
+       (target_float_to_host_double): Likewise.
+       (target_float_from_host_double): Likewise.
+       * target-float.h (target_float_to_host_double): Add prototype.
+       (target_float_from_host_double): Likewise.
+
+       * guile/scm-value.c: Include "target-float.h".
+       (gdbscm_value_to_real): Use target_float_to_host_double.
+       Handle integer source values via value_as_long.
+       * guile/scm-math.c: Include "target-float.h".  Do not include
+       "doublest.h", "dfp.h", and "expression.h".
+       (vlscm_convert_typed_number): Use target_float_from_host_double.
+       (vlscm_convert_number): Likewise.
+
+       * python/py-value.c (valpy_float): Use target_float_to_host_double.
+       (convert_value_from_python): Use target_float_from_host_double.
+
+2017-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
+       (cast_from_fixed): Likewise.
+       (ada_scaling_type): New function.
+       (ada_delta): Return value instead of DOUBLEST.  Perform target
+       arithmetic instead of host arithmetic.
+       (scaling_factor): Rename to ...
+       (ada_scaling_factor) ... this.  Make non-static.  Return value instead
+       of DOUBLEST.  Perform target arithmetic instead of host arithmetic.
+       (ada_fixed_to_float): Remove.
+       (ada_float_to_fixed): Remove.
+       * ada-lang.h (ada_fixed_to_float): Remove.
+       (ada_float_to_fixed): Remove.
+       (ada_delta): Return value instead of DOUBLEST.
+       (ada_scaling_factor): Add prototype.
+
+       * ada-typeprint.c: Include "target-float.h".
+       (print_fixed_point_type): Perform target arithmetic instead of
+       host arithmetic.
+       * ada-valprint.c: Include "target-float.h".
+       (ada_val_print_num): Perform target arithmetic instead of
+       host arithmetic for fixed-point types.
+
+2017-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * target-float.c: Include <math.h>.
+       (floatformat_binop): New function.
+       (floatformat_compare): Likewise.
+       (target_float_binop): Likewise.
+       (target_float_compare): Likewise.
+       * target-float.h: Include "expression.h".
+       (target_float_binop): Add prototype.
+       (target_float_compare): Likewise.
+
+       * valarith.c: Do not include "doublest.h" and "dfp.h".
+       Include "common/byte-vector.h".
+       (value_args_as_decimal): Remove, replace by ...
+       (value_args_as_target_float): ... this function.  Handle both
+       binary and decimal target floating-point formats.
+       (scalar_binop): Handle both binary and decimal FP using
+       value_args_as_target_float and target_float_binop.
+       (value_equal): Handle both binary and decimal FP using
+       value_args_as_target_float and target_float_compare.
+       (value_less): Likewise.
+       (value_pos): Handle all scalar types as simple copy.
+       (value_neg): Handle all scalar types via BINOP_SUB from 0.
+       * dfp.c (decimal_binop): Throw error instead of internal_error
+       when called with an unsupported operation code.
+
+2017-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * target-float.c (target_float_to_string): New function.
+       (target_float_from_string): New function.
+       * target-float.h (target_float_to_string): Add prototype.
+       (target_float_from_string): Add prototype.
+
+       * valprint.c: Include "target-float.h".  Do not include
+       "doublest.h" and "dfp.h".
+       (print_floating): Use target_float_to_string.
+       * printcmd.c: Include "target-float.h".  Do not include "dfp.h".
+       (printf_floating): Use target_float_to_string.
+       * i387-tdep.c: Include "target-float.h".  Do not include "doublest.h".
+       (print_i387_value): Use target_float_to_string.
+       * mips-tdep.c: Include "target-float.h".
+       (mips_print_fp_register): Use target_float_to_string.
+       * sh64-tdep.c: Include "target-float.h".
+       (sh64_do_fp_register): Use target_float_to_string.
+
+       * parse.c: Include "target-float.h".  Do not include
+       "doublest.h" and "dfp.h".
+       (parse_float): Use target_float_from_string.
+       * stabsread.c: Include "target-float.h".  Do not include "doublest.h".
+       (define_symbol): Use target_float_from_string.
+       * gdbarch-selftests.c: Include "target-float.h".
+       (register_to_value_test): Use target_float_from_string.
+
+2017-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * Makefile.c (SFILES): Add target-float.c.
+       (HFILES_NO_SRCDIR): Add target-float.h.
+       (COMMON_OBS): Add target-float.o.
+       * target-float.h: New file.
+       * target-float.c: New file.
+
+       * doublest.c (floatformat_classify): Fix detection of float_zero.
+
+       * gdbtypes.c (is_floating_type): New function.
+       * gdbtypes.h (is_floating_type): Add prototype.
+
+       * value.c: Do not include "floatformat.h".
+       (unpack_double): Use target_float_is_valid.
+       (is_floating_value): New function.
+       * value.h (is_floating_value): Add prototype-
+
+       * valarith.c: Include "target-float.h".
+       (value_logical_not): Use target_float_is_zero.
+
+       * python/py-value.c: Include "target-float.h".
+       (valpy_nonzero): Use target_float_is_zero.
+
+2017-11-04  Tom Tromey  <tom@tromey.com>
+
+       * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
+
+2017-11-04  Tom Tromey  <tom@tromey.com>
+
+       * breakpoint.c (set_momentary_breakpoint): Return
+       breakpoint_up.
+       (until_break_command): Update.
+       (new_until_break_fsm): Change argument types to
+       breakpoint_up.
+       (set_momentary_breakpoint_at_pc): Return breakpoint_up.
+       (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
+       Remove.
+       * infcmd.c (finish_forward): Update.
+       * breakpoint.h (set_momentary_breakpoint)
+       (set_momentary_breakpoint_at_pc): Return breakpoint_up.
+       (make_cleanup_delete_breakpoint): Remove.
+       (struct breakpoint_deleter): New.
+       (breakpoint_up): New typedef.
+       * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
+       (insert_exception_resume_breakpoint): Update.
+       (insert_exception_resume_from_probe): Update.
+       (insert_longjmp_resume_breakpoint): Update.
+       * arm-linux-tdep.c (arm_linux_copy_svc): Update.
+       * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
+       * infcall.c (call_function_by_hand_dummy): Update
+
+2017-11-04  Tom Tromey  <tom@tromey.com>
+
+       * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
+
+2017-11-04  Tom Tromey  <tom@tromey.com>
+
+       * linux-tdep.c (linux_core_info_proc_mappings): Use
+       gdb::def_vector.
+       (linux_get_siginfo_data): Return gdb::byte_vector.  Remove
+       "size" argument.
+       (linux_corefile_thread): Update.
+       (linux_make_corefile_notes): Remove unused variable.
+
+2017-11-04  Tom Tromey  <tom@tromey.com>
+
+       * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
+       gdb::byte_vector.
+
+2017-11-04  Tom Tromey  <tom@tromey.com>
+
+       * objfiles.c (do_free_objfile_cleanup): Remove.
+       * compile/compile-object-load.c (compile_object_load): Update.
+       * objfiles.h (make_cleanup_free_objfile): Remove.
+
+2017-11-04  Tom Tromey  <tom@tromey.com>
+
+       * sparc64-tdep.c (do_examine): Use gdb::def_vector.
+       (adi_read_versions): Change "tags" to "gdb_byte *".
+       (adi_print_versions): Likewise.
+
 2017-11-04  Tom Tromey  <tom@tromey.com>
 
        * breakpoint.c
This page took 0.122843 seconds and 4 git commands to generate.