This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug middle-end/33780] different results between O3 and O0



------- Comment #2 from jv244 at cam dot ac dot uk  2007-10-15 15:30 -------
(In reply to comment #1)
> As Fortran allows open-coding of integral powers this is not a bug.  But
> I'll leave final closing as INVALID to more fortran-knowing people.

I agree that Fortran-wise this is not a bug. However, gcc tends to do some of
the things that Fortran allows by default (x/y -> x*(1/y) ; x+Y+z -> (x=z)+y ;
..) only at -ffast-math. AFAIK, this seems to be the only optimisation in gcc
that causes numerical results with CP2K to change going from -O0 to -O3. 


-- 


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


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