From: Andrew MacLeod Date: Wed, 24 Jun 1998 06:56:37 +0000 (+0000) Subject: except.c (start_catch_handler): Do nothing if EH is not on. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a9deafcddc321c59ccf987f292c0e2559daab99;p=gcc.git except.c (start_catch_handler): Do nothing if EH is not on. Wed Jun 24 09:14:04 EDT 1998 Andrew MacLeod * except.c (start_catch_handler): Do nothing if EH is not on. From-SVN: r20695 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6509e8d0bad..be664b44b4a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Wed Jun 24 09:14:04 EDT 1998 Andrew MacLeod + + * except.c (start_catch_handler): Do nothing if EH is not on. + 1998-06-24 Manfred Hollstein * configure.in (gxx_include_dir): Initialize default value depending on diff --git a/gcc/except.c b/gcc/except.c index 6ffa9203867..4c6fd6dfb1f 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)