From 8cf36bb3b8eade04837bea3cc8f7e4cd1eb8904d Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Tue, 22 Nov 2011 14:49:11 +0000 Subject: weakref.m4: New file. config: * weakref.m4: New file. libitm: * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF. * alloc_cpp.cc: Generate dummy functions if we don't HAVE_ELF_STYLE_WEAKREF. * eh_cpp.cc: Likewise. * configure: Regenerate. * aclocal.m4: Likewise. * config.h.in: Likewise. * Makefile.in: Likewise. * testsuite/Makefile.in: Likewise. From-SVN: r181618 --- libitm/eh_cpp.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libitm/eh_cpp.cc') diff --git a/libitm/eh_cpp.cc b/libitm/eh_cpp.cc index 7a37862..6f302cd 100644 --- a/libitm/eh_cpp.cc +++ b/libitm/eh_cpp.cc @@ -39,13 +39,13 @@ extern void *__cxa_begin_catch (void *) WEAK; extern void *__cxa_end_catch (void) WEAK; extern void __cxa_tm_cleanup (void *, void *, unsigned int) WEAK; -#ifdef __osf__ /* Really: !HAVE_WEAKDEF */ +#if !defined (HAVE_ELF_STYLE_WEAKREF) 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_tm_cleanup (void *, void *, unsigned int) { return; } -#endif +#endif /* HAVE_ELF_STYLE_WEAKREF */ } -- cgit v1.1