diff options
author | Iain Sandoe <iains@gcc.gnu.org> | 2011-11-22 14:49:11 +0000 |
---|---|---|
committer | Iain Sandoe <iains@gcc.gnu.org> | 2011-11-22 14:49:11 +0000 |
commit | 8cf36bb3b8eade04837bea3cc8f7e4cd1eb8904d (patch) | |
tree | 2c26188cd406f39ca321e6a5612b5d17b6376b1e /libitm/alloc_cpp.cc | |
parent | 8fb013576c6fc493f096492e4b10724c83f294d8 (diff) | |
download | gcc-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/alloc_cpp.cc')
-rw-r--r-- | libitm/alloc_cpp.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libitm/alloc_cpp.cc b/libitm/alloc_cpp.cc index d298bd4..0789b2e 100644 --- a/libitm/alloc_cpp.cc +++ b/libitm/alloc_cpp.cc @@ -60,7 +60,7 @@ extern void _ZdlPvRKSt9nothrow_t (void *, c_nothrow_p) __attribute__((weak)); extern void *_ZnaXRKSt9nothrow_t (size_t, c_nothrow_p) __attribute__((weak)); extern void _ZdaPvRKSt9nothrow_t (void *, c_nothrow_p) __attribute__((weak)); -#ifdef __osf__ /* Really: !HAVE_WEAKDEF */ +#if !defined (HAVE_ELF_STYLE_WEAKREF) void *_ZnwX (size_t) { return NULL; } void _ZdlPv (void *) { return; } void *_ZnaX (size_t) { return NULL; } @@ -70,7 +70,7 @@ void *_ZnwXRKSt9nothrow_t (size_t, c_nothrow_p) { return NULL; } void _ZdlPvRKSt9nothrow_t (void *, c_nothrow_p) { return; } void *_ZnaXRKSt9nothrow_t (size_t, c_nothrow_p) { return NULL; } void _ZdaPvRKSt9nothrow_t (void *, c_nothrow_p) { return; } -#endif /* __osf__ */ +#endif /* HAVE_ELF_STYLE_WEAKREF */ /* Wrap the delete nothrow symbols for usage with a single argument. Perhaps should have a configure type check for this, because the |