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/34001] Incorrect x86 fastcall behavior



------- 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


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