X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=libgomp%2Facinclude.m4;h=0c671d4eb74bc2e9490bfcb6b2ece314c4a1aab8;hp=9e6b77b247afcba3aa576601c705df24d227cc50;hb=f730f36c4c1fe1dfc04e0a8a627fb3374276d2be;hpb=8b501d3673e09b8e79f3492d13f417b2fba1daa6 diff --git a/libgomp/acinclude.m4 b/libgomp/acinclude.m4 index 9e6b77b247a..0c671d4eb74 100644 --- a/libgomp/acinclude.m4 +++ b/libgomp/acinclude.m4 @@ -5,7 +5,7 @@ dnl Check whether the target supports __sync_*_compare_and_swap. AC_DEFUN([LIBGOMP_CHECK_SYNC_BUILTINS], [ AC_CACHE_CHECK([whether the target supports __sync_*_compare_and_swap], libgomp_cv_have_sync_builtins, [ - AC_TRY_LINK([], [int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);], + AC_TRY_LINK([], [int foo; __sync_val_compare_and_swap(&foo, 0, 1);], libgomp_cv_have_sync_builtins=yes, libgomp_cv_have_sync_builtins=no)]) if test $libgomp_cv_have_sync_builtins = yes; then AC_DEFINE(HAVE_SYNC_BUILTINS, 1,