Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zamronypj opened this issue Jun 22, 2020 · 0 comments
Open

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

zamronypj opened this issue Jun 22, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@zamronypj
Copy link
Member

zamronypj commented Jun 22, 2020

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?

@zamronypj zamronypj added the enhancement New feature or request label Jun 22, 2020
@zamronypj zamronypj added the help wanted Extra attention is needed label Apr 18, 2021
@zamronypj zamronypj self-assigned this Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant