release.sh changes & fixes
[minix3.git] / external / gpl3 / gcc / lib / libstdc++-v3 / arch / mips64el / cxxabi_tweaks.h
blob9c7518490a7eefc6464a4178433fd5137dc54fef
1 /* This file is automatically generated. DO NOT EDIT! */
2 /* Generated from: NetBSD: mknative-gcc,v 1.61 2011/07/03 12:26:02 mrg Exp */
3 /* Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp */
5 // Control various target specific ABI tweaks. Generic version.
7 // Copyright (C) 2004, 2006, 2008, 2009 Free Software Foundation, Inc.
8 //
9 // This file is part of the GNU ISO C++ Library. This library is free
10 // software; you can redistribute it and/or modify it under the
11 // terms of the GNU General Public License as published by the
12 // Free Software Foundation; either version 3, or (at your option)
13 // any later version.
15 // This library is distributed in the hope that it will be useful,
16 // but WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 // GNU General Public License for more details.
20 // Under Section 7 of GPL version 3, you are granted additional
21 // permissions described in the GCC Runtime Library Exception, version
22 // 3.1, as published by the Free Software Foundation.
24 // You should have received a copy of the GNU General Public License and
25 // a copy of the GCC Runtime Library Exception along with this program;
26 // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
27 // <http://www.gnu.org/licenses/>.
29 /** @file cxxabi_tweaks.h
30 * The header provides an CPU-variable interface to the C++ ABI.
33 #ifndef _CXXABI_TWEAKS_H
34 #define _CXXABI_TWEAKS_H 1
36 #ifdef __cplusplus
37 namespace __cxxabiv1
39 extern "C"
41 #endif
43 // The generic ABI uses the first byte of a 64-bit guard variable.
44 #define _GLIBCXX_GUARD_TEST(x) (*(char *) (x) != 0)
45 #define _GLIBCXX_GUARD_SET(x) *(char *) (x) = 1
46 #define _GLIBCXX_GUARD_BIT __guard_test_bit (0, 1)
47 #define _GLIBCXX_GUARD_PENDING_BIT __guard_test_bit (1, 1)
48 #define _GLIBCXX_GUARD_WAITING_BIT __guard_test_bit (2, 1)
49 __extension__ typedef int __guard __attribute__((mode (__DI__)));
51 // __cxa_vec_ctor has void return type.
52 typedef void __cxa_vec_ctor_return_type;
53 #define _GLIBCXX_CXA_VEC_CTOR_RETURN(x) return
54 // Constructors and destructors do not return a value.
55 typedef void __cxa_cdtor_return_type;
57 #ifdef __cplusplus
59 } // namespace __cxxabiv1
60 #endif
62 #endif