[Bug fortran/32391] Wrong code with optimization on i686-pc-linux-gnu
kargl at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Jun 21 02:24:00 GMT 2007
------- 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
More information about the Gcc-bugs
mailing list