ObjFW  Diff

Differences From Artifact [3e5258149c]:

To Artifact [0e063e6d70]:


201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
		OBJCFLAGS="$OBJCFLAGS -march=i486"
		AC_TRY_LINK([#include <stdint.h>], [
			int32_t i, j;
			if (__sync_add_and_fetch(&i, 1))
				j = __sync_sub_and_fetch(&i, 1);
			while (!__sync_bool_compare_and_swap(&i, 0, 1));
			], [
			AC_MSG_RESULT(yes, with -march=i486)
			atomic_ops="gcc builtins (with -march=i486)"
			AC_DEFINE(OF_HAVE_GCC_ATOMIC_OPS, 1,
				[Whether gcc atomic operations are available])
			AC_SUBST(ATOMIC_OBJCFLAGS, "-march=i486")
			], [
			AC_MSG_RESULT(no)
			OBJCFLAGS="$old_OBJCFLAGS"])])







|







201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
		OBJCFLAGS="$OBJCFLAGS -march=i486"
		AC_TRY_LINK([#include <stdint.h>], [
			int32_t i, j;
			if (__sync_add_and_fetch(&i, 1))
				j = __sync_sub_and_fetch(&i, 1);
			while (!__sync_bool_compare_and_swap(&i, 0, 1));
			], [
			AC_MSG_RESULT([yes, with -march=i486])
			atomic_ops="gcc builtins (with -march=i486)"
			AC_DEFINE(OF_HAVE_GCC_ATOMIC_OPS, 1,
				[Whether gcc atomic operations are available])
			AC_SUBST(ATOMIC_OBJCFLAGS, "-march=i486")
			], [
			AC_MSG_RESULT(no)
			OBJCFLAGS="$old_OBJCFLAGS"])])