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

Bug: 16301104
Change-Id: I17ad6e5c18f910aa76d4acd83bc5175f29e74c36
(cherry picked from commit 1c1ba7bb946848d17698d3ef3572ec6ead25b8b3)
1 file changed