------- Comment #4 from m dot b dot lankhorst at gmail dot com 2010-04-25 14:41 ------- Created an attachment (id=20483) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20483&action=view) Patch that fixes the testcase
It appears that SSE_REGPARM_MAX will change based on ix86_cfun_abi(), so using SSE_REGPARM_MAX will cause sse regparm max to be 4, if calling a sysv function from a ms_abi function. The attached patch will clean up some of the issues. setup_incoming_varargs_64 will also assume the sysv abi now, since setup_incoming_varargs_ms_64 is a separate function -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43869