[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Bug fortran/32391] Wrong code with optimization on i686-pc-linux-gnu




------- Comment #17 from kargl at gcc dot gnu dot org  2007-06-21 02:24 -------
(In reply to comment #16)
> Thank all of you.
> I could understand what make it different.
> 
> There is no 'volatile' statement in fortran77 syntax of gfortran.
> Of course, volatile is not fortran77 standard, I think,
> but a certian implimentation support volatile.

You need to update the Fortran Standard that you use.  Fortran
77 hasn't been the standard since about 1990.  In fact, you're
3 standard been!  There was Fortran 90, which was replaced by
Fortran 95, which was replaced by Fortran 2003.  Fortran 2003 
has the VOLATILE attribute and VOLATILE statement.  Guess what??
No, go ahead and guess!  gfortran supports this feature.

You need to go read Goldberg's paper about floating point arithmetic.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32391

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



Reply to: