This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/34001] Incorrect x86 fastcall behavior
- From: "hjl at lucon dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Nov 2007 23:19:02 -0000
- Subject: [Bug target/34001] Incorrect x86 fastcall behavior
- References: <bug-34001-15308@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from hjl at lucon dot org 2007-11-26 23:19 -------
We have changed fastcall behavior from gcc 3.4 to 4.1. For
---
#define FASTCALL __attribute((fastcall))
double FASTCALL f_dii( double p1d, int p2i, int p3i ){ return p1d +
(double)p2
i + (double)p3i; }
int test_x;
int test_y;
double test_d1;
void caller( void ){
f_dii( test_d1, test_x, test_y );
}
---
Gcc 3.4 doesn't pass the first 2 integral parameters in ecx/edx and gcc
4.1 does.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34001