[commit: ghc] master: Fix test for GCC support for atomics in Autotools (8a9a63b)
git at git.haskell.org
git at git.haskell.org
Mon Oct 15 09:43:18 UTC 2018
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/8a9a63beaad19d4f59ec7ae26925d8b4e9b94cee/ghc
>---------------------------------------------------------------
commit 8a9a63beaad19d4f59ec7ae26925d8b4e9b94cee
Author: Ondra Pelech <ondra.pelech at gmail.com>
Date: Sun Sep 23 23:14:53 2018 +0200
Fix test for GCC support for atomics in Autotools
PR: https://github.com/ghc/ghc/pull/198/
>---------------------------------------------------------------
8a9a63beaad19d4f59ec7ae26925d8b4e9b94cee
aclocal.m4 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/aclocal.m4 b/aclocal.m4
index 15b9f35..55b4162 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])
More information about the ghc-commits
mailing list