Re: [fpc-devel] Data flow analysis (dfa) and "case ... of"

2017-07-01 Thread Tomas Hajny
On Sat, July 1, 2017 16:45, Martok wrote: Hi, > The attitude displayed over on #32079 is, quite frankly, terrifying. > Apparently a language which from the beginning has intrinsics for reading > and writing files must never be used for doing so, or wild things may > happen /and that's okay/. >

[fpc-devel] Dangerous optimization in CASE..OF

2017-07-01 Thread Martok
Hi all, continuing the discussion from bug 32079 here, as per request by Jonas. New thread instead of the DFA one because this is about a concrete issue *with the optimizer*. TL;DR: there is an incredibly dangerous, unexpected and unavoidable level1-optimization in the codegen for case..of,

Re: [fpc-devel] Data flow analysis (dfa) and "case ... of"

2017-07-01 Thread Martok
The attitude displayed over on #32079 is, quite frankly, terrifying. Apparently a language which from the beginning has intrinsics for reading and writing files must never be used for doing so, or wild things may happen /and that's okay/. Implying that input should already be sanitized on a bug