OSDN Git Service

2007-09-04 Andrew Haley <aph@redhat.com>
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 4 Sep 2007 15:03:54 +0000 (15:03 +0000)
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 4 Sep 2007 15:03:54 +0000 (15:03 +0000)
        * decl.c (java_init_decl_processing): Call "__cxa_end_cleanup"
        when using the ARM EABI.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128086 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/java/ChangeLog
gcc/java/decl.c

index 0adcbdb..6e27bb3 100644 (file)
@@ -1,3 +1,8 @@
+2007-09-04  Andrew Haley  <aph@redhat.com>
+
+       * decl.c (java_init_decl_processing): Call "__cxa_end_cleanup"
+       when using the ARM EABI.
+
 2007-09-03  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * Make-lang.in (jvspec.o): Remove SHLIB_MULTILIB.
index 8a6b014..5340617 100644 (file)
@@ -1075,7 +1075,10 @@ java_init_decl_processing (void)
   eh_personality_libfunc = init_one_libfunc (USING_SJLJ_EXCEPTIONS
                                              ? "__gcj_personality_sj0"
                                              : "__gcj_personality_v0");
-  default_init_unwind_resume_libfunc ();
+  if (targetm.arm_eabi_unwinder)
+    unwind_resume_libfunc = init_one_libfunc ("__cxa_end_cleanup");
+  else
+    default_init_unwind_resume_libfunc ();
 
   lang_eh_runtime_type = do_nothing;