[clang] [Clang][Cygwin] Cygwin x86_64 should accept __stdcall (PR #158385)

Tomohiro Kashiwada via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 12 20:47:45 PDT 2025


================
@@ -983,6 +983,7 @@ class LLVM_LIBRARY_VISIBILITY CygwinX86_64TargetInfo : public X86_64TargetInfo {
       : X86_64TargetInfo(Triple, Opts) {
     this->WCharType = TargetInfo::UnsignedShort;
     this->WIntType = TargetInfo::UnsignedInt;
+    this->UseMicrosoftManglingForC = true;
----------------
kikairoya wrote:

This looks like a missing portion from https://github.com/llvm/llvm-project/commit/45ca613c135ea7b5fbc63bff003f20bf20f62081 .
I'm not sure why it doesn't affect the assembly.
https://godbolt.org/z/r4bbvbT5E

new PR: https://github.com/llvm/llvm-project/pull/158404

https://github.com/llvm/llvm-project/pull/158385


More information about the cfe-commits mailing list