[fpc-devel] Const optimization is a serious bug
Alexander Klenin
klenin at gmail.com
Thu Jul 7 19:32:02 CEST 2011
On Fri, Jul 8, 2011 at 04:22, Florian Klämpfl <florian at freepascal.org> wrote:
>
> Why? 2) is exactly the same? The const contract with the compiler is broken.
Since when are passing by value and by reference the same?
> Besides this, people like Martin Schreiber won't be happy if a procedure
> suddently eats hundreds of extra clock cycles for nothing.
For those people, I proposed to add optimization switch to the "UNCERTAIN"
group. I just do not think it should be on by default.
Also, can you Cc him -- maybe we should ask him directly?
--
Alexander S. Klenin
More information about the fpc-devel
mailing list