On Mon, Dec 16, 2013 at 4:56 PM, Greg Clayton <[email protected]> wrote:
>
> On Dec 16, 2013, at 4:53 PM, Eric Christopher <[email protected]> wrote:
>
>> From the standard point of view it does appear that this trick is legal btw:
>>
>> "A debugging information entry that represents a non-defining or otherwise 
>> incomplete declaration of a program entity has a
>> DW_AT_declaration attribute, which is a flag..."
>>
>> so this is merely being labeled as an incomplete type and is valid dwarf.
>
> There is no doubt that this is legal DWARF.

:)

>
>> I'm not a fan of it necessarily, but a 20% win per object file is huge. I'd 
>> honestly prefer that struct types worked more like namespaces, but that's a 
>> rather serious change to the standard.
>
> Yes the win is big, I can certainly believe this. Though it comes at a cost 
> for all downstream tools.
>

A bit, I'm not sure what the cost is for you guys. I'm definitely not
willing to give it up in the general case. Other compilers etc have
this on by default and the tools seem to cope just fine. As far as I
can tell it's just lldb/dtrace that can't handle it.

-eric

> Greg
>

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to