Boost C++ Libraries: Ticket #9315: boost shared_ptr should detect __sync support in clang https://svn.boost.org/trac10/ticket/9315 <p> clang (at least as of 3.4) has support for GCC <span class="underline">sync functions. shared_ptr should properly detect that clang has such support (at least on ARM such support is not detected properly). </span></p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9315 Trac 1.4.3 viboes Fri, 29 Nov 2013 21:32:18 GMT component changed; owner set https://svn.boost.org/trac10/ticket/9315#comment:1 https://svn.boost.org/trac10/ticket/9315#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Peter Dimov</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">smart_ptr</span> </li> </ul> Ticket Peter Dimov Fri, 13 Dec 2013 22:42:55 GMT <link>https://svn.boost.org/trac10/ticket/9315#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9315#comment:2</guid> <description> <p> Most versions of clang appear to provide a working <code>&lt;atomic&gt;</code>, so we'll probably use that instead of the obsolete <code>!__sync</code> intrinsics. </p> <p> <a class="ext-link" href="https://github.com/boostorg/smart_ptr/commit/fed15ad8c50921cbfc0365156e4e4f4454dc1b91"><span class="icon">​</span>https://github.com/boostorg/smart_ptr/commit/fed15ad8c50921cbfc0365156e4e4f4454dc1b91</a> allows you to turn <code>std::atomic</code> support on manually by <code>#define BOOST_SP_USE_STD_ATOMIC</code>. This will eventually become the default when <code>std::atomic</code> is autodetected to be present. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Peter Dimov</dc:creator> <pubDate>Fri, 28 Feb 2014 17:39:31 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9315#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9315#comment:3</guid> <description> <p> As it turns out, <code>sp_has_sync.hpp</code> should already detect the <code>__sync</code> support because Clang defines the macro <code>__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4</code>. What specific problem are you having? </p> </description> <category>Ticket</category> </item> <item> <author>vlovich@…</author> <pubDate>Fri, 28 Feb 2014 20:16:59 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9315#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9315#comment:4</guid> <description> <p> The version is the reported field is incorrect (apologies if I supplied it). This bug report was for 1.51. As you point out it's probably fixed in newer boosts. </p> </description> <category>Ticket</category> </item> </channel> </rss>