1219576Skargl/* This file is automatically generated. DO NOT EDIT! */ 2219576Skargl/* Generated from: NetBSD: mknative-gcc,v 1.113 2021/04/11 01:44:14 mrg Exp */ 3219576Skargl/* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp */ 4219576Skargl 5219576Skargl// Control various target specific ABI tweaks. Generic version. 6219576Skargl 7219576Skargl// Copyright (C) 2004-2020 Free Software Foundation, Inc. 8219576Skargl// 9219576Skargl// This file is part of the GNU ISO C++ Library. This library is free 10219576Skargl// software; you can redistribute it and/or modify it under the 11219576Skargl// terms of the GNU General Public License as published by the 12219576Skargl// Free Software Foundation; either version 3, or (at your option) 13219576Skargl// any later version. 14219576Skargl 15219576Skargl// This library is distributed in the hope that it will be useful, 16219576Skargl// but WITHOUT ANY WARRANTY; without even the implied warranty of 17219576Skargl// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18219576Skargl// GNU General Public License for more details. 19219576Skargl 20219576Skargl// Under Section 7 of GPL version 3, you are granted additional 21238924Skargl// permissions described in the GCC Runtime Library Exception, version 22219576Skargl// 3.1, as published by the Free Software Foundation. 23238924Skargl 24219576Skargl// You should have received a copy of the GNU General Public License and 25219576Skargl// a copy of the GCC Runtime Library Exception along with this program; 26219576Skargl// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 27219576Skargl// <http://www.gnu.org/licenses/>. 28219576Skargl 29219576Skargl/** @file bits/cxxabi_tweaks.h 30219576Skargl * This is an internal header file, included by other library headers. 31219576Skargl * Do not attempt to use it directly. @headername{cxxabi.h} 32219576Skargl */ 33219576Skargl 34219576Skargl#ifndef _CXXABI_TWEAKS_H 35219576Skargl#define _CXXABI_TWEAKS_H 1 36219576Skargl 37219576Skargl#ifdef __cplusplus 38219576Skarglnamespace __cxxabiv1 39219576Skargl{ 40219576Skargl extern "C" 41219576Skargl { 42219576Skargl#endif 43219576Skargl 44219576Skargl // The generic ABI uses the first byte of a 64-bit guard variable. 45219576Skargl#define _GLIBCXX_GUARD_TEST(x) (*(char *) (x) != 0) 46219576Skargl#define _GLIBCXX_GUARD_SET(x) *(char *) (x) = 1 47219576Skargl#define _GLIBCXX_GUARD_BIT __guard_test_bit (0, 1) 48219576Skargl#define _GLIBCXX_GUARD_PENDING_BIT __guard_test_bit (1, 1) 49219576Skargl#define _GLIBCXX_GUARD_WAITING_BIT __guard_test_bit (2, 1) 50219576Skargl __extension__ typedef int __guard __attribute__((mode (__DI__))); 51219576Skargl 52219576Skargl // __cxa_vec_ctor has void return type. 53219576Skargl typedef void __cxa_vec_ctor_return_type; 54219576Skargl#define _GLIBCXX_CXA_VEC_CTOR_RETURN(x) return 55219576Skargl // Constructors and destructors do not return a value. 56238782Skargl typedef void __cxa_cdtor_return_type; 57219576Skargl 58219576Skargl#ifdef __cplusplus 59238782Skargl } 60238782Skargl} // namespace __cxxabiv1 61219576Skargl#endif 62219576Skargl 63219576Skargl#endif 64219576Skargl