Graeme
Graeme

Reputation: 4592

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.

Upvotes: 2

Views: 1718

Answers (4)

Puppy
Puppy

Reputation: 146940

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

Upvotes: 0

Michael Burr
Michael Burr

Reputation: 340218

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

Upvotes: 2

janneb
janneb

Reputation: 37208

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

Upvotes: 4

Sebastian Mach
Sebastian Mach

Reputation: 39099

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

Upvotes: 1

Related Questions