Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2018-03

Redundant compiler hints

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ondrej Pokorny

Yesterday I updated FPC to current trunk (r38623) and now I get a lot of redundant compiler hints. E.g.:

program Test;
uses SysUtils;
var
   FS: TFormatSettings;
begin
   FS := DefaultFormatSettings;
end.

Test.lpr(6,3) Hint: Call to subroutine "procedure
$fpc_copy_proc(Src:Pointer;Dest:Pointer;TypeInfo:Pointer);" marked as inline is not inlined

Anybody knows what's going on? I am on Windows, use the 32bit compiler.

Ondrej

Reply by email

Martok
to Ondrej Pokorny

The hint was added in response to <https://bugs.freepascal.org/view.php?id=31717>.

Not very useful, other than to demonstrate 'inline' is rarely respected. However, it probably wasn't the intention to generate it for intrinsics as well?

Regards, Martok Ceterum censeo b32079 esse sanandam. Am 25.03.2018 um 11:56 schrieb Ondrej Pokorny: > Yesterday I updated FPC to current trunk (r38623) and now I get a lot of > redundant compiler hints. E.g.: > > program Test; > uses SysUtils; > var >   FS: TFormatSettings; > begin >   FS := DefaultFormatSettings; > end. > > Test.lpr(6,3) Hint: Call to subroutine "procedure > $fpc_copy_proc(Src:Pointer;Dest:Pointer;TypeInfo:Pointer);" marked as > inline is not inlined > > Anybody knows what's going on? I am on Windows, use the 32bit compiler. > > Ondrej > > _______________________________________________ > fpc-devel maillist - > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel >

Reply by email

C Western
to Martok
Martok wrote 5 lines
The hint was added in response to <https://bugs.freepascal.org/view.php?id=31717>. Not very useful, other than to demonstrate 'inline' is rarely respected. However, it probably wasn't the intention to generate it for intrinsics as well?

I am seeing lots of "not inlined" comments also (64bit linux). It would be helpful if the message about not inlined in general could indicate why the procedure was not inlined. (I think hints in general are a good idea, but there should in principle be a way of fixing them.)

Colin

Reply by email