diff options
author | Andreas Krebbel <krebbel1@de.ibm.com> | 2005-06-28 14:19:42 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@gcc.gnu.org> | 2005-06-28 14:19:42 +0000 |
commit | 16c5f6e109be9db9ae199094b3c18086005a1100 (patch) | |
tree | 39386f2acb6f865fcb0f0b7b01b8586ee5eb605f /gcc | |
parent | 8234b3bdf8257852544dcc24812532d2ebf00df5 (diff) | |
download | gcc-16c5f6e109be9db9ae199094b3c18086005a1100.zip gcc-16c5f6e109be9db9ae199094b3c18086005a1100.tar.gz gcc-16c5f6e109be9db9ae199094b3c18086005a1100.tar.bz2 |
except.c (current_function_has_exception_handlers): Function description added and if statements merged.
2005-06-28 Andreas Krebbel <krebbel1@de.ibm.com>
* except.c (current_function_has_exception_handlers): Function
description added and if statements merged.
From-SVN: r101380
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/except.c | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9626f83..5d32c3d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-06-28 Andreas Krebbel <krebbel1@de.ibm.com> + + * except.c (current_function_has_exception_handlers): Function + description added and if statements merged. + 2005-06-28 Richard Henderson <rth@redhat.com> * config/i386/sse.md (smaxv16qi3): Fix buffer overflow. diff --git a/gcc/except.c b/gcc/except.c index 03a80f2..3c42910 100644 --- a/gcc/except.c +++ b/gcc/except.c @@ -826,6 +826,8 @@ find_exception_handler_labels (void) add_ehl_entry (return_label, NULL); } +/* Returns true if the current function has exception handling regions. */ + bool current_function_has_exception_handlers (void) { @@ -835,9 +837,9 @@ current_function_has_exception_handlers (void) { struct eh_region *region = cfun->eh->region_array[i]; - if (! region || region->region_number != i) - continue; - if (region->type != ERT_THROW) + if (region + && region->region_number == i + && region->type != ERT_THROW) return true; } |