Emulate clang atomic built-ins on gcc > 4.7

gcc 4.7 and above has atomic built-ins which slightly different APIs
from those provided by clang. Add proxy functions that wrap the gcc
built-ins to produce a symbol that is API equivalent to the clang
built-ins. This allows libc++'s atomic library to be used with gcc-4.7
and newer.

Patch contributed by Albert Wong.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@215305 91177308-0d34-0410-b5e6-96231b3b80d8
(cherry picked from commit e8b4232e33bb508a8d4cab189683b1a0c1055fe9)

Change-Id: I17ad6e5c18f910aa76d4acd83bc5175f29e74c36
1 file changed