This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fortran optimization errors


On Thu, Jun 21, 2007 at 07:32:59PM -0700, Sebastian Sandersius wrote:
> 
>     I have found errors in your fortran 95 compiler for linux.  I get
> different numerical output when I compile my program with -O3 then if
> I compile with -g - this shouldn't happed.
> 

Clearly, you have an unstable numerical algorithm.
Try adding -ffloat-store to your options.

-- 
Steve


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]