]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/sol2-d.c
Update copyright years.
[thirdparty/gcc.git] / gcc / config / sol2-d.c
CommitLineData
cdb3f2f4 1/* Solaris support needed only by D front-end.
8d9254fc 2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
cdb3f2f4
RO
3
4GCC is free software; you can redistribute it and/or modify it under
5the terms of the GNU General Public License as published by the Free
6Software Foundation; either version 3, or (at your option) any later
7version.
8
9GCC is distributed in the hope that it will be useful, but WITHOUT ANY
10WARRANTY; without even the implied warranty of MERCHANTABILITY or
11FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12for more details.
13
14You should have received a copy of the GNU General Public License
15along with GCC; see the file COPYING3. If not see
16<http://www.gnu.org/licenses/>. */
17
18#include "config.h"
19#include "system.h"
20#include "coretypes.h"
21#include "tm.h"
22#include "memmodel.h"
23#include "tm_p.h"
24#include "d/d-target.h"
25#include "d/d-target-def.h"
26
27/* Implement TARGET_D_OS_VERSIONS for Solaris targets. */
28
29static void
30solaris_d_os_builtins (void)
31{
32 d_add_builtin_version ("Posix");
33 d_add_builtin_version ("Solaris"); \
34}
35
36/* Implement TARGET_D_CRITSEC_SIZE for Solaris targets. */
37
38static unsigned
39solaris_d_critsec_size (void)
40{
41 /* This is the sizeof pthread_mutex_t. */
42 return 24;
43}
44
45#undef TARGET_D_OS_VERSIONS
46#define TARGET_D_OS_VERSIONS solaris_d_os_builtins
47
48#undef TARGET_D_CRITSEC_SIZE
49#define TARGET_D_CRITSEC_SIZE solaris_d_critsec_size
50
51struct gcc_targetdm targetdm = TARGETDM_INITIALIZER;