xref: /netbsd-src/external/gpl3/gcc.old/lib/libstdc++-v3/arch/mipsn64el/cxxabi_tweaks.h (revision 4c3eb207d36f67d31994830c0a694161fc1ca39b)
1*4c3eb207Smrg /* This file is automatically generated.  DO NOT EDIT! */
2*4c3eb207Smrg /* Generated from: NetBSD: mknative-gcc,v 1.113 2021/04/11 01:44:14 mrg Exp  */
3*4c3eb207Smrg /* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp  */
4*4c3eb207Smrg 
5*4c3eb207Smrg // Control various target specific ABI tweaks.  Generic version.
6*4c3eb207Smrg 
7*4c3eb207Smrg // Copyright (C) 2004-2020 Free Software Foundation, Inc.
8*4c3eb207Smrg //
9*4c3eb207Smrg // This file is part of the GNU ISO C++ Library.  This library is free
10*4c3eb207Smrg // software; you can redistribute it and/or modify it under the
11*4c3eb207Smrg // terms of the GNU General Public License as published by the
12*4c3eb207Smrg // Free Software Foundation; either version 3, or (at your option)
13*4c3eb207Smrg // any later version.
14*4c3eb207Smrg 
15*4c3eb207Smrg // This library is distributed in the hope that it will be useful,
16*4c3eb207Smrg // but WITHOUT ANY WARRANTY; without even the implied warranty of
17*4c3eb207Smrg // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*4c3eb207Smrg // GNU General Public License for more details.
19*4c3eb207Smrg 
20*4c3eb207Smrg // Under Section 7 of GPL version 3, you are granted additional
21*4c3eb207Smrg // permissions described in the GCC Runtime Library Exception, version
22*4c3eb207Smrg // 3.1, as published by the Free Software Foundation.
23*4c3eb207Smrg 
24*4c3eb207Smrg // You should have received a copy of the GNU General Public License and
25*4c3eb207Smrg // a copy of the GCC Runtime Library Exception along with this program;
26*4c3eb207Smrg // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
27*4c3eb207Smrg // <http://www.gnu.org/licenses/>.
28*4c3eb207Smrg 
29*4c3eb207Smrg /** @file bits/cxxabi_tweaks.h
30*4c3eb207Smrg  *  This is an internal header file, included by other library headers.
31*4c3eb207Smrg  *  Do not attempt to use it directly. @headername{cxxabi.h}
32*4c3eb207Smrg  */
33*4c3eb207Smrg 
34*4c3eb207Smrg #ifndef _CXXABI_TWEAKS_H
35*4c3eb207Smrg #define _CXXABI_TWEAKS_H 1
36*4c3eb207Smrg 
37*4c3eb207Smrg #ifdef __cplusplus
38*4c3eb207Smrg namespace __cxxabiv1
39*4c3eb207Smrg {
40*4c3eb207Smrg   extern "C"
41*4c3eb207Smrg   {
42*4c3eb207Smrg #endif
43*4c3eb207Smrg 
44*4c3eb207Smrg   // The generic ABI uses the first byte of a 64-bit guard variable.
45*4c3eb207Smrg #define _GLIBCXX_GUARD_TEST(x) (*(char *) (x) != 0)
46*4c3eb207Smrg #define _GLIBCXX_GUARD_SET(x) *(char *) (x) = 1
47*4c3eb207Smrg #define _GLIBCXX_GUARD_BIT __guard_test_bit (0, 1)
48*4c3eb207Smrg #define _GLIBCXX_GUARD_PENDING_BIT __guard_test_bit (1, 1)
49*4c3eb207Smrg #define _GLIBCXX_GUARD_WAITING_BIT __guard_test_bit (2, 1)
50*4c3eb207Smrg   __extension__ typedef int __guard __attribute__((mode (__DI__)));
51*4c3eb207Smrg 
52*4c3eb207Smrg   // __cxa_vec_ctor has void return type.
53*4c3eb207Smrg   typedef void __cxa_vec_ctor_return_type;
54*4c3eb207Smrg #define _GLIBCXX_CXA_VEC_CTOR_RETURN(x) return
55*4c3eb207Smrg   // Constructors and destructors do not return a value.
56*4c3eb207Smrg   typedef void __cxa_cdtor_return_type;
57*4c3eb207Smrg 
58*4c3eb207Smrg #ifdef __cplusplus
59*4c3eb207Smrg   }
60*4c3eb207Smrg } // namespace __cxxabiv1
61*4c3eb207Smrg #endif
62*4c3eb207Smrg 
63*4c3eb207Smrg #endif
64