-
Notifications
You must be signed in to change notification settings - Fork 15k
[Clang][Cygwin] Cygwin x86_64 should accept __stdcall #158385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this be added to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks, I do. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. clang/test/CodeGen/mangle-windows.c ? Maybe CodeGenCXX also? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This looks like a missing portion from 45ca613 . new PR: #158404 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The tags on that commit show that it wasn't in 20.x, only in 21.x. |
||
} | ||
|
||
void getTargetDefines(const LangOptions &Opts, | ||
|
@@ -997,6 +998,29 @@ class LLVM_LIBRARY_VISIBILITY CygwinX86_64TargetInfo : public X86_64TargetInfo { | |
Builder.defineMacro("_GNU_SOURCE"); | ||
} | ||
|
||
CallingConvCheckResult checkCallingConvention(CallingConv CC) const override { | ||
switch (CC) { | ||
case CC_X86StdCall: | ||
case CC_X86ThisCall: | ||
case CC_X86FastCall: | ||
return CCCR_Ignore; | ||
case CC_C: | ||
case CC_X86VectorCall: | ||
case CC_IntelOclBicc: | ||
case CC_PreserveMost: | ||
case CC_PreserveAll: | ||
case CC_PreserveNone: | ||
case CC_X86_64SysV: | ||
case CC_Swift: | ||
case CC_SwiftAsync: | ||
case CC_X86RegCall: | ||
case CC_DeviceKernel: | ||
return CCCR_OK; | ||
default: | ||
return CCCR_Warning; | ||
} | ||
} | ||
|
||
BuiltinVaListKind getBuiltinVaListKind() const override { | ||
return TargetInfo::CharPtrBuiltinVaList; | ||
} | ||
|
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.