aboutsummaryrefslogtreecommitdiff
path: root/gcc/libgcc2.c
diff options
context:
space:
mode:
authorMike Stump <mrs@gcc.gnu.org>1996-07-23 20:03:47 +0000
committerMike Stump <mrs@gcc.gnu.org>1996-07-23 20:03:47 +0000
commit6adb4e3a29c612cc99a26a54364917e3a1709e8c (patch)
treed1acdc1258bb390e198f2a31596603f8e267eacf /gcc/libgcc2.c
parent3d1953912dca5809d9e37fccd9ee606d5b637dc4 (diff)
downloadgcc-6adb4e3a29c612cc99a26a54364917e3a1709e8c.zip
gcc-6adb4e3a29c612cc99a26a54364917e3a1709e8c.tar.gz
gcc-6adb4e3a29c612cc99a26a54364917e3a1709e8c.tar.bz2
install EH code
From-SVN: r12549
Diffstat (limited to 'gcc/libgcc2.c')
-rw-r--r--gcc/libgcc2.c36
1 files changed, 22 insertions, 14 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c
index 043b431..41801fa 100644
--- a/gcc/libgcc2.c
+++ b/gcc/libgcc2.c
@@ -2989,6 +2989,13 @@ int _exit_dummy_decl = 0; /* prevent compiler & linker warnings */
#endif /* L_exit */
#ifdef L_eh
+
+#ifdef EH_TABLE_LOOKUP
+
+EH_TABLE_LOOKUP
+
+#else
+
typedef struct {
void *start;
void *end;
@@ -3095,21 +3102,9 @@ void *pc;
#endif
#if 0
- printf("find_first_eh_table_match(): else: returning NULL!\n");
-#endif
- return (void*)0;
-}
-
-void *
-__throw_type_match (void *catch_type, void *throw_type, void* obj)
-{
-#if 0
- printf("__throw_type_match (): catch_type = %s, throw_type = %s\n",
- catch_type, throw_type);
+ printf ("find_first_eh_table_match(): else: returning NULL!\n");
#endif
- if (strcmp ((const char *)catch_type, (const char *)throw_type) == 0)
- return obj;
- return 0;
+ return (void *) 0;
}
void
@@ -3140,6 +3135,19 @@ __register_exceptions (exception_table *table)
node->next = exception_table_list;
exception_table_list = node;
}
+#endif
+
+void *
+__throw_type_match (void *catch_type, void *throw_type, void *obj)
+{
+#if 0
+ printf ("__throw_type_match (): catch_type = %s, throw_type = %s\n",
+ catch_type, throw_type);
+#endif
+ if (strcmp ((const char *)catch_type, (const char *)throw_type) == 0)
+ return obj;
+ return 0;
+}
void
__empty ()