Skip to content

Commit f773fcf

Browse files
committed
Remove now-unused configure checks
1 parent fbee402 commit f773fcf

File tree

2 files changed

+1
-30
lines changed

2 files changed

+1
-30
lines changed

Zend/Zend.m4

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -389,32 +389,3 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
389389
if test "$ac_cv_cpuid_count_available" = "yes"; then
390390
AC_DEFINE([HAVE_CPUID_COUNT], 1, [whether __cpuid_count is available])
391391
fi
392-
393-
dnl Check whether <stdatomic.h> is available.
394-
AC_CACHE_CHECK(
395-
[whether <stdatomic.h> is available],
396-
ac_cv_stdatomic_h,
397-
[AC_RUN_IFELSE(
398-
[AC_LANG_SOURCE(
399-
[[
400-
#include <stdatomic.h>
401-
#include <stdbool.h>
402-
int main(void) {
403-
atomic_bool val = false;
404-
(void)atomic_load(&val);
405-
atomic_store(&val, true);
406-
(void)atomic_exchange(&val, false);
407-
408-
if (sizeof(atomic_bool) != sizeof(bool)) return 1;
409-
if (_Alignof(atomic_bool) != _Alignof(bool)) return 1;
410-
return 0;
411-
}
412-
]]
413-
)],
414-
[ac_cv_stdatomic_h_available=yes],
415-
[ac_cv_stdatomic_h_available=no]
416-
)]
417-
)
418-
if test "$ac_cv_stdatomic_h_available" = "yes"; then
419-
AC_DEFINE([HAVE_STDATOMIC_H], 1, [whether <stdatomic.h> is available])
420-
fi

Zend/zend_atomic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ inline ZEND_API void zend_atomic_bool_store(zend_atomic_bool *obj, bool desired)
147147
* improvement. As more platforms support C11 atomics, or as we add support
148148
* for more platforms through intrinsics/asm, this should be used less and
149149
* less until it can be removed.
150+
* At the time of this writing, all platforms in CI avoided this fallback.
150151
*/
151152

152153
inline ZEND_API void zend_atomic_bool_store(zend_atomic_bool *obj, bool desired) {
@@ -163,7 +164,6 @@ inline ZEND_API bool zend_atomic_bool_exchange(zend_atomic_bool *obj, bool desir
163164
return prev;
164165
}
165166

166-
#error Just seeing if any platforms in CI are using this fallback.
167167
#endif
168168

169169
END_EXTERN_C()

0 commit comments

Comments
 (0)