aboutsummaryrefslogtreecommitdiff
path: root/libitm/eh_cpp.cc
diff options
context:
space:
mode:
authorIain Sandoe <iains@gcc.gnu.org>2011-11-22 14:49:11 +0000
committerIain Sandoe <iains@gcc.gnu.org>2011-11-22 14:49:11 +0000
commit8cf36bb3b8eade04837bea3cc8f7e4cd1eb8904d (patch)
tree2c26188cd406f39ca321e6a5612b5d17b6376b1e /libitm/eh_cpp.cc
parent8fb013576c6fc493f096492e4b10724c83f294d8 (diff)
downloadgcc-8cf36bb3b8eade04837bea3cc8f7e4cd1eb8904d.zip
gcc-8cf36bb3b8eade04837bea3cc8f7e4cd1eb8904d.tar.gz
gcc-8cf36bb3b8eade04837bea3cc8f7e4cd1eb8904d.tar.bz2
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
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 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 */
}