[fpc-devel] question on dwarf2 info written by fpc 2.6.2

Martin lazarus at mfriebe.de
Sun Oct 6 13:07:05 CEST 2013


On 06/10/2013 03:06, Paul Ishenin wrote:
>
> 06.10.13, 3:08, Martin пишет:
>> On the other hand
>> var a: longint;
>> generates the same. Why?
>
> Because Integer is an alias - inside compiler only the symbol is 
> different for thise case and the definition is the same.
Yes, I know, I even wrote.

> DW_TAG_base_type has DW_AT_name = longint. That is expected
>
> DW_TAG_typedef   has DW_AT_name = longint. That I do *NOT* understand.
> DW_TAG_typedef   stands for the definition of "Integer", or does it 
> not? If it does, then should not the name be "integer"?
>

DW_TAG_typedef  indicates that integer is a defined type
>    type Integer: longint;

But then, why does it not as "integer" has name?

And why is it also present, if I use "var a: longint" ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20131006/72a04b7e/attachment.html>


More information about the fpc-devel mailing list