diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2010-04-14 14:57:43 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2010-04-14 14:57:43 +0200 |
commit | 289a9f867a78d0c928eed2d9793964b9c7272022 (patch) | |
tree | 46cd8d1ce469454b6874a0ef50ba2a32889f1046 | |
parent | 8406cb626054654856b14d9684d3a4919bfec546 (diff) | |
download | gcc-289a9f867a78d0c928eed2d9793964b9c7272022.zip gcc-289a9f867a78d0c928eed2d9793964b9c7272022.tar.gz gcc-289a9f867a78d0c928eed2d9793964b9c7272022.tar.bz2 |
acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but not unused bar variable.
* acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
not unused bar variable.
* configure: Regenerate.
From-SVN: r158344
-rw-r--r-- | libgomp/ChangeLog | 6 | ||||
-rw-r--r-- | libgomp/acinclude.m4 | 2 | ||||
-rwxr-xr-x | libgomp/configure | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index b0066c9..5534cd6 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -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. diff --git a/libgomp/acinclude.m4 b/libgomp/acinclude.m4 index 9e6b77b..0c671d4 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, diff --git a/libgomp/configure b/libgomp/configure index d2018b8..fcd38eb 100755 --- a/libgomp/configure +++ b/libgomp/configure @@ -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; } |