Commit 16c5f6e1 by Andreas Krebbel Committed by Ulrich Weigand

except.c (current_function_has_exception_handlers): Function description added…

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
parent 8234b3bd
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> 2005-06-28 Richard Henderson <rth@redhat.com>
* config/i386/sse.md (smaxv16qi3): Fix buffer overflow. * config/i386/sse.md (smaxv16qi3): Fix buffer overflow.
......
...@@ -826,6 +826,8 @@ find_exception_handler_labels (void) ...@@ -826,6 +826,8 @@ find_exception_handler_labels (void)
add_ehl_entry (return_label, NULL); add_ehl_entry (return_label, NULL);
} }
/* Returns true if the current function has exception handling regions. */
bool bool
current_function_has_exception_handlers (void) current_function_has_exception_handlers (void)
{ {
...@@ -835,9 +837,9 @@ 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]; struct eh_region *region = cfun->eh->region_array[i];
if (! region || region->region_number != i) if (region
continue; && region->region_number == i
if (region->type != ERT_THROW) && region->type != ERT_THROW)
return true; return true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment