Project

General

Profile

Bug #16774 ยป 0001-Don-t-require-sub-word-atomics.patch

schwab (Andreas Schwab), 04/10/2020 01:59 PM

View differences:

configure.ac
1498 1498
    ])
1499 1499

  
1500 1500
    AC_CACHE_CHECK([for __atomic builtins], [rb_cv_gcc_atomic_builtins], [
1501
	AC_TRY_LINK([unsigned char atomic_var;],
1501
	AC_TRY_LINK([unsigned int atomic_var;],
1502 1502
		    [
1503 1503
			__atomic_exchange_n(&atomic_var, 0, __ATOMIC_SEQ_CST);
1504 1504
			__atomic_exchange_n(&atomic_var, 1, __ATOMIC_SEQ_CST);
......
1513 1513
    ])
1514 1514

  
1515 1515
    AC_CACHE_CHECK([for __sync builtins], [rb_cv_gcc_sync_builtins], [
1516
	AC_TRY_LINK([unsigned char atomic_var;],
1516
	AC_TRY_LINK([unsigned int atomic_var;],
1517 1517
		    [
1518 1518
			__sync_lock_test_and_set(&atomic_var, 0);
1519 1519
			__sync_lock_test_and_set(&atomic_var, 1);
1520
-