[fpc-devel] Need patch for bugs : 0011503 / 0009472
Jonas Maebe
jonas.maebe at elis.ugent.be
Thu Jun 19 16:09:53 CEST 2008
On 19 Jun 2008, at 16:06, Florian Klaempfl wrote:
> Florian Klaempfl schrieb:
>> Jonas Maebe schrieb:
>>> The behaviour you are counting on is a side effect of an
>>> optimisation, not a behaviour by design.
>> Oh, btw: fpc 2.2.2rc1 behaves with -O2 like delphi :) Without -O2
>> like 2.2.0 :)
>
> Add: I just realized that Peter implemented this some time ago in a
> "in most cases" (!) delphi compatible behaviour.
Indeed: e.g., if you compile the example I posted with the "writeln"
in test2 commented out, then Delphi will write out 1 as refcount later
on and FPC still 2.
Jonas
More information about the fpc-devel
mailing list