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: Adam Megacz <gcj at lists dot megacz dot com>
- To: Krister Walfridsson <cato at df dot lth dot se>
- Cc: Adam Megacz <gcj at lists dot megacz dot com>, tromey at redhat dot com, <java-patches at gcc dot gnu dot org>
- Date: 25 Oct 2002 15:15:39 -0700
- Subject: Re: mingw hash sync patch, take 2
- Organization: Myself
- References: <Pine.GSO.4.44.0210252231480.2303-100000@igloo.df.lth.se>
Looks good to me.
- a
Krister Walfridsson <cato@df.lth.se> writes:
> > 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
>
>
--
"Through your rags I see your vanity" -- Socrates