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 tree-optimization/44632] [4.4/4.5/4.6 regression] wrong code for complex division



------- 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


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