* gdbtypes.c (gdbtypes_post_init): Change names of decimal float types
authorThiago Jung Bauermann <bauerman@br.ibm.com>
Thu, 20 Dec 2007 17:17:21 +0000 (17:17 +0000)
committerThiago Jung Bauermann <bauerman@br.ibm.com>
Thu, 20 Dec 2007 17:17:21 +0000 (17:17 +0000)
to conform to C extension for decimal float.
* c-lang.c (enum c_primitive_types): Add entries for Decimal Floating
Point types.
(enum cplus_primitive_types): Likewise.
(c_language_arch_info): Add Decimal Floating Point builtin types to
the primitive_type_vector.
(cplus_language_arch_info): Likewise.

gdb/ChangeLog
gdb/c-lang.c
gdb/gdbtypes.c

index 3d56550ee54067fbf232fa1bba41383c5bb0eb3e..e8f530ea63dbfca44d79fd6f6c17a9494da3a875 100644 (file)
@@ -1,3 +1,14 @@
+2007-12-20  Thiago Jung Bauermann  <bauerman@br.ibm.com>
+
+       * gdbtypes.c (gdbtypes_post_init): Change names of decimal float types
+       to conform to C extension for decimal float.
+       * c-lang.c (enum c_primitive_types): Add entries for Decimal Floating
+       Point types.
+       (enum cplus_primitive_types): Likewise.
+       (c_language_arch_info): Add Decimal Floating Point builtin types to
+       the primitive_type_vector.
+       (cplus_language_arch_info): Likewise.
+
 2007-12-20  David Ung  <davidu@mips.com>
             Maciej W. Rozycki  <macro@mips.com>
 
index e3151b9345dfa249bf060a7b4794937fb45c8e21..a504ea98387c85dae11ea6160b221c1ad4a73919 100644 (file)
@@ -358,6 +358,9 @@ enum c_primitive_types {
   c_primitive_type_long_double,
   c_primitive_type_complex,
   c_primitive_type_double_complex,
+  c_primitive_type_decfloat,
+  c_primitive_type_decdouble,
+  c_primitive_type_declong,
   nr_c_primitive_types
 };
 
@@ -387,6 +390,9 @@ c_language_arch_info (struct gdbarch *gdbarch,
   lai->primitive_type_vector [c_primitive_type_long_double] = builtin->builtin_long_double;
   lai->primitive_type_vector [c_primitive_type_complex] = builtin->builtin_complex;
   lai->primitive_type_vector [c_primitive_type_double_complex] = builtin->builtin_double_complex;
+  lai->primitive_type_vector [c_primitive_type_decfloat] = builtin->builtin_decfloat;
+  lai->primitive_type_vector [c_primitive_type_decdouble] = builtin->builtin_decdouble;
+  lai->primitive_type_vector [c_primitive_type_declong] = builtin->builtin_declong;
 }
 
 const struct language_defn c_language_defn =
@@ -442,6 +448,9 @@ enum cplus_primitive_types {
   cplus_primitive_type_complex,
   cplus_primitive_type_double_complex,
   cplus_primitive_type_bool,
+  cplus_primitive_type_decfloat,
+  cplus_primitive_type_decdouble,
+  cplus_primitive_type_declong,
   nr_cplus_primitive_types
 };
 
@@ -490,6 +499,12 @@ cplus_language_arch_info (struct gdbarch *gdbarch,
     = builtin->builtin_double_complex;
   lai->primitive_type_vector [cplus_primitive_type_bool]
     = builtin->builtin_bool;
+  lai->primitive_type_vector [cplus_primitive_type_decfloat]
+    = builtin->builtin_decfloat;
+  lai->primitive_type_vector [cplus_primitive_type_decdouble]
+    = builtin->builtin_decdouble;
+  lai->primitive_type_vector [cplus_primitive_type_declong]
+    = builtin->builtin_declong;
 }
 
 const struct language_defn cplus_language_defn =
index 1026305163836e0e713951537f019288eeb5e36d..e42c2f4166ad712b37d4583e19a878d662eb6ac6 100644 (file)
@@ -3122,15 +3122,15 @@ gdbtypes_post_init (struct gdbarch *gdbarch)
   builtin_type->builtin_decfloat
     = init_type (TYPE_CODE_DECFLOAT, 32 / 8,
                0,
-              "decimal float", (struct objfile *) NULL);
+              "_Decimal32", (struct objfile *) NULL);
   builtin_type->builtin_decdouble
     = init_type (TYPE_CODE_DECFLOAT, 64 / 8,
               0,
-              "decimal double", (struct objfile *) NULL);
+              "_Decimal64", (struct objfile *) NULL);
   builtin_type->builtin_declong
     = init_type (TYPE_CODE_DECFLOAT, 128 / 8,
               0,
-              "decimal long double", (struct objfile *) NULL);
+              "_Decimal128", (struct objfile *) NULL);
 
   /* Pointer/Address types.  */