This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Java PATCH: Detect ARM EH
- From: mitchell at codesourcery dot com (Mark Mitchell)
- To: java-patches at gcc dot gnu dot org
- Date: Mon, 9 Feb 2009 14:42:00 -0800 (PST)
- Subject: Java PATCH: Detect ARM EH
- Reply-to: mark at codesourcery dot com
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"