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 target/37390] wrong-code on i486-linux-gnu with -O[12], -O0 works



------- Comment #11 from vincent at vinc17 dot org  2008-09-06 22:19 -------
(In reply to comment #10)
> The funny thing is that this only happens with -O2 or -O1 but not with -O0 ie
> no optimization it is all correct , when we optimize the results start varying.

Because with -O0, some values are stored to memory and re-read from memory,
hence rounded to double precision (53-bit significand), a bit like with
-ffloat-store.


-- 


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


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