diff options
author | Andrew MacLeod <amacleod@cygnus.com> | 1998-06-24 06:56:37 +0000 |
---|---|---|
committer | Andrew Macleod <amacleod@gcc.gnu.org> | 1998-06-24 06:56:37 +0000 |
commit | 9a9deafcddc321c59ccf987f292c0e2559daab99 (patch) | |
tree | 3bc1b6bec3f01da6910a29e35a786b82e6119695 /gcc | |
parent | e0cb250f7aa6515ec2251b0c6e29e7ba5ed9144c (diff) | |
download | gcc-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')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/except.c | 13 |
2 files changed, 14 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6509e8d..be664b4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 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) |