xref: /netbsd-src/external/gpl3/gcc.old/lib/libgomp/arch/coldfire/libgomp_f.h (revision 36ac495d2b3ea2b9d96377b2143ebfedac224b92)
1*36ac495dSmrg /* This file is automatically generated.  DO NOT EDIT! */
2*36ac495dSmrg /* Generated from: NetBSD: mknative-gcc,v 1.87 2016/03/17 23:41:21 mrg Exp  */
3*36ac495dSmrg /* Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp  */
4*36ac495dSmrg 
5*36ac495dSmrg /* Copyright (C) 2005-2015 Free Software Foundation, Inc.
6*36ac495dSmrg    Contributed by Jakub Jelinek <jakub@redhat.com>.
7*36ac495dSmrg 
8*36ac495dSmrg    This file is part of the GNU Offloading and Multi Processing Library
9*36ac495dSmrg    (libgomp).
10*36ac495dSmrg 
11*36ac495dSmrg    Libgomp is free software; you can redistribute it and/or modify it
12*36ac495dSmrg    under the terms of the GNU General Public License as published by
13*36ac495dSmrg    the Free Software Foundation; either version 3, or (at your option)
14*36ac495dSmrg    any later version.
15*36ac495dSmrg 
16*36ac495dSmrg    Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
17*36ac495dSmrg    WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
18*36ac495dSmrg    FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
19*36ac495dSmrg    more details.
20*36ac495dSmrg 
21*36ac495dSmrg    Under Section 7 of GPL version 3, you are granted additional
22*36ac495dSmrg    permissions described in the GCC Runtime Library Exception, version
23*36ac495dSmrg    3.1, as published by the Free Software Foundation.
24*36ac495dSmrg 
25*36ac495dSmrg    You should have received a copy of the GNU General Public License and
26*36ac495dSmrg    a copy of the GCC Runtime Library Exception along with this program;
27*36ac495dSmrg    see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
28*36ac495dSmrg    <http://www.gnu.org/licenses/>.  */
29*36ac495dSmrg 
30*36ac495dSmrg /* This file contains prototypes of functions in the external ABI.
31*36ac495dSmrg    This file is included by files in the testsuite.  */
32*36ac495dSmrg 
33*36ac495dSmrg #ifndef LIBGOMP_F_H
34*36ac495dSmrg #define LIBGOMP_F_H 1
35*36ac495dSmrg 
36*36ac495dSmrg #include "libgomp.h"
37*36ac495dSmrg 
38*36ac495dSmrg #if (4 == 4) \
39*36ac495dSmrg     && (4 <= 4)
40*36ac495dSmrg # define OMP_LOCK_DIRECT
41*36ac495dSmrg typedef omp_lock_t *omp_lock_arg_t;
42*36ac495dSmrg # define omp_lock_arg(arg) (arg)
43*36ac495dSmrg #else
44*36ac495dSmrg typedef union { omp_lock_t *lock; uint64_t u; } *omp_lock_arg_t;
45*36ac495dSmrg # define omp_lock_arg(arg) ((arg)->lock)
46*36ac495dSmrg # endif
47*36ac495dSmrg 
48*36ac495dSmrg #if (12 == 8) \
49*36ac495dSmrg     && (4 <= 12)
50*36ac495dSmrg # define OMP_NEST_LOCK_DIRECT
51*36ac495dSmrg typedef omp_nest_lock_t *omp_nest_lock_arg_t;
52*36ac495dSmrg # define omp_nest_lock_arg(arg) (arg)
53*36ac495dSmrg #else
54*36ac495dSmrg typedef union { omp_nest_lock_t *lock; uint64_t u; } *omp_nest_lock_arg_t;
55*36ac495dSmrg # define omp_nest_lock_arg(arg) ((arg)->lock)
56*36ac495dSmrg # endif
57*36ac495dSmrg 
58*36ac495dSmrg #if (24 == 8) \
59*36ac495dSmrg     && (4 <= 24)
60*36ac495dSmrg # define OMP_LOCK_25_DIRECT
61*36ac495dSmrg typedef omp_lock_25_t *omp_lock_25_arg_t;
62*36ac495dSmrg # define omp_lock_25_arg(arg) (arg)
63*36ac495dSmrg #else
64*36ac495dSmrg typedef union { omp_lock_25_t *lock; uint64_t u; } *omp_lock_25_arg_t;
65*36ac495dSmrg # define omp_lock_25_arg(arg) ((arg)->lock)
66*36ac495dSmrg # endif
67*36ac495dSmrg 
68*36ac495dSmrg #if (28 == 8) \
69*36ac495dSmrg     && (4 <= 28)
70*36ac495dSmrg # define OMP_NEST_LOCK_25_DIRECT
71*36ac495dSmrg typedef omp_nest_lock_25_t *omp_nest_lock_25_arg_t;
72*36ac495dSmrg # define omp_nest_lock_25_arg(arg) (arg)
73*36ac495dSmrg #else
74*36ac495dSmrg typedef union { omp_nest_lock_25_t *lock; uint64_t u; } *omp_nest_lock_25_arg_t;
75*36ac495dSmrg # define omp_nest_lock_25_arg(arg) ((arg)->lock)
76*36ac495dSmrg # endif
77*36ac495dSmrg 
78*36ac495dSmrg static inline void
omp_check_defines(void)79*36ac495dSmrg omp_check_defines (void)
80*36ac495dSmrg {
81*36ac495dSmrg   char test[(4 != sizeof (omp_lock_t)
82*36ac495dSmrg 	     || 4 != __alignof (omp_lock_t)
83*36ac495dSmrg 	     || 12 != sizeof (omp_nest_lock_t)
84*36ac495dSmrg 	     || 4 != __alignof (omp_nest_lock_t)
85*36ac495dSmrg 	     || 4 != sizeof (*(omp_lock_arg_t) 0)
86*36ac495dSmrg 	     || 8 != sizeof (*(omp_nest_lock_arg_t) 0))
87*36ac495dSmrg 	    ? -1 : 1] __attribute__ ((__unused__));
88*36ac495dSmrg   char test2[(24 != sizeof (omp_lock_25_t)
89*36ac495dSmrg 	     || 4 != __alignof (omp_lock_25_t)
90*36ac495dSmrg 	     || 28 != sizeof (omp_nest_lock_25_t)
91*36ac495dSmrg 	     || 4 != __alignof (omp_nest_lock_25_t)
92*36ac495dSmrg 	     || 8 != sizeof (*(omp_lock_25_arg_t) 0)
93*36ac495dSmrg 	     || 8
94*36ac495dSmrg 		!= sizeof (*(omp_nest_lock_25_arg_t) 0))
95*36ac495dSmrg 	    ? -1 : 1] __attribute__ ((__unused__));
96*36ac495dSmrg }
97*36ac495dSmrg 
98*36ac495dSmrg #endif /* LIBGOMP_F_H */
99