| commit | e8b4232e33bb508a8d4cab189683b1a0c1055fe9 | [log] [tgz] |
|---|---|---|
| author | Dan Albert <danalbert@google.com> | Sat Aug 09 23:51:51 2014 |
| committer | Dan Albert <danalbert@google.com> | Sat Aug 09 23:51:51 2014 |
| tree | 0487dccc05e0ae8ea0341afa59976f418d361928 | |
| parent | ddcbcd6b5e049fd2cdf7c75381491587323f8db1 [diff] |
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