]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/fortran/trans-types.cc
Complete information generated through the array descriptor language hook
authorPierre-Marie de Rodat <derodat@adacore.com>
Wed, 17 Dec 2014 16:25:21 +0000 (16:25 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Wed, 17 Dec 2014 16:25:21 +0000 (16:25 +0000)
commit616743a89dcc2e240993f4cd57389963f28c1c88
tree8a6807260b675ee552ea6bd67e5074f9aaecba7a
parentb86d271ef6e4ca0b63d5a209d3f5bffbcf7bbf21
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.

From-SVN: r218823
gcc/ChangeLog
gcc/dwarf2out.c
gcc/dwarf2out.h
gcc/fortran/ChangeLog
gcc/fortran/trans-types.c