llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27.32k stars 11.21k forks source link

Clang does not support default calling convention options /Gd /Gr /Gv /Gz #28085

Closed llvmbot closed 8 years ago

llvmbot commented 8 years ago
Bugzilla Link 27711
Resolution FIXED
Resolved on May 24, 2016 08:07
Version trunk
OS Windows NT
Reporter LLVM Bugzilla Contributor
CC @rnk

Extended Description

MS VS compiler has ability to set up default calling convention by options /Gd /Gr /Gv /Gz

Link: https://msdn.microsoft.com/en-us/library/46t77ak2.aspx

clang-cl recognizes but ignores these options. I think it is useful feature.

Sergey Gvozdarev

Software Engineer Intel Compiler Team

llvmbot commented 8 years ago

The patch is committed in revision rL269891: http://reviews.llvm.org/rL269891

Alexander Makarov, Intel Compiler Engineer

rnk commented 8 years ago

/Gz (__stdcall) can be an alias for -mrtd, and the rest can be implemented along similar lines.