<div dir="ltr">My understanding is that the portion of the talk you've linked to, is in the context of profiling hints (e.g. if profiling detects just a single callsite for a specific function, always inline its code, that sort of thing).<div><br></div><div>The noinline attribute works just fine.<div><br></div><div>E.g:  <a href="https://godbolt.org/g/frM8J7">https://godbolt.org/g/frM8J7</a></div><div class="gmail_extra"><div><div class="gmail_signature"><br> - ½<br></div></div>
<br><div class="gmail_quote">On 2 October 2017 at 23:44, Hayden Livingston via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Chandler Carruth at a CppCon/NWCPP talk said that Clang will not<br>
respect the noinline gcc attribute (or clang attribute).<br>
<br>
Sometimes it is needed for semantic correctness that a method not be<br>
inlined (e.g. for GC lifetime visibility etc.)<br>
<br>
Is this true?<br>
<br>
Video: <a href="https://youtu.be/9RFYVbHRoLg?t=3822" rel="noreferrer" target="_blank">https://youtu.be/9RFYVbHRoLg?<wbr>t=3822</a><br>
______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div></div></div>