From b52a90a73903c31a0ee6423fa3db6d6afdf780af Mon Sep 17 00:00:00 2001 From: law Date: Thu, 17 May 2001 17:53:52 +0000 Subject: [PATCH] * except.c (sjlj_emit_function_enter): Call assemble_external_libcall for eh_personality_libfunc. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42216 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/except.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f021be5..a50be8d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Thu May 17 11:54:50 2001 Jeffrey A Law (law@cygnus.com) + + * except.c (sjlj_emit_function_enter): Call assemble_external_libcall + for eh_personality_libfunc. + Thu May 17 19:48:00 CEST 2001 Jan Hubicka * recog.c (validate_replace_rtx_1): Use "TO" mode if not VOIDmode diff --git a/gcc/except.c b/gcc/except.c index b777136..35d76cb 100644 --- a/gcc/except.c +++ b/gcc/except.c @@ -2139,6 +2139,10 @@ sjlj_emit_function_enter (dispatch_label) start_sequence (); + /* We're storing this libcall's address into memory instead of + calling it directly. Thus, we must call assemble_external_libcall + here, as we can not depend on emit_library_call to do it for us. */ + assemble_external_libcall (eh_personality_libfunc); mem = change_address (fc, Pmode, plus_constant (XEXP (fc, 0), sjlj_fc_personality_ofs)); emit_move_insn (mem, eh_personality_libfunc); -- 2.7.4