This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/55268] gcc4.8 mingw-w64 wrong stdcall import symbols generated after rev 193204
- From: "ktietz at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 14 Nov 2012 12:28:22 +0000
- Subject: [Bug target/55268] gcc4.8 mingw-w64 wrong stdcall import symbols generated after rev 193204
- Auto-submitted: auto-generated
- References: <bug-55268-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55268
Kai Tietz <ktietz at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-11-14
CC| |ktietz at gcc dot gnu.org
Ever Confirmed|0 |1
--- Comment #2 from Kai Tietz <ktietz at gcc dot gnu.org> 2012-11-14 12:28:22 UTC ---
I have the following patch which should solve this issue:
Index: i386.c
===================================================================
--- i386.c (Revision 193485)
+++ i386.c (Arbeitskopie)
@@ -28805,7 +28805,10 @@
/* For function version, add the target suffix to the assembler name. */
if (TREE_CODE (decl) == FUNCTION_DECL
&& DECL_FUNCTION_VERSIONED (decl))
- return ix86_mangle_function_version_assembler_name (decl, id);
+ id = ix86_mangle_function_version_assembler_name (decl, id);
+#ifdef TARGET_MANGLE_DECL_ASSEMBLER_NAME
+ id = TARGET_MANGLE_DECL_ASSEMBLER_NAME (decl, id);
+#endif
return id;
}