[Bug middle-end/22347] Return value register not correctly computed for indirect function call

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Jul 12 08:26:00 GMT 2005


------- Additional Comments From rguenth at gcc dot gnu dot org  2005-07-12 08:02 -------
I have a fix for the target dependent parts.  Only tree-tailcall stomps on
our feet yet.  I.e.

double __attribute__((sseregparm)) mysin(double);
double __attribute__((sseregparm)) (*mysinfp)(double) = mysin;
double bar(double x)
{
  return 1.0+mysinfp(x);
}

is fixed at -O0 and -O2, the original testcase passes at -O0 but fails at
-O2.

http://gcc.gnu.org/ml/gcc-patches/2005-07/msg00817.html

-- 


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



More information about the Gcc-bugs mailing list