Re: [fpc-devel] One more issue with string function results (hopefully, the last)

2008-01-23 Thread Jonas Maebe
On 22 Jan 2008, at 20:28, Peter Vreman wrote: This issue is caused by your own patch to change the ansistring code to use pass the result by reference. Original code (using current 2.2.1) was: # [21] s := foo(s); // This one failes movl-4(%ebp),%eax call

Re: [fpc-devel] Haiku and IDE support in the BeOS port

2008-01-23 Thread Peter Vreman
Hi, Here are some patchs to improve the BeOS port of Freepascal. - HaikuFix.diff : patch to enable a full build of Freepascal under Haiku. bcopy seems to behave differently under BeOS and Haiku when searching for include file in the compiler. So, i propose to use the internal functions

Re: [fpc-devel] Corrected test and patch

2008-01-23 Thread Sergei Gorelkin
Sergei Gorelkin wrote: I'll be digging further in. Here goes. I modified the test so that it fails reliably, and patched the compiler so that is doesn't fail again. It was a bit tricky to get a string with refcount=1 without telling the compiler to take its address. As for the patch, I could