This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/44632] [4.4/4.5/4.6 regression] wrong code for complex division
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Aug 2010 20:39:01 -0000
- Subject: [Bug tree-optimization/44632] [4.4/4.5/4.6 regression] wrong code for complex division
- References: <bug-44632-11764@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from rguenth at gcc dot gnu dot org 2010-08-07 20:39 -------
Btw, does this only happen at -O0? If you adjust the testcase like
#include <complex>
#include <iostream>
void __attribute__((noinline))
g(std::complex<double> x)
{
std::cout << x << std::endl;
}
void __attribute__((noinline))
f(std::complex<double> x)
{
g (x);
x = 1.0 / x;
g (x);
}
int main()
{
f(2.0);
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44632