[fpc-devel] TInetSocket connect timeout

2022-06-08 Thread Dimitrios Chr. Ioannidis via fpc-devel
Hi,   the TInetSocket ConnectTimeout cannot be smaller than 1 second. The reason is that the TInetSocket's CheckSocketConnectTimeout function has the microseconds field (tv_usec) of locTimeVal (PTimeVal) variable always zero .   I created a PR ( https://gitlab.com/freepascal.org/fpc/source/

Re: [fpc-devel] JVM testing on x86_64

2022-06-08 Thread J. Gareth Moreton via fpc-devel
Here it is. https://gitlab.com/freepascal.org/fpc/source/-/merge_requests/237 By the way - thanks for telling me to test my typeconv strip on JVM.  I've got a failure that I need to investigate now. Gareth aka. Kit -- This email has been checked for viruses by Avast antivirus software. http

Re: [fpc-devel] JVM testing on x86_64

2022-06-08 Thread Jonas Maebe via fpc-devel
On 2022-06-08 21:10, J. Gareth Moreton via fpc-devel wrote: Thanks for your help.  I've had to make a lot of changed to testall.bat since it was malformed in places.  I've got it working now though. Would there be interest in me creating a merge request with the improved TESTALL.BAT file for

Re: [fpc-devel] JVM testing on x86_64

2022-06-08 Thread J. Gareth Moreton via fpc-devel
Hi Jonas, Thanks for your help.  I've had to make a lot of changed to testall.bat since it was malformed in places.  I've got it working now though. Would there be interest in me creating a merge request with the improved TESTALL.BAT file for tests/test/jvm? Gareth aka. Kit On 08/06/2022 1

Re: [fpc-devel] ConvUtils: ConvTypeToFamily and ConvFamilyToDescription conundrums

2022-06-08 Thread Bart via fpc-devel
On Wed, Jun 8, 2022 at 3:24 PM Marco van de Voort via fpc-devel wrote: > I doubt that there are mission critical convutils programs out there, > given the fact that it took 10+ years to find out the temperature > conversion didn't work :-) I agree. I only stubled upon this unit because I have u

Re: [fpc-devel] ConvUtils: ConvTypeToFamily and ConvFamilyToDescription conundrums

2022-06-08 Thread Bart via fpc-devel
On Wed, Jun 8, 2022 at 3:55 PM Stefan Glienke via fpc-devel wrote: > Actually the behavior in Delphi depends on the $R switch. D7: {$R+} ConvTypeToDescription(-1)=[$] {$R-} ConvTypeToDescription(-1)=[$] Bart -- Bart ___ fpc-devel ma

Re: [fpc-devel] JVM testing on x86_64

2022-06-08 Thread Jonas Maebe via fpc-devel
On 2022-06-08 15:15, J. Gareth Moreton via fpc-devel wrote: The testall.bat file took some modification since it doesn't handle parameters like testall.sh does.  I didn't get too far though: You have to install our own, patched version of Jasmin: https://wiki.freepascal.org/FPC_JVM#Download

Re: [fpc-devel] JVM testing on x86_64

2022-06-08 Thread J. Gareth Moreton via fpc-devel
Okay. got the JDK installed (and got javac), so we're making progress!  Mostly... testall.sh still won't run since I'm not specifying the correct options I don't think.  I've gotten testall.bat partially working, but still getting errors (I had to add the '.java' extension to JavaClass to pre

Re: [fpc-devel] ConvUtils: ConvTypeToFamily and ConvFamilyToDescription conundrums

2022-06-08 Thread Stefan Glienke via fpc-devel
> On 08/06/2022 14:58 Bart via fpc-devel wrote: > > code like this will not raise an exception Delphi, while it does > in Fpc: > > var > L: Integer; > begin > L:=-1; > writeln('ConvTypeToDescription(L)=',ConvTypeToDescription(L)); // > prints [$] in D7, EAccessViolation in fpc > e

Re: [fpc-devel] ConvUtils: ConvTypeToFamily and ConvFamilyToDescription conundrums

2022-06-08 Thread Marco van de Voort via fpc-devel
On 8-6-2022 15:14, Bart via fpc-devel wrote: Changing our TConvType to word will potentially break existing programs though. I doubt that there are mission critical convutils programs out there, given the fact that it took 10+ years  to find out the temperature conversion didn't work :-) U

Re: [fpc-devel] JVM testing on x86_64

2022-06-08 Thread J. Gareth Moreton via fpc-devel
The lack of "javac" is a little confusing.  I have a lot to learn! Gareth aka. Kit On 08/06/2022 14:15, J. Gareth Moreton via fpc-devel wrote: The testall.bat file took some modification since it doesn't handle parameters like testall.sh does.  I didn't get too far though: C:\Users\garet\Docu

Re: [fpc-devel] JVM testing on x86_64

2022-06-08 Thread J. Gareth Moreton via fpc-devel
The testall.bat file took some modification since it doesn't handle parameters like testall.sh does.  I didn't get too far though: C:\Users\garet\Documents\programming\fpc-opts\tests\test\jvm>..\..\..\compiler\ppcjvm -Fu..\..\..\rtl\units\jvm-java -O2 -g test Generated: .\org\freepascal\test\t

Re: [fpc-devel] ConvUtils: ConvTypeToFamily and ConvFamilyToDescription conundrums

2022-06-08 Thread Bart via fpc-devel
On Wed, Jun 8, 2022 at 11:43 AM Bart wrote: > And another observation: on Delphi 7 TConvType seems to be unsiged (in > fpc it's signed). Actually it is documented to be of type Word: https://docwiki.embarcadero.com/Libraries/Sydney/en/System.ConvUtils.TConvType. I guess nobody needs more than 65

Re: [fpc-devel] ConvUtils: ConvTypeToFamily and ConvFamilyToDescription conundrums

2022-06-08 Thread Bart via fpc-devel
On Wed, Jun 8, 2022 at 11:43 AM Bart wrote: > > And another observation: on Delphi 7 TConvType seems to be unsiged (in > fpc it's signed). And as a consequence compilation in Delphi fails if a negative value is supplied to a function that takes a TConvType as a parameter, but also code like this

Re: [fpc-devel] JVM testing on x86_64

2022-06-08 Thread Jonas Maebe via fpc-devel
On 2022-06-08 14:42, J. Gareth Moreton via fpc-devel wrote: on x86_64-win64 after downloading the necessary runtimes, but how do I run the test suite for jvm-java? erroru.pp(25,3) Fatal: Unknown compilerproc "fpc_get_output". Check if you use the correct run time library. Fatal: Compilation a

[fpc-devel] JVM testing on x86_64

2022-06-08 Thread J. Gareth Moreton via fpc-devel
Hi everyone, So since a large number of my new optimisations do things at the nodal level, I need to do much more extensive testing.  One thing that was brought up was testing JVM and LLVM.  I've managed to build "ppcjvm" on x86_64-win64 after downloading the necessary runtimes, but how do I r

Re: [fpc-devel] ConvUtils: ConvTypeToFamily and ConvFamilyToDescription conundrums

2022-06-08 Thread Bart via fpc-devel
And another observation: on Delphi 7 TConvType seems to be unsiged (in fpc it's signed). -- Bart ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

[fpc-devel] ConvUtils: ConvTypeToFamily and ConvFamilyToDescription conundrums

2022-06-08 Thread Bart via fpc-devel
Hi, I've been trying to improve the ConvUtils unit. Now I've ran into a problem. ConvTypeToFamily returns CIllegalConvFamily (=0) if AType is not registered. This however is a problem. If AType is a type registered in the first registered family, ConvTypeToFamily will also return 0. This means th