Skip to content

wrong x86 asm symbol name decoration #3308

@llvmbot

Description

@llvmbot
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:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions