aboutsummaryrefslogtreecommitdiff
path: root/libitm/config
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2011-11-10 17:15:33 +0000
committerRainer Orth <ro@gcc.gnu.org>2011-11-10 17:15:33 +0000
commit8851b42977a7c8443e59037733f4b134224964e6 (patch)
tree6ddb9d0712828bdab643952423e5c1d07f00faa7 /libitm/config
parentd4b179020b094a0106a96c288e545be220d4a742 (diff)
downloadgcc-8851b42977a7c8443e59037733f4b134224964e6.zip
gcc-8851b42977a7c8443e59037733f4b134224964e6.tar.gz
gcc-8851b42977a7c8443e59037733f4b134224964e6.tar.bz2
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. From-SVN: r181262
Diffstat (limited to 'libitm/config')
-rw-r--r--libitm/config/alpha/sjlj.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/libitm/config/alpha/sjlj.S b/libitm/config/alpha/sjlj.S
index d60a82d..3aa5f06 100644
--- a/libitm/config/alpha/sjlj.S
+++ b/libitm/config/alpha/sjlj.S
@@ -74,7 +74,9 @@ _ITM_beginTransaction:
.align 4
.globl GTM_longjmp
+#ifdef __ELF__
.hidden GTM_longjmp
+#endif
.ent GTM_longjmp
GTM_longjmp:
@@ -105,4 +107,6 @@ GTM_longjmp:
ret
.end GTM_longjmp
+#ifdef __linux__
.section .note.GNU-stack, "", @progbits
+#endif