This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/38366] New: gcc doesn't call functions that are struct arguments correctly
- From: "m dot b dot lankhorst at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Dec 2008 09:07:35 -0000
- Subject: [Bug c/38366] New: gcc doesn't call functions that are struct arguments correctly
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
If a function pointer is part of a struct, and it is called from a function
marked with ms_abi, the 7th argument will be placed wrongly on the stack. It is
placed at 20(%rsp) instead of at (%rsp), which means that programs like wine
will fail.
Testcase attached
--
Summary: gcc doesn't call functions that are struct arguments
correctly
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-pc-linux-gnu
GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38366