summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorOndra Pelech <ondra.pelech@gmail.com>2018-09-23 23:14:53 +0200
committerKrzysztof Gogolewski <krz.gogolewski@gmail.com>2018-10-15 10:29:50 +0200
commit8a9a63beaad19d4f59ec7ae26925d8b4e9b94cee (patch)
tree01773d04c7336bca782f243b4e2991777c386f74 /aclocal.m4
parent08b3db7e670d7a142244466f1722cb48ab82f1f5 (diff)
downloadhaskell-8a9a63beaad19d4f59ec7ae26925d8b4e9b94cee.tar.gz
Fix test for GCC support for atomics in Autotools
PR: https://github.com/ghc/ghc/pull/198/
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 15b9f3525d..55b4162774 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1303,7 +1303,7 @@ AC_DEFUN([FP_GCC_SUPPORTS__ATOMICS],
[
AC_REQUIRE([AC_PROG_CC])
AC_MSG_CHECKING([whether GCC supports __atomic_ builtins])
- echo 'int test(int *x) { int y; __atomic_load(&x, &y, __ATOMIC_SEQ_CST); return x; }' > conftest.c
+ echo 'int test(int *x) { int y; __atomic_load(x, &y, __ATOMIC_SEQ_CST); return y; }' > conftest.c
if $CC -c conftest.c > /dev/null 2>&1; then
CONF_GCC_SUPPORTS__ATOMICS=YES
AC_MSG_RESULT([yes])