mingw hash sync patch, take 2

Adam Megacz gcj@lists.megacz.com
Fri Oct 25 15:14:00 GMT 2002


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



More information about the Java-patches mailing list