OSDN Git Service

* acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Apr 2010 12:57:43 +0000 (12:57 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Apr 2010 12:57:43 +0000 (12:57 +0000)
not unused bar variable.
* configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158344 138bc75d-0d04-0410-961f-82ee72b054a4

libgomp/ChangeLog
libgomp/acinclude.m4
libgomp/configure

index b0066c9..5534cd6 100644 (file)
@@ -1,3 +1,9 @@
+2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
+
+       * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
+       not unused bar variable.
+       * configure: Regenerate.
+
 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * Makefile.in: Regenerate.
index 9e6b77b..0c671d4 100644 (file)
@@ -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,
index d2018b8..fcd38eb 100755 (executable)
@@ -15952,7 +15952,7 @@ else
 int
 main ()
 {
-int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
+int foo; __sync_val_compare_and_swap(&foo, 0, 1);
   ;
   return 0;
 }