On 10 Jan 2017 at 15:17, Peter wrote:
[...]
program InlineDemo;
function Max (x, y: Integer): Integer; attribute (inline); begin if x > y then Max := x else Max := y end;
begin WriteLn (Max (42, 17), ' ', Max (-4, -2)) end.
Also does not work for me with 4.3.6. It still produces a call instruction.
Works with (32-bit) 4.1.2 (gpc version 20070904, based on gcc-4.1.2) running on 64-bit Linux Mint 17.
Going forward, I'm wondering which gcc version to base my builds on. 4.3.6 supports potentially a few more architectures, ARMel PowerPC SH4
I have stuck with 4.1.2 (32-bit) for years.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.greatchief.plus.com/