* 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.
This commit is contained in:
Thiago Jung Bauermann
2007-12-20 17:17:21 +00:00
parent 5863b5d536
commit 213e4dc22e
3 changed files with 29 additions and 3 deletions

View 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. */