DW_TAG_common_block children

Michael Eager eager@eagercon.com
Thu Aug 21 21:47:00 GMT 2008


Jakub Jelinek wrote:
> Hi!
> 
> I've noticed George's http://gcc.gnu.org/viewcvs?view=rev&revision=133801
> GCC patch puts common vars as DW_TAG_member children of DW_TAG_common_block.
> 
> Is that acceptable for the Dwarf3 standard though?  The examples certainly
> show DW_TAG_common_block with DW_TAG_variable children and DW_TAG_member
> is mentioned as child of DW_TAG_{structure,class,union}_type.
> I agree it is cute to represent it that way, as the locations can be
> relative to the containing DW_TAG_common_block, but I'm afraid it doesn't
> follow the standard.

Members can only appear in structs, unions, or classes.

The constituents of a common block are variables, not members.

-- 
Michael Eager	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077



More information about the Fortran mailing list