aboutsummaryrefslogtreecommitdiff
path: root/gcc/except.c
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@cygnus.com>1998-06-24 06:56:37 +0000
committerAndrew Macleod <amacleod@gcc.gnu.org>1998-06-24 06:56:37 +0000
commit9a9deafcddc321c59ccf987f292c0e2559daab99 (patch)
tree3bc1b6bec3f01da6910a29e35a786b82e6119695 /gcc/except.c
parente0cb250f7aa6515ec2251b0c6e29e7ba5ed9144c (diff)
downloadgcc-9a9deafcddc321c59ccf987f292c0e2559daab99.zip
gcc-9a9deafcddc321c59ccf987f292c0e2559daab99.tar.gz
gcc-9a9deafcddc321c59ccf987f292c0e2559daab99.tar.bz2
except.c (start_catch_handler): Do nothing if EH is not on.
Wed Jun 24 09:14:04 EDT 1998 Andrew MacLeod <amacleod@cygnus.com> * except.c (start_catch_handler): Do nothing if EH is not on. From-SVN: r20695
Diffstat (limited to 'gcc/except.c')
-rw-r--r--gcc/except.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/gcc/except.c b/gcc/except.c
index 6ffa920..4c6fd6d 100644
--- a/gcc/except.c
+++ b/gcc/except.c
@@ -1513,9 +1513,16 @@ void
start_catch_handler (rtime)
tree rtime;
{
- rtx handler_label = catchstack.top->entry->exception_handler_label;
- int insn_region_num = CODE_LABEL_NUMBER (handler_label);
- int eh_region_entry = find_func_region (insn_region_num);
+ rtx handler_label;
+ int insn_region_num;
+ int eh_region_entry;
+
+ if (! doing_eh (1))
+ return;
+
+ handler_label = catchstack.top->entry->exception_handler_label;
+ insn_region_num = CODE_LABEL_NUMBER (handler_label);
+ eh_region_entry = find_func_region (insn_region_num);
/* If we've already issued this label, pick a new one */
if (catchstack.top->entry->label_used)