------- Comment #2 from hjl at lucon dot org 2007-11-09 16:55 ------- From
http://msdn2.microsoft.com/en-us/library/6xa169sk(VS.80).aspx "The first two DWORD or smaller arguments are passed in ECX and EDX registers; all other arguments are passed right to left." But it isn't clear if it applies to structure/union. We tested all MS compilers we have and verified that the above doesn't apply to structure/union. To make fastcall compatible with MS compilers, we should only put scalar arguments in ECX and EDX. -- hjl at lucon dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |hjl at lucon dot org |dot org | Status|NEW |ASSIGNED Last reconfirmed|2007-11-08 17:12:05 |2007-11-09 16:55:09 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34001