commit | 6b032de90cac8b6d3b20ac2310b5aa1e6f2617a1 | [log] [tgz] |
---|---|---|
author | WenHan Gu <Wenhan.gu@mediatek.com> | Thu Jun 20 11:07:43 2013 +0800 |
committer | WenHan Gu <Wenhan.gu@mediatek.com> | Thu Jun 20 11:14:04 2013 +0800 |
tree | 2a4b0b8477aa1babeed5e4b1fa7d3dcbdecb0682 | |
parent | c74cb9ccd615e0ed65a09dd113e27ce976ec85de [diff] |
Add __sync_* atomic builtins for other type width than 4. We define these unsupport builtins with error report. Otherwise, we will get undefined references since GCC and Clang all assume they exist. This also fixes NDK test issue41297-atomic-64bit when we use compiler-rt instead of libgcc. For more info: http://gcc.gnu.org/onlinedocs/gcc-4.8.0/gcc/_005f_005fsync-Builtins.html https://android-review.googlesource.com/#/c/59640 Change-Id: If6db0a43c91297f51659c46a362e0d9dd0fc95d6