aboutsummaryrefslogtreecommitdiff
path: root/gcc/except.c
diff options
context:
space:
mode:
authorJason Merrill <jason@yorick.cygnus.com>1997-12-12 05:15:30 +0000
committerJason Merrill <jason@gcc.gnu.org>1997-12-12 00:15:30 -0500
commit0776059ee03d0974e3f953917ceffc2ea4681a14 (patch)
tree15fddd8589e7b848e33c703a1eea6abf0f98396c /gcc/except.c
parentc404fea2260f6bd4eacecdcf3642da6fd67dae89 (diff)
downloadgcc-0776059ee03d0974e3f953917ceffc2ea4681a14.zip
gcc-0776059ee03d0974e3f953917ceffc2ea4681a14.tar.gz
gcc-0776059ee03d0974e3f953917ceffc2ea4681a14.tar.bz2
except.c (use_eh_context): Don't copy_rtx a REG.
* except.c (use_eh_context): Don't copy_rtx a REG. (emit_throw): Lose old unwinder support. (expand_internal_throw): Likewise. * libgcc2.c (struct eh_context): Likewise. (new_eh_context): Likewise. (__get_eh_info): Lose redundant cast. (__get_dynamic_handler_chain): Likewise. (__get_saved_pc): Lose. Lose all old unwinder support code. * decl2.c (finish_file): Lose call to expand_builtin_throw. * except.c (expand_builtin_throw): Remove. * cp-tree.h: Remove ptr_ptr_type_node. * decl.c: Likewise. From-SVN: r17054
Diffstat (limited to 'gcc/except.c')
-rw-r--r--gcc/except.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/gcc/except.c b/gcc/except.c
index 11c3be8..6853859 100644
--- a/gcc/except.c
+++ b/gcc/except.c
@@ -774,12 +774,12 @@ use_eh_context ()
insn = gen_rtx (USE,
GET_MODE (current_function_ehc),
- copy_rtx (current_function_ehc));
+ current_function_ehc);
insn = emit_insn_before (insn, get_first_nonparm_insn ());
REG_NOTES (insn)
= gen_rtx (EXPR_LIST,
- REG_EH_CONTEXT, copy_rtx (current_function_ehc),
+ REG_EH_CONTEXT, current_function_ehc,
REG_NOTES (insn));
}
return current_function_ehc;
@@ -1272,10 +1272,6 @@ emit_throw ()
#ifdef JUMP_TO_THROW
emit_indirect_jump (throw_libfunc);
#else
-#ifndef DWARF2_UNWIND_INFO
- /* Prevent assemble_external from doing anything with this symbol. */
- SYMBOL_REF_USED (throw_libfunc) = 1;
-#endif
emit_library_call (throw_libfunc, 0, VOIDmode, 0);
#endif
throw_used = 1;
@@ -1289,15 +1285,6 @@ emit_throw ()
void
expand_internal_throw ()
{
-#ifndef DWARF2_UNWIND_INFO
- if (! exceptions_via_longjmp)
- {
- rtx label = gen_label_rtx ();
- emit_label (label);
- label = gen_rtx (LABEL_REF, Pmode, label);
- emit_move_insn (get_saved_pc_ref (), label);
- }
-#endif
emit_throw ();
}