From 74ecde5dfc4aecb625675c961de2fde54f313d0d Mon Sep 17 00:00:00 2001
From: tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Sun, 27 Jul 2003 04:11:55 +0000
Subject: [PATCH] 2003-07-26  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).


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69843 138bc75d-0d04-0410-961f-82ee72b054a4
---
 libjava/ChangeLog      | 5 +++++
 libjava/configure.host | 7 +++++++
 2 files changed, 12 insertions(+)

diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index ef301dc8cc6a..d5ebd57b4e5a 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,5 +1,10 @@
 2003-07-26  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).
+
 	* win32.cc (_Jv_platform_initProperties): Use generic names
 	like "x86" for the "os.arch" property to be consistent with
 	what Sun's JDK produces. Use the wProcessorArchitecture
diff --git a/libjava/configure.host b/libjava/configure.host
index 1e2183184e4e..91b529b2cd0f 100644
--- a/libjava/configure.host
+++ b/libjava/configure.host
@@ -222,6 +222,13 @@ EOF
   *-*-freebsd*)
 	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
 	# disable hash synchronization for now.
-- 
GitLab