diff options
Diffstat (limited to 'gcc-4.4.3/libstdc++-v3/config/cpu/generic')
5 files changed, 0 insertions, 244 deletions
diff --git a/gcc-4.4.3/libstdc++-v3/config/cpu/generic/atomic_word.h b/gcc-4.4.3/libstdc++-v3/config/cpu/generic/atomic_word.h deleted file mode 100644 index f2bdbbc96..000000000 --- a/gcc-4.4.3/libstdc++-v3/config/cpu/generic/atomic_word.h +++ /dev/null @@ -1,47 +0,0 @@ -// Low-level type for atomic operations -*- C++ -*- - -// Copyright (C) 2004, 2009 Free Software Foundation, Inc. -// -// This file is part of the GNU ISO C++ Library. This library 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, or (at your option) -// any later version. - -// This library 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/>. - -/** @file atomic_word.h - * This file is a GNU extension to the Standard C++ Library. - */ - -#ifndef _GLIBCXX_ATOMIC_WORD_H -#define _GLIBCXX_ATOMIC_WORD_H 1 - -typedef int _Atomic_word; - -// Define these two macros using the appropriate memory barrier for the target. -// The commented out versions below are the defaults. -// See ia64/atomic_word.h for an alternative approach. - -// This one prevents loads from being hoisted across the barrier; -// in other words, this is a Load-Load acquire barrier. -// This is necessary iff TARGET_RELAXED_ORDERING is defined in tm.h. -// #define _GLIBCXX_READ_MEM_BARRIER __asm __volatile ("":::"memory") - -// This one prevents stores from being sunk across the barrier; in other -// words, a Store-Store release barrier. -// #define _GLIBCXX_WRITE_MEM_BARRIER __asm __volatile ("":::"memory") - -#endif diff --git a/gcc-4.4.3/libstdc++-v3/config/cpu/generic/atomicity_builtins/atomicity.h b/gcc-4.4.3/libstdc++-v3/config/cpu/generic/atomicity_builtins/atomicity.h deleted file mode 100644 index 9b3b997db..000000000 --- a/gcc-4.4.3/libstdc++-v3/config/cpu/generic/atomicity_builtins/atomicity.h +++ /dev/null @@ -1,45 +0,0 @@ -// Low-level functions for atomic operations: version for CPUs providing -// atomic builtins -*- C++ -*- - -// Copyright (C) 2006, 2009 Free Software Foundation, Inc. -// -// This file is part of the GNU ISO C++ Library. This library 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, or (at your option) -// any later version. - -// This library 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/>. - -/** @file ext/atomicity.h - * This file is a GNU extension to the Standard C++ Library. - */ - -#include <bits/c++config.h> -#include <bits/atomic_word.h> - -_GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) - - _Atomic_word - __attribute__ ((__unused__)) - __exchange_and_add(volatile _Atomic_word* __mem, int __val) - { return __sync_fetch_and_add(__mem, __val); } - - void - __attribute__ ((__unused__)) - __atomic_add(volatile _Atomic_word* __mem, int __val) - { __sync_fetch_and_add(__mem, __val); } - -_GLIBCXX_END_NAMESPACE diff --git a/gcc-4.4.3/libstdc++-v3/config/cpu/generic/atomicity_mutex/atomicity.h b/gcc-4.4.3/libstdc++-v3/config/cpu/generic/atomicity_mutex/atomicity.h deleted file mode 100644 index d8a5245c6..000000000 --- a/gcc-4.4.3/libstdc++-v3/config/cpu/generic/atomicity_mutex/atomicity.h +++ /dev/null @@ -1,61 +0,0 @@ -// Low-level functions for atomic operations: Generic version -*- C++ -*- - -// Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005, 2006, 2009 -// Free Software Foundation, Inc. -// -// This file is part of the GNU ISO C++ Library. This library 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, or (at your option) -// any later version. - -// This library 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/>. - -/** @file ext/atomicity.h - * This file is a GNU extension to the Standard C++ Library. - */ - -#include <ext/atomicity.h> -#include <ext/concurrence.h> - -namespace -{ - __gnu_cxx::__mutex& - get_atomic_mutex() - { - static __gnu_cxx::__mutex atomic_mutex; - return atomic_mutex; - } -} // anonymous namespace - -_GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) - - _Atomic_word - __attribute__ ((__unused__)) - __exchange_and_add(volatile _Atomic_word* __mem, int __val) - { - __gnu_cxx::__scoped_lock sentry(get_atomic_mutex()); - _Atomic_word __result; - __result = *__mem; - *__mem += __val; - return __result; - } - - void - __attribute__ ((__unused__)) - __atomic_add(volatile _Atomic_word* __mem, int __val) - { __exchange_and_add(__mem, __val); } - -_GLIBCXX_END_NAMESPACE diff --git a/gcc-4.4.3/libstdc++-v3/config/cpu/generic/cpu_defines.h b/gcc-4.4.3/libstdc++-v3/config/cpu/generic/cpu_defines.h deleted file mode 100644 index faf97e17e..000000000 --- a/gcc-4.4.3/libstdc++-v3/config/cpu/generic/cpu_defines.h +++ /dev/null @@ -1,33 +0,0 @@ -// Specific definitions for generic platforms -*- C++ -*- - -// Copyright (C) 2005, 2009 Free Software Foundation, Inc. -// -// This file is part of the GNU ISO C++ Library. This library 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, or (at your option) -// any later version. - -// This library 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/>. - -/** @file cpu_defines.h - * This is an internal header file, included by other library headers. - * You should not attempt to use it directly. - */ - -#ifndef _GLIBCXX_CPU_DEFINES -#define _GLIBCXX_CPU_DEFINES 1 - -#endif diff --git a/gcc-4.4.3/libstdc++-v3/config/cpu/generic/cxxabi_tweaks.h b/gcc-4.4.3/libstdc++-v3/config/cpu/generic/cxxabi_tweaks.h deleted file mode 100644 index 8354691e1..000000000 --- a/gcc-4.4.3/libstdc++-v3/config/cpu/generic/cxxabi_tweaks.h +++ /dev/null @@ -1,58 +0,0 @@ -// Control various target specific ABI tweaks. Generic version. - -// Copyright (C) 2004, 2006, 2008, 2009 Free Software Foundation, Inc. -// -// This file is part of the GNU ISO C++ Library. This library 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, or (at your option) -// any later version. - -// This library 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/>. - -/** @file cxxabi_tweaks.h - * The header provides an CPU-variable interface to the C++ ABI. - */ - -#ifndef _CXXABI_TWEAKS_H -#define _CXXABI_TWEAKS_H 1 - -#ifdef __cplusplus -namespace __cxxabiv1 -{ - extern "C" - { -#endif - - // The generic ABI uses the first byte of a 64-bit guard variable. -#define _GLIBCXX_GUARD_TEST(x) (*(char *) (x) != 0) -#define _GLIBCXX_GUARD_SET(x) *(char *) (x) = 1 -#define _GLIBCXX_GUARD_BIT __guard_test_bit (0, 1) -#define _GLIBCXX_GUARD_PENDING_BIT __guard_test_bit (1, 1) -#define _GLIBCXX_GUARD_WAITING_BIT __guard_test_bit (2, 1) - __extension__ typedef int __guard __attribute__((mode (__DI__))); - - // __cxa_vec_ctor has void return type. - typedef void __cxa_vec_ctor_return_type; -#define _GLIBCXX_CXA_VEC_CTOR_RETURN(x) return - // Constructors and destructors do not return a value. - typedef void __cxa_cdtor_return_type; - -#ifdef __cplusplus - } -} // namespace __cxxabiv1 -#endif - -#endif |