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 target/23775] [4.1 Regression] wrong code in argument passing


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-08 12:46 -------
And here is a C testcase:
double cos(double);
void abort(void);

double x_from_z(double pitch, double stereo); // __attribute__((const));
double x_from_z(double pitch, double stereo)
{
  return 1.0/cos(stereo);
}

void local_to_trflocal(int b, double x_loc, int a)
{
  if (x_loc != 1.0)
    abort ();
}

int main()
{
  local_to_trflocal(0, x_from_z(0,0),0);
  return 0;
}

-- 


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


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