This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Small example of livelock regression in garbage collector forGCJ 3.3 under Win32
- From: Ranjit Mathew <rmathew at hotmail dot com>
- To: java-patches at gcc dot gnu dot org
- Cc: java at gcc dot gnu dot org
- Date: Wed, 21 May 2003 23:56:34 +0530
- Subject: Re: Small example of livelock regression in garbage collector forGCJ 3.3 under Win32
- References: <16074.27934.715273.274532@cuddles.redhat.com> <SM74YVOKA5YV9XTQO1VOIA3Y2YFCOM.3eca896b@p733> <3ECB0D18.8000709@hotmail.com> <16075.19193.792072.251418@cuddles.redhat.com>
> > >>You need -fuse-divide-subroutine and -fcheck-references. Ranjit ahd a
> > >>look at using Windows' structured exception handling to cope with
> > >>these problems, but I don't think that it's done yet.
> >
> > Andrew, if I understand this correctly, you are suggesting that
> > we use these options for the time being till such a time
> > that we can fix the SEH stuff.
> >
> > These will make things a bit slower, but keep it correct:
> >
> > http://gcc.gnu.org/onlinedocs/gcj/Configure-time-Options.html
> >
> > Right?
>
> Indeed. It looks to me like mingw picks up the configure options from
> i686-*. We need to make this a little more finely grained with a
> separate entry for Linux and mingw.
[...]
> Please also submit a patch for configure.host that does the right thing.
>
> Andrew.
How does the following look (tested only on Win98 so far)? It's
against 3.3 sources:
Index: ChangeLog
from Ranjit Mathew <rmathew@hotmail.com>
* configure.host: Use -fcheck-references and
-fuse-divide-subroutine for MinGW until we fix
win32_exception_handler( ) in win32.cc w.r.t. Win32
Structured Exception Handling (SEH).
Index: configure.host
===================================================================
--- configure.host 2003-05-21 19:52:07.000000000 +0530
+++ configure.host 2003-05-21 22:39:40.000000000 +0530
@@ -175,4 +175,11 @@
slow_pthread_self=
;;
+ *-mingw*)
+ # FIXME: win32_exception_handler( ) in win32.cc does not do the
+ # right stuff yet w.r.t. SEH. Live with the following for now.
+ can_unwind_signal=no
+ CHECKREFSPEC=-fcheck-references
+ DIVIDESPEC=-fuse-divide-subroutine
+ ;;
*-cygwin*)
# The cygwin linker doesn't do 8-byte alignment by default, so