Recent

Author Topic: FPC 3.2.x series branched, trunk update to 3.3.1  (Read 110866 times)

Thaddy

  • Hero Member
  • *****
  • Posts: 14204
  • Probably until I exterminate Putin.
Re: FPC 3.2.x series branched, trunk update to 3.3.1
« Reply #45 on: January 02, 2019, 10:30:07 am »
You have morons, idiots and people who fail to verify:
Code: Pascal  [Select][+][-]
  1. program prjTestCurrency;
  2.  
  3. { succeeds with Free Pascal Compiler version 3.3.1 r40744}
  4.  
  5. {$mode objfpc}{$H+}
  6.  
  7. var
  8.   C: currency;
  9. begin
  10.   c := 1000;
  11.   c := c * 1.05;
  12.   // at this point C=1050 as expected
  13.   WriteLn(c:2:5);
  14.   ReadLn;
  15. end.

Don't spread rumors if you do not test....
BTW this is even back-ported < Grumpy indeed  >:D >:D >:D >:D >
« Last Edit: January 02, 2019, 10:38:01 am by Thaddy »
Specialize a type, not a var.

BrunoK

  • Sr. Member
  • ****
  • Posts: 452
  • Retired programmer
Re: FPC 3.2.x series branched, trunk update to 3.3.1
« Reply #46 on: January 02, 2019, 10:50:03 am »
You have morons, idiots and people who fail to verify:

Don't spread rumors if you do not test....
BTW this is even back-ported < Grumpy indeed  >:D >:D >:D >:D >
As usual you insult people without looking at the context. This is i386 and not arm. The handling of calculations is assembly dependant and is implemented per processor type.

Can't you behave ? When will you write your article on the ills of FreAndNil ? Still waiting, and think we will be waiting for eternity.


Thaddy

  • Hero Member
  • *****
  • Posts: 14204
  • Probably until I exterminate Putin.
Re: FPC 3.2.x series branched, trunk update to 3.3.1
« Reply #47 on: January 02, 2019, 10:56:39 am »
i386 works too, as does x64. >You'd better test. You clearly haven't....
About my articles: you have a point. I am trying to catch up, but I have a slight handicap (as some of you know). Brain works, fingers can not always follow.
« Last Edit: January 02, 2019, 11:00:21 am by Thaddy »
Specialize a type, not a var.

BrunoK

  • Sr. Member
  • ****
  • Posts: 452
  • Retired programmer
Re: FPC 3.2.x series branched, trunk update to 3.3.1
« Reply #48 on: January 02, 2019, 12:43:38 pm »
No it doesn't.

console output :
WriteLn(c:2:5)=1000.00000

Trunk Fresh At revision: 40744

Compilation with -va
[0.000] (3103) Macro FPC_FULLVERSION set to 30301
[0.000] (3101) Macro defined: FPC_HAS_INDIRECT_ENTRY_INFORMATION
[0.000] (3101) Macro defined: FPC_HAS_INDIRECT_VAR_ACCESS
[0.000] (1000) Compiler: D:\fpc-laz-asus\FPC\3_3_+\bin\i386-win32\ppc386.exe
[0.000] (1001) Compiler OS: Win32 for i386
[0.000] (1002) Target OS: Win32 for i386
[0.000] (1003) Using executable path: D:\fpc-laz-asus\FPC\3_3_+\bin\i386-win32\

And properties for D:\fpc-laz-asus\FPC\3_3_+\bin\i386-win32\ppc386.exe
Modifié le ‎Aujourd’hui, ‎2 ‎janvier ‎2019, ‏‎il y a 12 minutes



Thaddy

  • Hero Member
  • *****
  • Posts: 14204
  • Probably until I exterminate Putin.
Re: FPC 3.2.x series branched, trunk update to 3.3.1
« Reply #49 on: January 02, 2019, 01:54:09 pm »
That is strange:
It is supposed to be fixed very recently.
I can only test on 64 bit Windows system, but compiled to 32 bit. (Not a true 32 bit Windows)
That works for the code given.

That means you can re- open the bug report if you want (And can prove it is still there, or again there with a simple example).
I can not reproduce it, though (Windows 10, 64 to 32 cross-compiler from today)

It may also depend on optimization settings, I have no room to test that. I suspect another screw up in recent i386 assembler optimizations, which are good but very risky.

I will try to reproduce the issue.
Specialize a type, not a var.

Bart

  • Hero Member
  • *****
  • Posts: 5275
    • Bart en Mariska's Webstek
Re: FPC 3.2.x series branched, trunk update to 3.3.1
« Reply #50 on: January 02, 2019, 03:59:25 pm »
That is strange:
...
That means you can re- open the bug report if you want (And can prove it is still there, or again there with a simple example).
I can not reproduce it, though (Windows 10, 64 to 32 cross-compiler from today)

That report hasn't been set to resolved, let alone closed.

fpc r40745, 32-bit on win10-64.

Code: [Select]
C:\Users\Bart\LazarusProjecten\ConsoleProjecten>fpc test.pas
Free Pascal Compiler version 3.3.1 [2019/01/02] for i386
Copyright (c) 1993-2018 by Florian Klaempfl and others
Target OS: Win32 for i386
Compiling test.pas
Linking test.exe
21 lines compiled, 0.3 sec, 67712 bytes code, 4180 bytes data
3 warning(s) issued

C:\Users\Bart\LazarusProjecten\ConsoleProjecten>test
1000.00000

Bart
« Last Edit: January 02, 2019, 04:09:22 pm by Bart »

segfault

  • Full Member
  • ***
  • Posts: 107
Re: FPC 3.2.x series branched, trunk update to 3.3.1
« Reply #51 on: January 09, 2019, 01:10:17 pm »
Just wondering what the next "stable" version of FPC will be and when it's due for release?

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: FPC 3.2.x series branched, trunk update to 3.3.1
« Reply #52 on: January 09, 2019, 01:28:20 pm »
Just wondering what the next "stable" version of FPC will be and when it's due for release?

The next stable will be 3.2.0 (hence this thread) and it's expected some time this year.
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: FPC 3.2.x series branched, trunk update to 3.3.1
« Reply #53 on: January 09, 2019, 01:55:44 pm »
Just wondering what the next "stable" version of FPC will be and when it's due for release?

The next stable will be 3.2.0 (hence this thread) and it's expected some time this year.

Correct. During the christmas period, lots of revs were merged back from trunk to the 3.2 branch.

Current holdup is enabling SEH by default for 32-bit windows, so that it is COM compatible

JernejL

  • Jr. Member
  • **
  • Posts: 92
Re: FPC 3.2.x series branched, trunk update to 3.3.1
« Reply #54 on: January 13, 2019, 04:32:20 pm »
Im eager to help with next fpc release, i'm wondering if there is anything i can do with a feature i'm very eager to use: anonymous functions:
 
https://foundation.freepascal.org/projects/project-2 & http://lists.freepascal.org/pipermail/fpc-devel/2017-July/038101.html
 
Is there any work for me that i can do, helping get anonymous functions merged in?
 

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: FPC 3.2.x series branched, trunk update to 3.3.1
« Reply #55 on: January 13, 2019, 05:17:41 pm »
Im eager to help with next fpc release, i'm wondering if there is anything i can do with a feature i'm very eager to use: anonymous functions:
 
https://foundation.freepascal.org/projects/project-2 & http://lists.freepascal.org/pipermail/fpc-devel/2017-July/038101.html
 
Is there any work for me that i can do, helping get anonymous functions merged in?

This work is not yet in trunk, so out of the question for 3.2.

JernejL

  • Jr. Member
  • **
  • Posts: 92
Re: FPC 3.2.x series branched, trunk update to 3.3.1
« Reply #56 on: January 13, 2019, 05:39:27 pm »
Im eager to help with next fpc release, i'm wondering if there is anything i can do with a feature i'm very eager to use: anonymous functions:
 
https://foundation.freepascal.org/projects/project-2 & http://lists.freepascal.org/pipermail/fpc-devel/2017-July/038101.html
 
Is there any work for me that i can do, helping get anonymous functions merged in?

This work is not yet in trunk, so out of the question for 3.2.

Ok, so how can i help get it into trunk?
 

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: FPC 3.2.x series branched, trunk update to 3.3.1
« Reply #57 on: January 13, 2019, 05:49:53 pm »

Ok, so how can i help get it into trunk?

Work on it/ finish it? Afaik it isn't, or at least not for all architectures. I don't know the details, ask on fcl-devel maillist if you are interested in helping out.

Or try a separate post in one of the freepascal development subforums on this forum.

JernejL

  • Jr. Member
  • **
  • Posts: 92
Re: FPC 3.2.x series branched, trunk update to 3.3.1
« Reply #58 on: January 13, 2019, 06:02:41 pm »

Ok, so how can i help get it into trunk?

Work on it/ finish it? Afaik it isn't, or at least not for all architectures. I don't know the details, ask on fcl-devel maillist if you are interested in helping out.

Or try a separate post in one of the freepascal development subforums on this forum.

 
Mailing lists are archaic & slightly inaccesible, i will attempt to post in the freepascal forum section.
 

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: FPC 3.2.x series branched, trunk update to 3.3.1
« Reply #59 on: January 13, 2019, 06:05:41 pm »
Mailing lists are archaic & slightly inaccesible, i will attempt to post in the freepascal forum section.

You must be very, very young ... email is inaccesible? :o :)
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

 

TinyPortal © 2005-2018