From b2b188b5ec7ec58052788e7c81cee835e589e56d Mon Sep 17 00:00:00 2001 From: rth Date: Wed, 2 Apr 2003 07:08:16 +0000 Subject: * except.c (convert_from_eh_region_ranges_1): Smash REG_EH_REGION notes for nothrow calls if flag_forced_unwind_exceptions. (build_post_landing_pads): Mind flag_forced_unwind_exceptions. (sjlj_find_directly_reachable_regions): Likewise. (reachable_handlers): Likewise. (can_throw_external): Likewise. (collect_one_action_chain): Record cleanups after catch-all and must-not-throw if flag_forced_unwind_exceptions. * flags.h (flag_forced_unwind_exceptions): Declare. * toplev.c (flag_forced_unwind_exceptions): New. (lang_independent_options): Add it. * doc/invoke.text: Add it. * g++.dg/eh/forced1.C: New. * g++.dg/eh/forced2.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65158 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/flags.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/flags.h') diff --git a/gcc/flags.h b/gcc/flags.h index aed3386f4c8..88ed465e010 100644 --- a/gcc/flags.h +++ b/gcc/flags.h @@ -476,6 +476,10 @@ extern int flag_unwind_tables; extern int flag_asynchronous_unwind_tables; +/* Nonzero means allow for forced unwinding. */ + +extern int flag_forced_unwind_exceptions; + /* Nonzero means don't place uninitialized global data in common storage by default. */ -- cgit v1.2.1