<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jun 15, 2016 at 11:05 AM, David Blaikie <span dir="ltr"><<a href="mailto:dblaikie@gmail.com">dblaikie@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div class="gmail-h5"><span style="color:rgb(34,34,34)">Perhaps we shouldn't emit it if it's the logical platform default as it (to my naive understanding) appears to be here?</span></div></div></div></div></div></blockquote><div><br></div><div>It is only the default for member functions, and member functions can be cdecl (the free function default). I think it makes more sense to be explicit, otherwise the debugger has to infer that, because this is a member function, it uses a different calling convention.</div><div><br></div><div>It looks like there is an open bug to have GCC and GDB use DW_AT_calling_convention in this way, but it is not closed:</div><div><a href="https://sourceware.org/bugzilla/show_bug.cgi?id=15559">https://sourceware.org/bugzilla/show_bug.cgi?id=15559</a><br></div></div></div></div>