From 5a0fa1de62991de26dd6819a0e67341cf23826c0 Mon Sep 17 00:00:00 2001 From: Brendan Kehoe Date: Sat, 1 Nov 1997 18:38:16 +0000 Subject: [PATCH] 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 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/except.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 78df28f0015..8c88225e6e9 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 cb59774728a..fe8c8265b58 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 */ -- 2.30.2