Index: configure.in =================================================================== --- configure.in (revision 38094) +++ configure.in (working copy) @@ -1079,6 +1079,8 @@ if test "$GCC" = yes; then __sync_lock_test_and_set(&atomic_var, 1); __sync_fetch_and_add(&atomic_var, 1); __sync_fetch_and_sub(&atomic_var, 1); + __sync_or_and_fetch(&atomic_var, 1); + __sync_val_compare_and_swap(&atomic_var, 1, 1); ], [rb_cv_gcc_atomic_builtins=yes], [rb_cv_gcc_atomic_builtins=no])])