Complete information generated through the array descriptor language hook
authorpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Dec 2014 16:25:21 +0000 (16:25 +0000)
committerpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Dec 2014 16:25:21 +0000 (16:25 +0000)
commit7b36a3d439e2b838ed8bd30cdae52ca54a0f64e1
tree8a6807260b675ee552ea6bd67e5074f9aaecba7a
parent78d92cede18834d10d528fefc48917acb46ae462
Complete information generated through the array descriptor language hook

gcc/
* dwarf2out.h (enum array_descr_ordering): New.
(array_descr_dimen): Add a bounds_type structure field.
(struct array_descr_info): Add a field to hold index type information
and another one to hold ordering information.
* dwarf2out.c (gen_type_die_with_usage): Get the main variant before
invoking the array descriptor language hook.  Initialize the
array_descr_info structure before calling the lang-hook.
(gen_descr_array_type_die): Use gen_type_die if not processing the main
type variant.  Replace Fortran-specific code with generic one using
this new field.  Add a GNAT descriptive type, if any.  Output type
information for the array bound subrange, if any.

gcc/fortran
* trans-types.c (gfc_get_array_descr_info): Describe all Fortran arrays
with column major ordering.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218823 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/dwarf2out.c
gcc/dwarf2out.h
gcc/fortran/ChangeLog
gcc/fortran/trans-types.c