This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Java PATCH: Detect ARM EH


The libjava configure script falls over on arm-*-*eabi targets because
itcannot detect the exception model in use.  ARM uses neither the
usual DWARF2-based model nor the SJLJ model; instead, there is a
separate ARM table-based model, appropximately similar in principle to
the DWARF2-based model.  This patch looks for a function used on that
model, following the spirit of the tests for the other model.

OK to apply?

--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713

2009-02-09  Mark Mitchell  <mark@codesourcery.com>

	* configure.ac: Define enable_sjlj_exceptions
	appropriately under the ARM EH ABI.
	* configure: Regenerated.

Index: libjava/configure.ac
===================================================================
--- libjava/configure.ac	(revision 144027)
+++ libjava/configure.ac	(working copy)
@@ -675,6 +675,9 @@ if AC_TRY_EVAL(ac_compile); then
     enable_sjlj_exceptions=yes
   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
     enable_sjlj_exceptions=no
+  elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
+    # ARM EH ABI.
+    enable_sjlj_exceptions=no
   fi
 fi
 CXXFLAGS="$old_CXXFLAGS"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]