[Bug middle-end/19551] [3.4/4.0 Regression] LAPACK routine claic1.f bug

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Jan 21 16:15:00 GMT 2005


------- Additional Comments From jakub at gcc dot gnu dot org  2005-01-21 16:13 -------
Simplified testcase:
extern void abort ();

__attribute__((pure)) _Complex float
foo (int x)
{
  _Complex float r;
  __real r = x + 1;
  __imag r = x - 1;
  return r;
}

void
bar (float *f)
{
  *f = foo (5);
}

int
main (void)
{
  float f;
  bar (&f);
  if (f != 6.0)
    abort ();
  return 0;
}

Likely the culprit is in libcall_dead_p.

-- 


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



More information about the Gcc-bugs mailing list