summaryrefslogtreecommitdiffstats
path: root/cpukit/aclocal/check-atomic.m4
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/aclocal/check-atomic.m4')
-rw-r--r--cpukit/aclocal/check-atomic.m419
1 files changed, 0 insertions, 19 deletions
diff --git a/cpukit/aclocal/check-atomic.m4 b/cpukit/aclocal/check-atomic.m4
deleted file mode 100644
index 69cca509a7..0000000000
--- a/cpukit/aclocal/check-atomic.m4
+++ /dev/null
@@ -1,19 +0,0 @@
-dnl
-AC_DEFUN([RTEMS_CHECK_ATOMIC],
-[dnl
-AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl
-
-AC_CACHE_CHECK([whether CPU supports atomic operations],
- [rtems_cv_ATOMIC],[
- AC_LINK_IFELSE(
- [AC_LANG_PROGRAM([[#include <stdatomic.h>]],
- [[atomic_uint_fast32_t t; uint_fast32_t m = 1;
- atomic_init(&t, 0);
- atomic_store( &t, 1 );
- atomic_exchange( &t, 2 );
- atomic_compare_exchange_strong( &t, &m, 2);
- atomic_fetch_add( &t, 3 );]])],
- [rtems_cv_ATOMIC="yes"],
- [rtems_cv_ATOMIC="no"])
- ])
-])