Commit 47c0d9de by Mike Stump

* libgcc2.c (__register_exceptions): Handle empty tables.

From-SVN: r9200
parent 0ea6b275
......@@ -2237,9 +2237,14 @@ __throw_type_match (const char *catch_type, const char *throw_type)
void
__register_exceptions (exception_table *table)
{
struct exception_table_node *node = (struct exception_table_node*)
malloc (sizeof (struct exception_table_node));
struct exception_table_node *node;
exception_table *range = table + 1;
if (range->start == (void*)-1)
return;
node = (struct exception_table_node*)
malloc (sizeof (struct exception_table_node));
node->table = table;
/* This look can be optimized away either if the table
......
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