summaryrefslogtreecommitdiff
path: root/libitm/eh_cpp.cc
diff options
context:
space:
mode:
authorPatrick Marlier <patrick.marlier@gmail.com>2012-05-21 22:48:00 +0000
committerPatrick Marlier <pmarlier@gcc.gnu.org>2012-05-21 22:48:00 +0000
commitf2f9a0977a9ea978a3bee7507bafa8d26445119d (patch)
tree947643df0c37d9581dbc9d0eb183eada4ef952b5 /libitm/eh_cpp.cc
parent041f2072200cfe6445d57868a412a17a3d006e04 (diff)
downloadgcc-f2f9a0977a9ea978a3bee7507bafa8d26445119d.tar.gz
eh_cpp.cc: Fix __cxa_end_catch declaration.
2012-05-21 Patrick Marlier <patrick.marlier@gmail.com> * eh_cpp.cc: Fix __cxa_end_catch declaration. From-SVN: r187747
Diffstat (limited to 'libitm/eh_cpp.cc')
-rw-r--r--libitm/eh_cpp.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libitm/eh_cpp.cc b/libitm/eh_cpp.cc
index 5c4ca284359..27e38542d43 100644
--- a/libitm/eh_cpp.cc
+++ b/libitm/eh_cpp.cc
@@ -36,14 +36,14 @@ extern "C" {
extern void *__cxa_allocate_exception (size_t) WEAK;
extern void __cxa_throw (void *, void *, void *) WEAK;
extern void *__cxa_begin_catch (void *) WEAK;
-extern void *__cxa_end_catch (void) WEAK;
+extern void __cxa_end_catch (void) WEAK;
extern void __cxa_tm_cleanup (void *, void *, unsigned int) WEAK;
#if !defined (HAVE_ELF_STYLE_WEAKREF) && !defined (__MACH__)
void *__cxa_allocate_exception (size_t) { return NULL; }
void __cxa_throw (void *, void *, void *) { return; }
void *__cxa_begin_catch (void *) { return NULL; }
-void *__cxa_end_catch (void) { return NULL; }
+void __cxa_end_catch (void) { return; }
void __cxa_tm_cleanup (void *, void *, unsigned int) { return; }
void _Unwind_DeleteException (_Unwind_Exception *) { return; }
#endif /* HAVE_ELF_STYLE_WEAKREF */