[fpc-devel] Twice stored record RTTI data

Maciej Izak hnb.code at gmail.com
Tue Mar 1 23:14:53 CET 2016


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

-- 
Best regards,
Maciej Izak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20160301/70fa1308/attachment.html>


More information about the fpc-devel mailing list