[Bug c++/47600] gcc optimizer seems to avoid necessary floating-point addition
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 3 16:59:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47600
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-02-03 16:58:51 UTC ---
(In reply to comment #2)
> Does C* obey parentheses? If yes, the solution is the same as in Fortran ndist
> =(dist+d). If no, I think there is an option to disable reassociation
> (-fno-tree-reassoc?) otherwise ndist-dist is d.
We don't reassociate unless you enable it. Thus it should work at -O2
and the assembly looks ok (but the constant is stripped). This really
looks like 323.
More information about the Gcc-bugs
mailing list