diff options
author | Mike Stump <mrs@gcc.gnu.org> | 1995-03-30 00:10:54 +0000 |
---|---|---|
committer | Mike Stump <mrs@gcc.gnu.org> | 1995-03-30 00:10:54 +0000 |
commit | e46540c368f6415b0e4337753dd908b658680b27 (patch) | |
tree | 7746301d28b13f016ee3720d5295761f5f516913 /gcc/libgcc2.c | |
parent | e8601ecbcb174e3b981248f6c955758c2e7075a3 (diff) | |
download | gcc-e46540c368f6415b0e4337753dd908b658680b27.zip gcc-e46540c368f6415b0e4337753dd908b658680b27.tar.gz gcc-e46540c368f6415b0e4337753dd908b658680b27.tar.bz2 |
* libgcc2.c (__throw_type_match): Update to use new calling convention.
From-SVN: r9254
Diffstat (limited to 'gcc/libgcc2.c')
-rw-r--r-- | gcc/libgcc2.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index bd33d1c..6ddaf9d 100644 --- a/gcc/libgcc2.c +++ b/gcc/libgcc2.c @@ -2224,14 +2224,16 @@ void *pc; return (void*)0; } -int -__throw_type_match (const char *catch_type, const char *throw_type) +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 - return strcmp (catch_type, throw_type); + if (strcmp ((const char *)catch_type, (const char *)throw_type) == 0) + return obj; + return 0; } void |