开发者

Which version of GCC introduced support for atomic builtins?

I see it's available in 4.1.0 but was it available 开发者_开发技巧earlier than this? I'm interested specifically in 3.4.3 but can't find a definitive answer.


Looking at the online documentation, it seems the atomic builtins were added in the 4.1 release.


You can find the GCC manual for 3.4.6 here: http://gcc.gnu.org/onlinedocs/gcc-3.4.6/gcc/

It makes no mention of the Atomic Builtins, so I'd guess that they aren't in 3.4.3.

A list of historical GCC manuals is here: http://gcc.gnu.org/onlinedocs/

And a list of links to release notes: http://gcc.gnu.org/releases.html


You could check the changelog, e.g. cat /usr/share/doc/gcc-YOUR-VERSION-OF-GCC/ChangeLog | grep atomic


If you're using an earlier version, you should still be able to use them with inline assembler.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜