[LLVMbugs] [Bug 2936] New: wrong x86 asm symbol name decoration

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Oct 23 06:23:00 PDT 2008


           Summary: wrong x86 asm symbol name decoration
           Product: libraries
           Version: 2.4
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Backend: X86
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: ubub at gmx.net
                CC: llvmbugs at cs.uiuc.edu

Created an attachment (id=2124)
 --> (http://llvm.org/bugs/attachment.cgi?id=2124)

when dllexport'ing functions with llvm on the x86 cygwin platform two bugs

1. the X86ATTAsmPrinter uses the properly decorated function names in the
function definition, but exports the undecorated names.

2. 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).

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list