Am 30.10.2013 12:59, schrieb John Lee:
jonas wrote
'
It may indeed be possible to handle this in the compiler.

> What about llvm - (coming soon to fpc apparently) - would that fix it?

Not in the least. "soon" is also a gross overstatement.
'
What's the size/difficulty of compiler spotting this? Suppose it needs to be able to 'look ahead' by few statements - which I'd thought it does already to some extent.
It's not about parsing. The code will be parsed the same nevertheless.

It would be a optimization on the resulting node tree however after the function was parsed and before the code is generated.

Regards,
Sven
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to