From: Brendan Kehoe Date: Sat, 1 Nov 1997 18:38:16 +0000 (+0000) Subject: except.c (expand_builtin_throw): Replace remaining use of saved_throw_type with a... X-Git-Tag: releases/egcs-1.0.0~190 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a0fa1de62991de26dd6819a0e67341cf23826c0;p=thirdparty%2Fgcc.git except.c (expand_builtin_throw): Replace remaining use of saved_throw_type with a call to get_eh_type. * except.c (expand_builtin_throw) [!DWARF2_UNWIND_INFO]: Replace remaining use of saved_throw_type with a call to get_eh_type. From-SVN: r16260 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 78df28f00150..8c88225e6e9d 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +1997-11-01 Brendan Kehoe + + * except.c (expand_builtin_throw) [!DWARF2_UNWIND_INFO]: Replace + remaining use of saved_throw_type with a call to get_eh_type. + 1997-10-31 Brendan Kehoe * except.c (push_eh_info): Pass the number of fields - 1 down, not diff --git a/gcc/cp/except.c b/gcc/cp/except.c index cb59774728ac..fe8c8265b580 100644 --- a/gcc/cp/except.c +++ b/gcc/cp/except.c @@ -814,8 +814,9 @@ expand_builtin_throw () /* These two can be frontend specific. If wanted, they can go in expand_throw. */ /* Do we have a valid object we are throwing? */ - emit_cmp_insn (DECL_RTL (saved_throw_type), const0_rtx, EQ, NULL_RTX, - GET_MODE (DECL_RTL (saved_throw_type)), 0, 0); + t = get_eh_type (); + emit_cmp_insn (DECL_RTL (t), const0_rtx, EQ, NULL_RTX, + GET_MODE (DECL_RTL (t)), 0, 0); emit_jump_insn (gen_beq (gotta_call_terminate)); /* search for an exception handler for the saved_pc */