https://bugs.llvm.org/show_bug.cgi?id=48112

            Bug ID: 48112
           Summary: Linking against Watcom code
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangb...@nondot.org
          Reporter: crosserbac...@gmail.com
                CC: blitzrak...@gmail.com, dgre...@apple.com,
                    erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
                    richard-l...@metafoo.co.uk

Is it possible to officially add the Watcom calling convention to LLVM and
Clang in order to support calling code from legacy libraries and DLLs without
any inline assembly hacks to pass parameters correctly?

Basically the issue is that parameters are passed left-to-right into EAX, ECX,
EDX, and EBX, then everything else right-to-left onto the stack. Using
__fastcall or __stdcall doesn't help either, even though the conventions behave
pretty much like Watcom's.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to