Re: [Lazarus] Cross-compile for Linux strange behaviour with floating point constants

2019-11-24 Thread Florian Klämpfl via lazarus
Am 24.11.19 um 12:04 schrieb Giuliano Colla via lazarus: Il 24/11/2019 11:48, Florian Klämpfl via lazarus ha scritto: What to do with extended constants and their handling in the compiler if the target platform has it but the target platform does not support it? Maybe an AND condition? Use

Re: [Lazarus] Cross-compile for Linux strange behaviour with floating point constants

2019-11-24 Thread Giuliano Colla via lazarus
Il 24/11/2019 11:48, Florian Klämpfl via lazarus ha scritto: What to do with extended constants and their handling in the compiler if the target platform has it but the target platform does not support it? Maybe an AND condition? Use extended type only if both platforms support it? Giuliano

Re: [Lazarus] Cross-compile for Linux strange behaviour with floating point constants

2019-11-24 Thread Florian Klämpfl via lazarus
Am 24.11.19 um 11:45 schrieb Giuliano Colla via lazarus: Il 24/11/2019 01:17, Sven Barth via lazarus ha scritto: There is the plan to add software floating point support for Extended to the compiler for platforms like Win64, but it's not a trivial endeavour. Maybe a silly question, but would

Re: [Lazarus] Cross-compile for Linux strange behaviour with floating point constants

2019-11-24 Thread Giuliano Colla via lazarus
Il 24/11/2019 01:17, Sven Barth via lazarus ha scritto: There is the plan to add software floating point support for Extended to the compiler for platforms like Win64, but it's not a trivial endeavour. Maybe a silly question, but wouldn't it much simpler to have the compiler not use the Exte

Re: [Lazarus] Cross-compile for Linux strange behaviour with floating point constants

2019-11-23 Thread Giuliano Colla via lazarus
Il 20/11/2019 19:19, R Smith via lazarus ha scritto: The problem I've run into is a simple program (made in Lazarus) where I use floating point constants. It compiles and runs perfectly on Windows, but when cross-compiling for Linux, it fails for specific floating point values. I realise imm

Re: [Lazarus] Cross-compile for Linux strange behaviour with floating point constants

2019-11-23 Thread Sven Barth via lazarus
Am 20.11.2019 um 19:19 schrieb R Smith via lazarus: Is there something I can check on my side? Does this work for others? Might this be a cross-compile bug of sorts?  Is this some FPC, FPU or Linux peculiarity I'm not aware of? Win64 is essentially the only x86 platform that does *not* support a

[Lazarus] Cross-compile for Linux strange behaviour with floating point constants

2019-11-23 Thread R Smith via lazarus
Hi All, I'm a long time Lazarus user (since Kylix failed) and a big fan. This is however my first post on any FPC/Lazarus forum. The problem I've run into is a simple program (made in Lazarus) where I use floating point constants. It compiles and runs perfectly on Windows, but when cross-com