comparison libgomp/acinclude.m4 @ 63:b7f97abdc517 gcc-4.6-20100522

update gcc from gcc-4.5.0 to gcc-4.6
author ryoma <e075725@ie.u-ryukyu.ac.jp>
date Mon, 24 May 2010 12:47:05 +0900
parents 77e2b8dfacca
children f6334be47118
comparison
equal deleted inserted replaced
56:3c8a44c06a95 63:b7f97abdc517
3 3
4 dnl Check whether the target supports __sync_*_compare_and_swap. 4 dnl Check whether the target supports __sync_*_compare_and_swap.
5 AC_DEFUN([LIBGOMP_CHECK_SYNC_BUILTINS], [ 5 AC_DEFUN([LIBGOMP_CHECK_SYNC_BUILTINS], [
6 AC_CACHE_CHECK([whether the target supports __sync_*_compare_and_swap], 6 AC_CACHE_CHECK([whether the target supports __sync_*_compare_and_swap],
7 libgomp_cv_have_sync_builtins, [ 7 libgomp_cv_have_sync_builtins, [
8 AC_TRY_LINK([], [int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);], 8 AC_TRY_LINK([], [int foo; __sync_val_compare_and_swap(&foo, 0, 1);],
9 libgomp_cv_have_sync_builtins=yes, libgomp_cv_have_sync_builtins=no)]) 9 libgomp_cv_have_sync_builtins=yes, libgomp_cv_have_sync_builtins=no)])
10 if test $libgomp_cv_have_sync_builtins = yes; then 10 if test $libgomp_cv_have_sync_builtins = yes; then
11 AC_DEFINE(HAVE_SYNC_BUILTINS, 1, 11 AC_DEFINE(HAVE_SYNC_BUILTINS, 1,
12 [Define to 1 if the target supports __sync_*_compare_and_swap]) 12 [Define to 1 if the target supports __sync_*_compare_and_swap])
13 fi]) 13 fi])