<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 12/06/2013, at 10:40 PM, Reid Kleckner <<a href="mailto:rnk@google.com">rnk@google.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">On Wed, Jun 12, 2013 at 7:13 AM, Charles Davis <span dir="ltr"><<a href="mailto:cdavis5x@gmail.com" target="_blank">cdavis5x@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; "><div style="word-wrap:break-word"><br><div><div><div class="h5">
<div>On Jun 11, 2013, at 4:05 PM, Reid Kleckner wrote:</div></div></div></div></div></blockquote></div></div></div></blockquote><div><br></div>[snip]</div><div><br><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: relative; z-index: 0; "><div style="word-wrap:break-word"><div><div><div class="h5"><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div></div></div></div><div class="gmail_extra">What's lacking today is a way to get at the win64 convention in Clang or from LLVM when targetting a non-Windows platform.  LLVM might want to have a different internal name that's less vague that "ms_abi", though.</div>
</div></blockquote></div></div>You mean like in my patch here:</div><div><br></div><div><a href="http://llvm-reviews.chandlerc.com/D729" target="_blank">http://llvm-reviews.chandlerc.com/D729</a></div><div class="im"><div>
<br></div><div>?</div></div></div></blockquote><div><br></div><div style="">Yeah, that looks good to me.  :)</div><div style=""><br></div><div style="">From the docs, it seems attr(ms_abi) just maps to x86_64_win64cc and x86_stdcallcc depending on the architecture:</div>
<div style=""><a href="http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html#index-g_t_0040code_007bsysv_005fabi_007d-attribute-2670">http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html#index-g_t_0040code_007bsysv_005fabi_007d-attribute-2670</a></div>
<div style="">gcc also appears to support a sysv_abi attribute, which lets you use the sysv CCs when targeting Windows.</div></div></div></div>
</blockquote></div><br><div>For the record, I'm not fussed as to which patch goes in. It's the functionality I care about. =)</div><div><br></div><div>Cheers,</div><div><span class="Apple-tab-span" style="white-space:pre">      </span>Benno.</div><div><br></div></body></html>