Skip to content

Fix inline methods is not inlined notice after upgrade FPC 3.2.0 #13

@zamronypj

Description

@zamronypj

After upgrade to Free Pascal 3.2.0, generic list/map methods in fgl cause many inline methods cannot be inlined. For example

fgl.pp(1283,5) Note: Call to subroutine "function TFPGInterfacedObjectList<RdbmsIntf.IRdbms>.Add(const Item:IRdbms):LongInt;" marked as inline is not inlined
fgl.pp(1283,18) Note: Call to subroutine "function TFPGInterfacedObjectList<RdbmsIntf.IRdbms>.Get(Index:LongInt):IRdbms;" marked as inline is not inlined
RdbmsPoolImpl.pas(138,13) Note: Call to subroutine "function TFPGInterfacedObjectList<RdbmsIntf.IRdbms>.Add(const Item:IRdbms):LongInt;" marked as inline is not inlined
RdbmsPoolImpl.pas(159,38) Note: Call to subroutine "function TFPGInterfacedObjectList<RdbmsIntf.IRdbms>.GetLast:IRdbms;" marked as inline is not inlined
RdbmsPoolImpl.pas(160,9) Note: Call to subroutine "function TFPGInterfacedObjectList<RdbmsIntf.IRdbms>.Add(const Item:IRdbms):LongInt;" marked as inline is not inlined
RdbmsPoolImpl.pas(176,9) Note: Call to subroutine "function TFPGInterfacedObjectList<RdbmsIntf.IRdbms>.Add(const Item:IRdbms):LongInt;" marked as inline is not inlined

Can we improve it by removing those compilation notes?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions