dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
authorOlivier Hainque <hainque@adacore.com>
Fri, 1 Apr 2011 23:38:57 +0000 (23:38 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 1 Apr 2011 23:38:57 +0000 (23:38 +0000)
commit2a9d769a7f82fb505b88cb590690885e937e5662
tree037329f3415309e9ac21668c4c9050522ef31060
parent9b2398a4c48cc52d3131516e01402e6297ceb16e
dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.

* dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
(add_gnat_descriptive_type_attribute): New function.
(gen_array_type_die): Call it.
(gen_enumeration_type_die): Likewise.
(gen_struct_or_union_type_die): Likewise.
(modified_type_die): Likewise.
* langhooks.h (lang_hooks_for_types): New descriptive_type hook.
* langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
(LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
ada/
* gcc-interface/misc.c (gnat_descriptive_type): New function.
(LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type.

Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com>
Co-Authored-By: Nicolas Setton <setton@adacore.com>
From-SVN: r171862
gcc/ChangeLog
gcc/ada/ChangeLog
gcc/ada/gcc-interface/misc.c
gcc/dwarf2out.c
gcc/langhooks-def.h
gcc/langhooks.h