This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/23775] [4.1 Regression] wrong code in argument passing
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Sep 2005 12:46:19 -0000
- Subject: [Bug target/23775] [4.1 Regression] wrong code in argument passing
- References: <20050908023129.23775.snyder@fnal.gov>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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