From 7cc77d1ceea850d5728f4fad59ec18984dbc9ccb Mon Sep 17 00:00:00 2001 From: Bryce Harrington Date: Wed, 14 Oct 2015 18:10:22 -0700 Subject: [PATCH] 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 Acked-by: "Henry (Yu) Song" --- build/aclocal.cairo.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/aclocal.cairo.m4 b/build/aclocal.cairo.m4 index 44ba5fdf6..f0ea23c09 100644 --- a/build/aclocal.cairo.m4 +++ b/build/aclocal.cairo.m4 @@ -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 ])