2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
[binutils-gdb.git] / gdb / ChangeLog
index 82eaeb3d0700776463bdae2e98fd39b57ddb42cc..be6eab8d00e8ba148d58eeee675c9a26daf25e2e 100644 (file)
@@ -1,3 +1,54 @@
+2007-10-25  Wu Zhou  <woodzltc@cn.ibm.com> 
+           Thiago Jung Bauermann  <bauerman@br.ibm.com>
+
+       * c-lang.c (c_create_fundamental_type): Create fundamental
+       types for DFP.
+       * c-typeprint.c (c_type_print_varspec_prefix): Add
+       TYPE_CODE_DECFLOAT to no prefix needed case.
+       (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
+       suffix needed case.
+       * c-valprint.c (c_val_print): Call print_decimal_floating to
+       print DFP values.
+       * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
+       attribute code and return TYPE_CODE_DECFLOAT.
+       (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
+       * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
+       builtin_decdouble and builtin_declong. 
+       * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
+       type code for DFP.
+       (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
+       types, for decimal floating point.
+       (FT_NUM_MEMBERS):  Increment, new types added.
+       (struct builtin_type): Add builtin_decfloat, builtin_decdouble
+       and builtin_declong.
+       * valprint.c (print_decimal_floating): New function to print DFP
+       values.
+       * value.h (print_decimal_floating): Prototype.
+
+2007-10-25  Wu Zhou  <woodzltc@cn.ibm.com> 
+           Thiago Jung Bauermann  <bauerman@br.ibm.com>
+
+       * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
+       LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
+       (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
+       (INSTALLED_LIBS): Add -ldecnumber in.
+       (CLIBS): Add LIBDECNUMBER in.
+       (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
+       headers.
+       (dfp_h): New macros for decimal floating point.
+       (dfp.o): New target.
+       (COMMON_OBS): Add dfp.o in.
+       (c-exp.o): Add dfp_h as dependency.
+       (valprint.o): Add dfp_h as dependency.
+       (value.o): Add dfp_h as dependency.
+       * dfp.h: New header file for decimal floating point support in
+       GDB.
+       * dfp.c: New source file for decimal floating point support in
+       GDB.  Implement decimal_from_string and decimal_to_string based
+       on libdecnumber API.
+       * configure.ac: Add AC_C_BIGENDIAN test.
+       * config.in, configure: Regenerate.
+
 2007-10-25  David Ung  <davidu@mips.com>
             Maciej W. Rozycki  <macro@mips.com>