xref: /netbsd-src/external/gpl3/gcc.old/lib/libgomp/arch/sparc/libgomp_f.h (revision 8feb0f0b7eaff0608f8350bbfa3098827b4bb91b)
136ac495dSmrg /* This file is automatically generated.  DO NOT EDIT! */
2*8feb0f0bSmrg /* Generated from: NetBSD: mknative-gcc,v 1.113 2021/04/11 01:44:14 mrg Exp  */
336ac495dSmrg /* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp  */
436ac495dSmrg 
5*8feb0f0bSmrg /* Copyright (C) 2005-2020 Free Software Foundation, Inc.
636ac495dSmrg    Contributed by Jakub Jelinek <jakub@redhat.com>.
736ac495dSmrg 
836ac495dSmrg    This file is part of the GNU Offloading and Multi Processing Library
936ac495dSmrg    (libgomp).
1036ac495dSmrg 
1136ac495dSmrg    Libgomp is free software; you can redistribute it and/or modify it
1236ac495dSmrg    under the terms of the GNU General Public License as published by
1336ac495dSmrg    the Free Software Foundation; either version 3, or (at your option)
1436ac495dSmrg    any later version.
1536ac495dSmrg 
1636ac495dSmrg    Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
1736ac495dSmrg    WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
1836ac495dSmrg    FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
1936ac495dSmrg    more details.
2036ac495dSmrg 
2136ac495dSmrg    Under Section 7 of GPL version 3, you are granted additional
2236ac495dSmrg    permissions described in the GCC Runtime Library Exception, version
2336ac495dSmrg    3.1, as published by the Free Software Foundation.
2436ac495dSmrg 
2536ac495dSmrg    You should have received a copy of the GNU General Public License and
2636ac495dSmrg    a copy of the GCC Runtime Library Exception along with this program;
2736ac495dSmrg    see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
2836ac495dSmrg    <http://www.gnu.org/licenses/>.  */
2936ac495dSmrg 
3036ac495dSmrg /* This file contains prototypes of functions in the external ABI.
3136ac495dSmrg    This file is included by files in the testsuite.  */
3236ac495dSmrg 
3336ac495dSmrg #ifndef LIBGOMP_F_H
3436ac495dSmrg #define LIBGOMP_F_H 1
3536ac495dSmrg 
3636ac495dSmrg #include "libgomp.h"
3736ac495dSmrg 
3836ac495dSmrg #if (4 == 4) \
3936ac495dSmrg     && (4 <= 4)
4036ac495dSmrg # define OMP_LOCK_DIRECT
4136ac495dSmrg typedef omp_lock_t *omp_lock_arg_t;
4236ac495dSmrg # define omp_lock_arg(arg) (arg)
4336ac495dSmrg #else
4436ac495dSmrg typedef union { omp_lock_t *lock; uint64_t u; } *omp_lock_arg_t;
4536ac495dSmrg # define omp_lock_arg(arg) ((arg)->lock)
4636ac495dSmrg # endif
4736ac495dSmrg 
4836ac495dSmrg #if (12 == 8) \
4936ac495dSmrg     && (4 <= 12)
5036ac495dSmrg # define OMP_NEST_LOCK_DIRECT
5136ac495dSmrg typedef omp_nest_lock_t *omp_nest_lock_arg_t;
5236ac495dSmrg # define omp_nest_lock_arg(arg) (arg)
5336ac495dSmrg #else
5436ac495dSmrg typedef union { omp_nest_lock_t *lock; uint64_t u; } *omp_nest_lock_arg_t;
5536ac495dSmrg # define omp_nest_lock_arg(arg) ((arg)->lock)
5636ac495dSmrg # endif
5736ac495dSmrg 
5836ac495dSmrg #if (28 == 8) \
5936ac495dSmrg     && (4 <= 28)
6036ac495dSmrg # define OMP_LOCK_25_DIRECT
6136ac495dSmrg typedef omp_lock_25_t *omp_lock_25_arg_t;
6236ac495dSmrg # define omp_lock_25_arg(arg) (arg)
6336ac495dSmrg #else
6436ac495dSmrg typedef union { omp_lock_25_t *lock; uint64_t u; } *omp_lock_25_arg_t;
6536ac495dSmrg # define omp_lock_25_arg(arg) ((arg)->lock)
6636ac495dSmrg # endif
6736ac495dSmrg 
6836ac495dSmrg #if (32 == 8) \
6936ac495dSmrg     && (4 <= 32)
7036ac495dSmrg # define OMP_NEST_LOCK_25_DIRECT
7136ac495dSmrg typedef omp_nest_lock_25_t *omp_nest_lock_25_arg_t;
7236ac495dSmrg # define omp_nest_lock_25_arg(arg) (arg)
7336ac495dSmrg #else
7436ac495dSmrg typedef union { omp_nest_lock_25_t *lock; uint64_t u; } *omp_nest_lock_25_arg_t;
7536ac495dSmrg # define omp_nest_lock_25_arg(arg) ((arg)->lock)
7636ac495dSmrg # endif
7736ac495dSmrg 
7836ac495dSmrg static inline void
omp_check_defines(void)7936ac495dSmrg omp_check_defines (void)
8036ac495dSmrg {
8136ac495dSmrg   char test[(4 != sizeof (omp_lock_t)
8236ac495dSmrg 	     || 4 != __alignof (omp_lock_t)
8336ac495dSmrg 	     || 12 != sizeof (omp_nest_lock_t)
8436ac495dSmrg 	     || 4 != __alignof (omp_nest_lock_t)
8536ac495dSmrg 	     || 4 != sizeof (*(omp_lock_arg_t) 0)
8636ac495dSmrg 	     || 8 != sizeof (*(omp_nest_lock_arg_t) 0))
8736ac495dSmrg 	    ? -1 : 1] __attribute__ ((__unused__));
8836ac495dSmrg   char test2[(28 != sizeof (omp_lock_25_t)
8936ac495dSmrg 	     || 4 != __alignof (omp_lock_25_t)
9036ac495dSmrg 	     || 32 != sizeof (omp_nest_lock_25_t)
9136ac495dSmrg 	     || 4 != __alignof (omp_nest_lock_25_t)
9236ac495dSmrg 	     || 8 != sizeof (*(omp_lock_25_arg_t) 0)
9336ac495dSmrg 	     || 8
9436ac495dSmrg 		!= sizeof (*(omp_nest_lock_25_arg_t) 0))
9536ac495dSmrg 	    ? -1 : 1] __attribute__ ((__unused__));
9636ac495dSmrg }
9736ac495dSmrg 
9836ac495dSmrg #endif /* LIBGOMP_F_H */
99