Use __sync_bool_compare_and_swap in x86 locks.h.
authorH.J. Lu <hongjiu.lu@intel.com>
Tue, 31 May 2011 11:53:34 +0000 (11:53 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Tue, 31 May 2011 11:53:34 +0000 (04:53 -0700)
commit755b3b7cf7c635a5c766400865c2bfa52d6aa16d
treea7e67035fdec4a3fe4aa5320fcddb6ecacc5b568
parent2e87621cb04e341cd1d10f45ae62b5310393e08e
Use __sync_bool_compare_and_swap in x86 locks.h.

2011-05-31  H.J. Lu  <hongjiu.lu@intel.com>

PR libgcj/49193
* configure.host (sysdeps_dir): Set to i386 for x86_64.

* sysdep/i386/locks.h (compare_and_swap): Call
__sync_bool_compare_and_swap.
(release_set): Call write_barrier ().

* sysdep/x86-64/locks.h: Removed.

From-SVN: r174471
libjava/ChangeLog
libjava/configure.host
libjava/sysdep/i386/locks.h
libjava/sysdep/x86-64/locks.h [deleted file]