Re: [fpc-devel] An optimizer bug?

2008-01-04 Thread Jonas Maebe
On 28 Dec 2007, at 15:16, Sergei Gorelkin wrote: I had isolated the issue, it is maybechangetemp() in ncgld.pas. If I modify this function to always return false, the issue is gone. Actually the failure is caused by incomplete deallocation of the AnsiString temp variable - its

Re: [fpc-devel] An optimizer bug?

2008-01-04 Thread Sergei Gorelkin
Jonas Maebe wrote: I think I've fixed this in r9626, could you check again? At least on darwin/ppc, cycle and testsuite seem to work fine with your patch (but I didn't check it without my changes as well). I got the testsuite perform fine with TEST_OPT=-O2. However, I could not build a

Re: [fpc-devel] An optimizer bug?

2007-12-28 Thread Sergei Gorelkin
Sergei Gorelkin wrote: I had isolated the issue, it is maybechangetemp() in ncgld.pas. If I modify this function to always return false, the issue is gone. Actually the failure is caused by incomplete deallocation of the AnsiString temp variable - its initialization and finalization code is

Re: [fpc-devel] An optimizer bug?

2007-12-28 Thread Jonas Maebe
On 28 Dec 2007, at 15:16, Sergei Gorelkin wrote: I had isolated the issue, it is maybechangetemp() in ncgld.pas. If I modify this function to always return false, the issue is gone. Actually the failure is caused by incomplete deallocation of the AnsiString temp variable - its