Re: [fpc-pascal]Align instruction

2004-06-23 Thread Jonas Maebe
On 24 jun 2004, at 01:52, Marcel Martin wrote: BTW, nobody answered about the problem with "Level 2 Optimizations" I reported here a few days ago. Is it a bug of the compiler? I ask the question because at the moment I am sure of nothing (sometimes my PC is very creative :-) Yes, it's most likely a

Re: [fpc-pascal]Align instruction

2004-06-23 Thread Marcel Martin
Peter Vreman a écrit : > Added support for the ALIGN directive also to asmmode intel. Thanks. BTW, nobody answered about the problem with "Level 2 Optimizations" I reported here a few days ago. Is it a bug of the compiler? I ask the question because at the moment I am sure of nothing (sometimes

Re: [fpc-pascal]Compiling problem

2004-06-23 Thread Jim Wilson
At 03:35 PM 6/23/2004, you wrote: Use -vu to see the reason why it wants to recompile the unit Okay, -vu give me this: Load from SI (implementation) unit SYSWIN32 PPU Name: c:\fpc\units\win32\rtl\syswin32.ppw PPU Time: 2004/06/22 23:20:38 PPU Flags: 12497 PPU Crc: 375220168 PPU Crc: 71143866 (intfc

Re: [fpc-pascal]Compiling problem

2004-06-23 Thread Peter Vreman
> Unitsearch: c:\fpc\units\win32\rtl\syswin32.ppw > PPU Loading c:\fpc\units\win32\rtl\syswin32.ppw > Unitsearch: c:\fpc\units\win32\rtl\syswin32.pp > Unitsearch: c:\fpc\units\win32\rtl\syswin32.pas > si.pas(56,1) Fatal: Can't find unit SYSWIN32 > > It seems to be looking in the correct spot now, a

Re: [fpc-pascal]Compiling problem

2004-06-23 Thread Jim Wilson
At 11:41 AM 6/23/2004, you wrote: Maybe the stuff worked because of other bugs in 1.0.6. The error messages are not added for fun to let ppl review their code. Most are there because the compiler can't continue or will generate wrong code. And the warnings will only help in finding bugs. I wasn't c

RE: Re[4]: [fpc-pascal]there is a problem in fpc daily binary snapshot

2004-06-23 Thread Lee, John
I´m on holiday at present - back 28th so I´ll get snapshots for go32 & win32 going again then. Regards John -Original Message- From: Cristiano Magro To: [EMAIL PROTECTED] Sent: 23/06/2004 14:57 Subject: Re[4]: [fpc-pascal]there is a problem in fpc daily binary snapshot Ciao Peter, Wedne

Re: [fpc-pascal]Memory leak in freepascal, FreeAndNil not working properly?

2004-06-23 Thread Anton Tichawa
Matt Emson wrote: You code is wrong, it also crashes with kylix. What kind of answer is this? The correct one? To remove an item from a TList you must: (a) set it to nil and pack the list e.g. list[0] := nil; list.pack; (b) call TList.Delete(index) e.g. list.delete(0); (c) use TList.

Re: [fpc-pascal]Memory leak in freepascal, FreeAndNil not working properly?

2004-06-23 Thread Matt Emson
> > You code is wrong, it also crashes with kylix. > > What kind of answer is this? The correct one? To remove an item from a TList you must: (a) set it to nil and pack the list e.g. list[0] := nil; list.pack; (b) call TList.Delete(index) e.g. list.delete(0); (c) use TList.Remove(poi

Re: [fpc-pascal]Memory leak in freepascal, FreeAndNil not working properly?

2004-06-23 Thread Peter Vreman
>> You code is wrong, it also crashes with kylix. > > What kind of answer is this? That it is not working in Kylix either does > certainly not mean their memory handling is correct. Kylix and Delphi are the references whether special constructions should work or not. See Michael's answer what is

Re: [fpc-pascal]Compiling problem

2004-06-23 Thread Peter Vreman
> I've been using 1.0.6 for about 2 years now. It's always served me well > (thanks guys!), which is precisely why I've been reluctant to upgrade. The > only things I develop any more are console-mode, 32 bit Windows programs, > so a lot of the new features didn't pertain to me. However, the other

Re: [fpc-pascal]Memory leak in freepascal, FreeAndNil not working properly?

2004-06-23 Thread Andreas Gros
> You code is wrong, it also crashes with kylix. What kind of answer is this? That it is not working in Kylix either does certainly not mean their memory handling is correct. Please look at the code. The crash is supposed to happen, because it is the same object, that is addressed both times I

[fpc-pascal]Compiling problem

2004-06-23 Thread Jim Wilson
I've been using 1.0.6 for about 2 years now. It's always served me well (thanks guys!), which is precisely why I've been reluctant to upgrade. The only things I develop any more are console-mode, 32 bit Windows programs, so a lot of the new features didn't pertain to me. However, the other day I

Re: [fpc-pascal]there is a problem in fpc daily binary snapshot

2004-06-23 Thread Florian Klaempfl
Cristiano Magro wrote: hi when i install the today snapshot the compiler show this version: C:\pp\bin\win32>ppc386.exe -v Hint: End of reading config file fpc.cfg Free Pascal Compiler version 1.9.3 [2004/04/05] for i386 Copyright (c) 1993-2004 by Florian Klaempfl Fatal: No source file name in comma

Re: [fpc-pascal]Memory leak in freepascal, FreeAndNil not working properly?

2004-06-23 Thread Michael Van Canneyt
On Wed, 23 Jun 2004, Andreas Gros wrote: > Hi folks, > > please check out this code (unit). Certainly there is something very strange > going on in handling memory in freepascal. I'm using Free Pascal Compiler > version 1.9.4 [2004/05/30] for i386. > > Thanks in advance for replying. > > Andreas

Re: [fpc-pascal]Memory leak in freepascal, FreeAndNil not working properly?

2004-06-23 Thread Peter Vreman
> Hi folks, > > please check out this code (unit). Certainly there is something very > strange > going on in handling memory in freepascal. I'm using Free Pascal Compiler > version 1.9.4 [2004/05/30] for i386. > You code is wrong, it also crashes with kylix. __

Re: [fpc-pascal]Align instruction

2004-06-23 Thread Peter Vreman
> Peter Vreman a écrit : >> >> > Hello, >> > >> > With v1.9.4, is there a way to align a label in an assembler >> > procedure? >> >> .align, .balign or .p2align > > I forgot to tell "with {$ASMMODE INTEL}". But if I understand you > well, in order to use aligned labels, I have to (re-)write the cod

[fpc-pascal]Memory leak in freepascal, FreeAndNil not working properly?

2004-06-23 Thread Andreas Gros
Hi folks, please check out this code (unit). Certainly there is something very strange going on in handling memory in freepascal. I'm using Free Pascal Compiler version 1.9.4 [2004/05/30] for i386. Thanks in advance for replying. Andreas { snip%<***

Re: [fpc-pascal]there is a problem in fpc daily binary snapshot

2004-06-23 Thread Anton Tichawa
Cristiano Magro wrote: hi when i install the today snapshot the compiler show this version: C:\pp\bin\win32>ppc386.exe -v Hint: End of reading config file fpc.cfg Free Pascal Compiler version 1.9.3 [2004/04/05] for i386 Copyright (c) 1993-2004 by Florian Klaempfl Fatal: No source file name in comma

Re[4]: [fpc-pascal]there is a problem in fpc daily binary snapshot

2004-06-23 Thread Cristiano Magro
Ciao Peter, Wednesday, June 23, 2004, 3:46:41 PM, you wrote: Hint: End of reading config file fpc.cfg Free Pascal Compiler version 1.9.3 [2004/04/05] for i386 Copyright (c) 1993-2004 by Florian Klaempfl Fatal: No source file name in command line it is correct? i

Re: Re[2]: [fpc-pascal]there is a problem in fpc daily binary snapshot

2004-06-23 Thread Peter Vreman
>>> Hint: End of reading config file fpc.cfg >>> Free Pascal Compiler version 1.9.3 [2004/04/05] for i386 >>> Copyright (c) 1993-2004 by Florian Klaempfl >>> Fatal: No source file name in command line >>> >>> it is correct? >>> i'll think the snapshot version must be 1.9.5 > > I have download it fr

Re[2]: [fpc-pascal]there is a problem in fpc daily binary snapshot

2004-06-23 Thread Cristiano Magro
Ciao Marco, Wednesday, June 23, 2004, 3:08:30 PM, you wrote: >> when i install the today snapshot the compiler show this version: >> >> C:\pp\bin\win32>ppc386.exe -v >> Hint: End of reading config file fpc.cfg >> Free Pascal Compiler version 1.9.3 [2004/04/05] for i386 >> Copyright (c) 1993-2004

Re: [fpc-pascal]there is a problem in fpc daily binary snapshot

2004-06-23 Thread Marco van de Voort
> when i install the today snapshot the compiler show this version: > > C:\pp\bin\win32>ppc386.exe -v > Hint: End of reading config file fpc.cfg > Free Pascal Compiler version 1.9.3 [2004/04/05] for i386 > Copyright (c) 1993-2004 by Florian Klaempfl > Fatal: No source file name in command line >

[fpc-pascal]there is a problem in fpc daily binary snapshot

2004-06-23 Thread Cristiano Magro
hi when i install the today snapshot the compiler show this version: C:\pp\bin\win32>ppc386.exe -v Hint: End of reading config file fpc.cfg Free Pascal Compiler version 1.9.3 [2004/04/05] for i386 Copyright (c) 1993-2004 by Florian Klaempfl Fatal: No source file name in command line it is correc

RE: [fpc-pascal]ARM cross-compiling error

2004-06-23 Thread Peter Vreman
> I have advanced more in compilation, but right now the problem is > compiling in sstrings.inc during system.pp > > I'm using ppc386 version 1.0.10 to make it! > /trabajo/programas/freepascal/cvs/fpc/compiler/ppcrossarm -Ur > -XParm-linux- -Xc -Xr -Xs -n -Fi../inc -Fi../arm -Fi../unix -Fiarm -FE

RE: [fpc-pascal]ARM cross-compiling error

2004-06-23 Thread Jose Pascual
I have advanced more in compilation, but right now the problem is compiling in sstrings.inc during system.pp I'm using ppc386 version 1.0.10 to make it! #> #> make clean all OS_TARGET=linux CPU_TARGET=arm BINUTILSPREFIX=arm-linux- #> -

Re: [fpc-pascal]Win32 API Call

2004-06-23 Thread Matt Emson
> > To be fair to you, FPC should have always used StdCall for Win32API calls. > > It would be less confusing now, anyway. > > FPC always did add stdcall, since FPC didn't use stdcall by default, but > what now is "oldfpccall" in 1.9.x. > > However policy was and is to flag them as stdcall. A

Re: [fpc-pascal]Win32 API Call

2004-06-23 Thread Marco van de Voort
> > >4. This is not important for FPC 1.0.x, but for newer FPC remember to > > >declare WinAPI functions as "stdcall" (FPC 1.0.x just used "stdcall" by > > >default). > > > > I'll make note of that. > > To be fair to you, FPC should have always used StdCall for Win32API calls. > It would be less