[fpc-devel] Improved inlining for generic specializations

LacaK lacak at zoznam.sk
Fri May 27 07:24:48 CEST 2016


Thank you!
Is it for FPC 3.2 only or can it be backported to 3.0 series (3.0.4 
probably?) ?
L.

> Hello together!
>
> For those that are interested: I've improved the inlining for 
> specializations of generics so that now the bodies of specialized 
> routines (no matter whether they are normal methods of generic 
> classes, records, etc. or true generic routines) are inlined 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).
> Of course there might still be cases when a routine isn't inlined, but 
> more often than not that should be due to reasons that would apply for 
> normal routines as well.
>
> Regards,
> Sven
>
>
>
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel



More information about the fpc-devel mailing list