[fpc-devel] Twice stored record RTTI data

Michael Van Canneyt michael at freepascal.org
Tue Mar 1 23:20:07 CET 2016



On Tue, 1 Mar 2016, Maciej Izak wrote:

> 2016-03-01 20:35 GMT+01:00 Maciej Izak <hnb.code at gmail.com>:
>
>> when "TypeInfo" is used for managed record, then RTTI data for those
>> record is stored twice into executable file (useless). Should I report this
>> as bug? Maybe is some reason for that behavior? Example code to generate
>> extra RTTI bytes:
>>
>
> Seems right. Mhm. TypeInfo implicitly adds RTTI for RTTI table. Example
> TFoo record symbols (rtti mangled name) generated by attached above code:
>
> INIT_$P$TEST_$$_TFOO
> RTTI_$P$TEST_$$_TFOO
>
> By default (without using TypeInfo) is generated INIT_$P$TEST2_$$_TFOO

Please report this in the bugtracker.

Michael.



More information about the fpc-devel mailing list