summaryrefslogtreecommitdiff
path: root/libitm/alloc_cpp.cc
diff options
context:
space:
mode:
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2011-11-10 17:15:33 +0000
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2011-11-10 17:15:33 +0000
commite53a96c2136f7cdff4699475fea41afeed9dece3 (patch)
tree6ddb9d0712828bdab643952423e5c1d07f00faa7 /libitm/alloc_cpp.cc
parentb8190fde2cd04078f8448576fb021060526b51d5 (diff)
downloadgcc-e53a96c2136f7cdff4699475fea41afeed9dece3.tar.gz
libitm port to Tru64 UNIX
* config/alpha/sjlj.S (_ITM_beginTransaction) [!__ELF__]: Don't use .hidden. (.note.GNU-stack): Only use if __linux__. * alloc_cpp.cc [!__osf__] (_ZnaXRKSt9nothrow_t): Dummy function. * testsuite/libitm.c/notx.c: Use dg-options "-pthread". * testsuite/libitm.c/reentrant.c: Likewise. * testsuite/libitm.c/simple-2.c: Likewise. * testsuite/libitm.c/txrelease.c: Likewise. * testsuite/libitm.c++/static_ctor.C: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181262 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libitm/alloc_cpp.cc')
-rw-r--r--libitm/alloc_cpp.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/libitm/alloc_cpp.cc b/libitm/alloc_cpp.cc
index 59d8b7374eb..4e535513cd5 100644
--- a/libitm/alloc_cpp.cc
+++ b/libitm/alloc_cpp.cc
@@ -60,6 +60,14 @@ 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 */
+void *
+_ZnaXRKSt9nothrow_t (size_t, c_nothrow_p)
+{
+ return NULL;
+}
+#endif /* __osf__ */
+
/* Wrap the delete nothrow symbols for usage with a single argument.
Perhaps should have a configure type check for this, because the
std::nothrow_t reference argument is unused (empty class), and most