except.c (start_catch_handler): Do nothing if EH is not on.
authorAndrew MacLeod <amacleod@cygnus.com>
Wed, 24 Jun 1998 06:56:37 +0000 (06:56 +0000)
committerAndrew Macleod <amacleod@gcc.gnu.org>
Wed, 24 Jun 1998 06:56:37 +0000 (06:56 +0000)
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

gcc/ChangeLog
gcc/except.c

index 6509e8d0bad93e8ca1082b347cfe39d987b1ab81..be664b44b4a2c2efcddb10e8e34a0ca69b44ff0f 100644 (file)
@@ -1,3 +1,7 @@
+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.
+
 1998-06-24  Manfred Hollstein  <manfred@s-direktnet.de>
 
        * configure.in (gxx_include_dir): Initialize default value depending on
index 6ffa92038676a72c108c18793563c9b2bf0b1295..4c6fd6dfb1f910140ae5d23cfd5c460c8266a40c 100644 (file)
@@ -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)