decl.c (java_init_decl_processing): Call "__cxa_end_cleanup" when using the ARM EABI.

2007-09-04  Andrew Haley  <aph@redhat.com>

        * decl.c (java_init_decl_processing): Call "__cxa_end_cleanup"
        when using the ARM EABI.

From-SVN: r128086
This commit is contained in:
Andrew Haley 2007-09-04 15:03:54 +00:00 committed by Andrew Haley
parent 99a8d35b47
commit 29741d6ae5
2 changed files with 9 additions and 1 deletions

View 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.

View 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;