diff options
author | Haochen Tong <i@hexchain.org> | 2021-10-12 02:16:51 +0800 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-10-12 19:17:53 -0400 |
commit | 4cf43b2a1d569a786e549962e867eb506f4fc76a (patch) | |
tree | 31e63d4b4f5bd7818673ce91c614a9792f661730 | |
parent | 234bf3688b14299ad8cebc20206c1a5df34139d4 (diff) | |
download | haskell-4cf43b2a1d569a786e549962e867eb506f4fc76a.tar.gz |
Rename fp_gcc_supports__atomics to fp_cc_supports__atomics
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | m4/fp_cc_supports__atomics.m4 (renamed from m4/fp_gcc_supports__atomics.m4) | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index 482892b8e4..17d87315f5 100644 --- a/configure.ac +++ b/configure.ac @@ -792,7 +792,7 @@ dnl ** Used to determine how to compile ghc-prim's atomics.c, used by dnl unregisterised, Sparc, and PPC backends. Also determines whether dnl linking to libatomic is required for atomic operations, e.g. on dnl RISCV64 GCC. -FP_GCC_SUPPORTS__ATOMICS +FP_CC_SUPPORTS__ATOMICS FP_GCC_EXTRA_FLAGS diff --git a/m4/fp_gcc_supports__atomics.m4 b/m4/fp_cc_supports__atomics.m4 index 6aa3c9dc93..6a6b16b92b 100644 --- a/m4/fp_gcc_supports__atomics.m4 +++ b/m4/fp_cc_supports__atomics.m4 @@ -1,10 +1,10 @@ -dnl FP_GCC_SUPPORTS__ATOMICS +dnl FP_CC_SUPPORTS__ATOMICS dnl ------------------------ -dnl Does gcc support the __atomic_* family of builtins? -AC_DEFUN([FP_GCC_SUPPORTS__ATOMICS], +dnl Does C compiler support the __atomic_* family of builtins? +AC_DEFUN([FP_CC_SUPPORTS__ATOMICS], [ AC_REQUIRE([AC_PROG_CC]) - AC_MSG_CHECKING([whether GCC supports __atomic_ builtins]) + AC_MSG_CHECKING([whether C compiler supports __atomic_ builtins]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[int x, y;]], [[__atomic_load(&x, &y, __ATOMIC_SEQ_CST); return y]])], [ AC_MSG_RESULT(yes) @@ -35,7 +35,7 @@ AC_DEFUN([FP_GCC_SUPPORTS__ATOMICS], AC_MSG_RESULT(no) AC_MSG_ERROR([C compiler needs to support __atomic primitives.]) ]) - AC_DEFINE([HAVE_C11_ATOMICS], [1], [Does GCC support __atomic primitives?]) + AC_DEFINE([HAVE_C11_ATOMICS], [1], [Does C compiler support __atomic primitives?]) AC_DEFINE_UNQUOTED([NEED_ATOMIC_LIB], [$need_latomic], [Define to 1 if we need -latomic for sub-word atomic operations.]) ]) |