diff options
author | Richard Henderson <rth@redhat.com> | 2016-01-20 10:53:56 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2016-01-20 10:53:56 -0800 |
commit | b1de98e3d9e015c9260f44a8474001d822a0304d (patch) | |
tree | ee02bbe4cd51bf787e15f581e6326d4124f85230 /libitm/config | |
parent | 7e10bcfa3c30f11136b60b5f6d25acb17afdd57f (diff) | |
download | gcc-b1de98e3d9e015c9260f44a8474001d822a0304d.zip gcc-b1de98e3d9e015c9260f44a8474001d822a0304d.tar.gz gcc-b1de98e3d9e015c9260f44a8474001d822a0304d.tar.bz2 |
re PR target/69343 (Bootstrap failure on s390{,x}-linux)
PR bootstrap/69343
PR bootstrap/69339
PR tree-opt/68964
Revert:
gcc/
* tree.c (tm_define_builtin): New.
(find_tm_vector_type): New.
(build_tm_vector_builtins): New.
(build_common_builtin_nodes): Call it.
libitm/
* Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
(libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
(libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
(libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
* configure.ac (ARCH_AARCH64): New conditional.
(ARCH_PPC, ARCH_S390): Likewise.
* Makefile.in, configure: Rebuild.
* libitm.h (_ITM_TYPE_M128): Always define.
* vect64.cc: Split ...
* vect128.cc: ... out of...
* config/x86/x86_sse.cc: ... here.
* config/arm/neon.cc: New file.
From-SVN: r232631
Diffstat (limited to 'libitm/config')
-rw-r--r-- | libitm/config/arm/neon.cc | 3 | ||||
-rw-r--r-- | libitm/config/x86/x86_sse.cc | 43 |
2 files changed, 43 insertions, 3 deletions
diff --git a/libitm/config/arm/neon.cc b/libitm/config/arm/neon.cc deleted file mode 100644 index a9c3074..0000000 --- a/libitm/config/arm/neon.cc +++ /dev/null @@ -1,3 +0,0 @@ -#ifdef __ARM_NEON -#include <vect128.cc> -#endif diff --git a/libitm/config/x86/x86_sse.cc b/libitm/config/x86/x86_sse.cc new file mode 100644 index 0000000..c3b7237 --- /dev/null +++ b/libitm/config/x86/x86_sse.cc @@ -0,0 +1,43 @@ +/* Copyright (C) 2009-2016 Free Software Foundation, Inc. + Contributed by Richard Henderson <rth@redhat.com>. + + This file is part of the GNU Transactional Memory Library (libitm). + + Libitm is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + Libitm is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU General Public License for + more details. + + Under Section 7 of GPL version 3, you are granted additional + permissions described in the GCC Runtime Library Exception, version + 3.1, as published by the Free Software Foundation. + + You should have received a copy of the GNU General Public License and + a copy of the GCC Runtime Library Exception along with this program; + see the files COPYING3 and COPYING.RUNTIME respectively. If not, see + <http://www.gnu.org/licenses/>. */ + +#include "libitm_i.h" +#include "dispatch.h" + +// ??? Use memcpy for now, until we have figured out how to best instantiate +// these loads/stores. +CREATE_DISPATCH_FUNCTIONS_T_MEMCPY(M64, GTM::abi_disp()->, ) +CREATE_DISPATCH_FUNCTIONS_T_MEMCPY(M128, GTM::abi_disp()->, ) + +void ITM_REGPARM +_ITM_LM64 (const _ITM_TYPE_M64 *ptr) +{ + GTM::GTM_LB (ptr, sizeof (*ptr)); +} + +void ITM_REGPARM +_ITM_LM128 (const _ITM_TYPE_M128 *ptr) +{ + GTM::GTM_LB (ptr, sizeof (*ptr)); +} |