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 /m4 | |
parent | 234bf3688b14299ad8cebc20206c1a5df34139d4 (diff) | |
download | haskell-4cf43b2a1d569a786e549962e867eb506f4fc76a.tar.gz |
Rename fp_gcc_supports__atomics to fp_cc_supports__atomics
Diffstat (limited to 'm4')
-rw-r--r-- | m4/fp_cc_supports__atomics.m4 (renamed from m4/fp_gcc_supports__atomics.m4) | 10 |
1 files changed, 5 insertions, 5 deletions
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.]) ]) |