From 16c5f6e109be9db9ae199094b3c18086005a1100 Mon Sep 17 00:00:00 2001 From: Andreas Krebbel Date: Tue, 28 Jun 2005 14:19:42 +0000 Subject: [PATCH] except.c (current_function_has_exception_handlers): Function description added and if statements merged. 2005-06-28 Andreas Krebbel * except.c (current_function_has_exception_handlers): Function description added and if statements merged. From-SVN: r101380 --- gcc/ChangeLog | 5 +++++ gcc/except.c | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9626f839530..5d32c3d8ef7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-06-28 Andreas Krebbel + + * except.c (current_function_has_exception_handlers): Function + description added and if statements merged. + 2005-06-28 Richard Henderson * config/i386/sse.md (smaxv16qi3): Fix buffer overflow. diff --git a/gcc/except.c b/gcc/except.c index 03a80f22656..3c4291019e0 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; }