[fpc-devel] Improved inlining for generic specializations

Sven Barth pascaldragon at googlemail.com
Fri May 27 00:46:50 CEST 2016


Am 26.05.2016 21:38 schrieb "Maciej Izak" <hnb.code at gmail.com>:
>
> 2016-05-26 21:06 GMT+02:00 Sven Barth <pascaldragon at googlemail.com>:
>>
>> ... as long as the body of the generic routine is already available
(basically the same rules as for inlining normal routines) (see
tests/test/ugeneric102.pp for an example)
>
>
> Nice one Sven! :) Is there some warning when method is not inlined in the
case of lacking body?

No, there is not, cause that's basically the same for normal routines
(where you don't get a warning either).
Though there might be a debug message, that gets printed if a routine can't
be inlined... (with the correct verbosity setting)
Also keep in mind that "inline" is merely a hint for the compiler. So not
inlining a routine for whatever the reason is completely in the compiler's
power to do.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20160527/89b536c4/attachment.html>


More information about the fpc-devel mailing list