diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-10 17:15:33 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-10 17:15:33 +0000 |
commit | e53a96c2136f7cdff4699475fea41afeed9dece3 (patch) | |
tree | 6ddb9d0712828bdab643952423e5c1d07f00faa7 /libitm/alloc_cpp.cc | |
parent | b8190fde2cd04078f8448576fb021060526b51d5 (diff) | |
download | gcc-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.cc | 8 |
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 |