This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
RE: Cygwin and hash synchronization?
- From: "Billinghurst, David (CRTS)" <David dot Billinghurst at riotinto dot com>
- To: "Bryce McKinlay" <bryce at waitaki dot otago dot ac dot nz>,<java at gcc dot gnu dot org>
- Date: Mon, 10 Jun 2002 10:47:56 +1000
- Subject: RE: Cygwin and hash synchronization?
I have now tested this patch on trunk with cygwin. It seems to work.
Given that it is a target-specific one-liner I'd like to see it checked
in. We can always remove it later.
Without this patch, I need to recompile binutils to increase the object
alignment to avoid the assertion "!(addr & FLAGS)" failed error.
With this patch I can build libjava with the standard cygwin binutils
and I get identical testsuite results to first case.
The mingw linker doesn't have this problem as it has increased
alignment to eight bytes.
-----Original Message-----
From: Bryce McKinlay [mailto:bryce@waitaki.otago.ac.nz]
Sent: Thursday, 30 May 2002 1:21
To: java@gcc.gnu.org
Subject: Cygwin and hash synchronization?
So, does hash synchronization work on cygwin or not? I seem to remember
someone saying the cygwin binutils doesn't support alignment of static
data correctly, which would be consistent with this report:
http://gcc.gnu.org/ml/gcc/2002-05/msg02665.html
And what about mingw? Does the linker for mingw not suffer from this
problem?
Basically I just want to know if this patch should be applied, although
Hans has said he might be able to work around the alignment dependency
in the synchronization code so it might not be a problem for 3.2.
regards
Bryce.
2002-05-29 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* configure.host: Disable hash synchronization and slow_pthread_self
for cygwin.
Index: configure.host
===================================================================
RCS file: /cvs/gcc/gcc/libjava/configure.host,v
retrieving revision 1.32
diff -u -r1.32 configure.host
--- configure.host 21 Apr 2002 09:37:48 -0000 1.32
+++ configure.host 29 May 2002 01:39:12 -0000
@@ -136,6 +136,10 @@
*-*-freebsd*)
slow_pthread_self=
;;
+ *-cygwin*)
+ enable_hash_synchronization_default=no
+ slow_pthread_self=
+ ;;
esac
libgcj_cflags="${libgcj_cflags} ${libgcj_flags}"
------------------------------------------------------------------------