1107665Simp/* This file is automatically generated. DO NOT EDIT! */ 2209583Simp/* Generated from: NetBSD: mknative-gcc,v 1.113 2021/04/11 01:44:14 mrg Exp */ 3107665Simp/* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp */ 4107665Simp 5107665Simp// Control various target specific ABI tweaks. Generic version. 6107665Simp 7107665Simp// Copyright (C) 2004-2020 Free Software Foundation, Inc. 8107665Simp// 9107665Simp// This file is part of the GNU ISO C++ Library. This library is free 10107665Simp// software; you can redistribute it and/or modify it under the 11107665Simp// terms of the GNU General Public License as published by the 12107665Simp// Free Software Foundation; either version 3, or (at your option) 13107665Simp// any later version. 14107665Simp 15107665Simp// This library is distributed in the hope that it will be useful, 16107665Simp// but WITHOUT ANY WARRANTY; without even the implied warranty of 17107665Simp// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18107665Simp// GNU General Public License for more details. 19107665Simp 20107665Simp// Under Section 7 of GPL version 3, you are granted additional 21107665Simp// permissions described in the GCC Runtime Library Exception, version 22107665Simp// 3.1, as published by the Free Software Foundation. 23107665Simp 24107665Simp// You should have received a copy of the GNU General Public License and 25209583Simp// a copy of the GCC Runtime Library Exception along with this program; 26209583Simp// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 27209583Simp// <http://www.gnu.org/licenses/>. 28209583Simp 29209583Simp/** @file bits/cxxabi_tweaks.h 30209583Simp * This is an internal header file, included by other library headers. 31209583Simp * Do not attempt to use it directly. @headername{cxxabi.h} 32209583Simp */ 33209583Simp 34209583Simp#ifndef _CXXABI_TWEAKS_H 35209583Simp#define _CXXABI_TWEAKS_H 1 36209583Simp 37209583Simp#ifdef __cplusplus 38209583Simpnamespace __cxxabiv1 39209583Simp{ 40209583Simp extern "C" 41209583Simp { 42209583Simp#endif 43209583Simp 44209583Simp // The generic ABI uses the first byte of a 64-bit guard variable. 45209583Simp#define _GLIBCXX_GUARD_TEST(x) (*(char *) (x) != 0) 46209583Simp#define _GLIBCXX_GUARD_SET(x) *(char *) (x) = 1 47209583Simp#define _GLIBCXX_GUARD_BIT __guard_test_bit (0, 1) 48209583Simp#define _GLIBCXX_GUARD_PENDING_BIT __guard_test_bit (1, 1) 49209583Simp#define _GLIBCXX_GUARD_WAITING_BIT __guard_test_bit (2, 1) 50209583Simp __extension__ typedef int __guard __attribute__((mode (__DI__))); 51209583Simp 52209583Simp // __cxa_vec_ctor has void return type. 53209583Simp typedef void __cxa_vec_ctor_return_type; 54107665Simp#define _GLIBCXX_CXA_VEC_CTOR_RETURN(x) return 55107665Simp // Constructors and destructors do not return a value. 56107665Simp typedef void __cxa_cdtor_return_type; 57107665Simp 58107665Simp#ifdef __cplusplus 59107665Simp } 60107665Simp} // namespace __cxxabiv1 61107665Simp#endif 62131397Simp 63107665Simp#endif 64107665Simp