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 rtl-optimization/30957] Misscompare with variable expansion optimization



------- Comment #6 from eres at il dot ibm dot com  2007-02-26 15:01 -------
It seems that initializing the expansion with -zero (instead of +zero)
will solve this problem.

According IEEE standard if we have -

x += something; initializing x with -0 will cause x to get the sign of
something.

-0 + (-0) = -0
-0 + (+0) = +0


-- 


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


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