re PR fortran/23057 (Fortran common blocks are not described with DW_TAG_common_block)
authorJakub Jelinek <jakub@redhat.com>
Fri, 29 Aug 2008 18:45:25 +0000 (20:45 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 29 Aug 2008 18:45:25 +0000 (20:45 +0200)
commit04e74e0210b5399ca47aa46502994fc446420a91
tree9b29f1b010a25fbdc1725b231713e161b6939314
parent25c29c56e24dd8f455b01907005fbdf613ea8aa8
re PR fortran/23057 (Fortran common blocks are not described with DW_TAG_common_block)

PR fortran/23057
* dwarf2out.c (gen_variable_die): Represent Fortran COMMON vars
as DW_TAG_variable children of DW_TAG_common_block rather than
DW_TAG_member children.  Put DW_AT_external to individual
DW_TAG_variable DIEs, not to DW_TAG_common_block.

* gfortran.dg/debug/pr35154-dwarf2.f: Adjust for replacement
of DW_TAG_member with DW_TAG_variable.

From-SVN: r139775
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/debug/pr35154-dwarf2.f