Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2017-05

$OPTIMIZATION DEADSTORE

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Il Grande Beppe

Hello,

I use FPC 3.0.0 on WinXP, Mageia5 and the latest Raspbian, thanks to the incredible versatility of this fabulous compiler - and the very appreciated work of you all !

I have a bad experience with $OPTIMIZATION DEADSTORE to report with a long software for numerical simulation of the solar system with thousands asteroids :
- on winxp, the software produces correct numbers with and without DeadStore optimisazion enabled.
- on Mageia and Raspbian, the numbers are correct only when DeadStore is disabled. Wrong results are the same on both computers.
I ran each time the software on the compiling machine (no crosscompilation).

What is the current status of DeadStore on 3.0.2 and/or in the forcoming version ? Is this problem known ?

Cheers, Beppe.

    {$IFDEF VER3}
       {$OPTIMIZATION DEADVALUES}
       {   $OPTIMIZATION DEADSTORE} { if enabled, wrong results }
       {$OPTIMIZATION DFA}
       {$OPTIMIZATION ORDERFIELDS}
       {$OPTIMIZATION FASTMATH}
       {$OPTIMIZATION CONSTPROP}
    {$ENDIF}
Jonas Maebe
to Il Grande Beppe
Il Grande Beppe wrote
What is the current status of DeadStore on 3.0.2 and/or in the forcoming version ?

It's experimental in both cases.

Is this problem known ?

No. If you have an example program, preferably a small one, that demonstrates the problem, please submit it at https://bugs.freepascal.org

Jonas