-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Closed
Labels
Description
Bugzilla Link | 2936 |
Resolution | FIXED |
Resolved on | Feb 12, 2010 09:38 |
Version | 2.4 |
OS | Windows XP |
Attachments | testcase, x86 asm intel, x86 asm intel (correct), x86 asm att, x86 asm att (correct), diff X86IntelAsmPrinter.cpp, diff X86ATTAsmPrinter.cpp |
Reporter | LLVM Bugzilla Contributor |
CC | @asl |
Extended Description
when dllexport'ing functions with llvm on the x86 cygwin platform two bugs arose:
-
the X86ATTAsmPrinter uses the properly decorated function names in the function definition, but exports the undecorated names.
-
both, the X86ATTAsmPrinter and X86IntelAsmPrinter use an incorrectly decorated name when calling a fastcall/stdcall function. this only happens if the function is called before it is defined.
I'm attaching a single testcase to reproduce both problems.
It is only reproduceable with the 2.4 branch on cygwin or mingw.
Additionally I'm providing a workaround (not a fully tested patch).