$OPTIMIZATION DEADSTORE

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

$OPTIMIZATION DEADSTORE

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}

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: $OPTIMIZATION DEADSTORE

Jonas Maebe-3
On 20/05/17 11:52, 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
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal