This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32391] Wrong code with optimization on i686-pc-linux-gnu
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jun 2007 02:24:31 -0000
- Subject: [Bug fortran/32391] Wrong code with optimization on i686-pc-linux-gnu
- References: <bug-32391-14714@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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