When calling function pointers that have been marked with __attribute__((ms_abi)) the arguments will not be passed correctly.
A simple testcase is enough to expose the wrong behavior. -- Summary: gcc fails to correctly pass arguments with ms_abi function pointers Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: m dot b dot lankhorst at gmail dot com GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38227