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
1 file changed