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
This commit is contained in:
Andreas Krebbel 2005-06-28 14:19:42 +00:00 committed by Ulrich Weigand
parent 8234b3bdf8
commit 16c5f6e109
2 changed files with 10 additions and 3 deletions

View file

@ -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.

View file

@ -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;
}