Am 18.05.2016 13:29 schrieb "Jonas Maebe" <jonas.ma...@elis.ugent.be>:
>
>
> LacaK wrote on Wed, 18 May 2016:
>
>> Any other ideas, what leads compiler to not inline ?
>
>
> If you compile with -vd, the compiler will tell you in most cases why
it's not inlining. Additionally, it's possible that it's not possible to
inline generic routines in regular routines, because IIRC the code for
specialisations is generated after the code for all regular routines has
been generated (and hence it's probably never available yet while
generating code for regular routines, unless perhaps if the specialisation
is defined in another unit).

Yes, that might indeed be the most probable cause. That's something that I
still need to fix in trunk, cause I really want inlining to work with
generic functions (with generic records and classes it should work if the
specialization was done in the interface section of another unit).

Regards,
Sven
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to