build: Use memory barriers for ARM

ARM has much weaker memory ordering guarantees than x86 by default, and
needs the memory barriers.  A similar fix exists in the Skia codebase.
Fix suggested by Nathan Froyd.

Fixes: FDO #90302

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Acked-by: "Henry (Yu) Song" <henry.song@samsung.com>
This commit is contained in:
Bryce Harrington 2015-10-14 18:10:22 -07:00
parent 25a55822b4
commit 7cc77d1cee

View file

@ -215,7 +215,7 @@ AC_DEFUN([CAIRO_CHECK_ATOMIC_OP_NEEDS_MEMORY_BARRIER],
case $host_cpu in
i?86) cairo_cv_atomic_op_needs_memory_barrier="no" ;;
x86_64) cairo_cv_atomic_op_needs_memory_barrier="no" ;;
arm*) cairo_cv_atomic_op_needs_memory_barrier="no" ;;
arm*) cairo_cv_atomic_op_needs_memory_barrier="yes" ;;
*) cairo_cv_atomic_op_needs_memory_barrier="yes" ;;
esac
])