OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dd3f89
)
* libgcc2.c (__register_exceptions): Handle empty tables.
author
mrs
<mrs@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 18 Mar 1995 02:31:09 +0000
(
02:31
+0000)
committer
mrs
<mrs@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 18 Mar 1995 02:31:09 +0000
(
02:31
+0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9200
138bc75d
-0d04-0410-961f-
82ee72b054a4
gcc/libgcc2.c
patch
|
blob
|
history
diff --git
a/gcc/libgcc2.c
b/gcc/libgcc2.c
index
6846dfc
..
bd33d1c
100644
(file)
--- a/
gcc/libgcc2.c
+++ b/
gcc/libgcc2.c
@@
-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