This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: mingw hash sync patch, take 2
- From: Krister Walfridsson <cato at df dot lth dot se>
- To: Adam Megacz <gcj at lists dot megacz dot com>
- Cc: tromey at redhat dot com, <java-patches at gcc dot gnu dot org>
- Date: Fri, 25 Oct 2002 22:34:03 +0200 (MEST)
- Subject: Re: mingw hash sync patch, take 2
> 2002-10-20 Adam Megacz <adam@xwt.org>
>
> * configure.in: enabled hash sync on Win32
The patch did more than that; it enabled hash sync for non-threaded
targets too. I assume that was not intended? It prevents
i386-unknown-netbsdelf1.6 from bootstrapping.
The patch below disables hash sync when not using threads.
Bootstrapped and regtested on i386-unknown-netbsdelf1.6.
OK to commit?
/Krister
2002-10-25 Krister Walfridsson <cato@df.lth.se>
* configure.in: Disable hash sync when not using threads.
* configure: Regenerated.
Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/libjava/configure.in,v
retrieving revision 1.141
diff -c -3 -r1.141 configure.in
*** configure.in 21 Oct 2002 01:50:13 -0000 1.141
--- configure.in 25 Oct 2002 20:22:26 -0000
***************
*** 445,451 ****
HASH_SYNC_SPEC=
# Hash synchronization is only useful with posix threads right now.
! if test "$enable_hash_synchronization" = yes; then
HASH_SYNC_SPEC=-fhash-synchronization
AC_DEFINE(JV_HASH_SYNCHRONIZATION, 1, [Define if hash synchronization is in use])
fi
--- 445,451 ----
HASH_SYNC_SPEC=
# Hash synchronization is only useful with posix threads right now.
! if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
HASH_SYNC_SPEC=-fhash-synchronization
AC_DEFINE(JV_HASH_SYNCHRONIZATION, 1, [Define if hash synchronization is in use])
fi