This is the mail archive of the
dwarf2@corp.sgi.com
mailing list for the dwarf2 project.
Re: PROPOSAL: Permit AT_location with AT_declaration
- To: todd dot allen at attglobal dot net
- Subject: Re: PROPOSAL: Permit AT_location with AT_declaration
- From: Michael Eager <eager at eagercon dot com>
- Date: Thu, 22 Mar 2001 23:14:23 -0800
- CC: dwarf2 <dwarf2 at corp dot sgi dot com>
- References: <200103230207.f2N271124294@toad.ccur.com>
- Reply-To: Michael Eager <eager at eagercon dot com>
Todd Allen wrote:
>
> Also, maybe you could argue that the DW_AT_external for the first "x" should
> be omitted, given that it's a non-defining declaration and presumably there's
> already a defining declaration at global scope.
Perhaps you might review the C language specification at some point.
I'll refer you to section 6.7.2 External Object Definitions. (I'm
referring to a working draft; the paragraph number may have subsequently
changed.)
A declaration of "x", as in the example, is a defining declaration
at global scope.
--
Michael Eager Eager Consulting eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306 650-325-8077