[fpc-pascal] Undocumented optimizations???

denisgolovan denisgolovan at yandex.ru
Sun Feb 10 08:15:23 CET 2019


Hi all

I've just tried checking fpc optimizations and found that some implemented optimization are not documented in fpc -io output.
e.g. http://wiki.freepascal.org/Optimization mentions AUTOINLINE, but fpc states only (Linux x64, svn rev. 40743):

 $ fpc -io
REGVAR
STACKFRAME
PEEPHOLE
LOOPUNROLL
TAILREC
CSE
DFA
USERBP
ORDERFIELDS
FASTMATH
REMOVEEMPTYPROCS
CONSTPROP
USELOADMODIFYSTORE

However doing something like fpc -Ooautoinline project1.lpr works fine.
Same thing with STRENGTH, SCHEDULE and some others.
Also compiling with SCHEDULE causes immediate AV in compiler.

Is it intentional to avoid usage of unstable code or just a miss in documentation?

-- 
Regards,
Denis Golovan



More information about the fpc-pascal mailing list