1 /* Solaris support needed only by D front-end.
2 Copyright (C) 2018 Free Software Foundation, Inc.
4 GCC is free software; you can redistribute it and/or modify it under
5 the terms of the GNU General Public License as published by the Free
6 Software Foundation; either version 3, or (at your option) any later
9 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
10 WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 You should have received a copy of the GNU General Public License
15 along with GCC; see the file COPYING3. If not see
16 <http://www.gnu.org/licenses/>. */
20 #include "coretypes.h"
24 #include "d/d-target.h"
25 #include "d/d-target-def.h"
27 /* Implement TARGET_D_OS_VERSIONS for Solaris targets. */
30 solaris_d_os_builtins (void)
32 d_add_builtin_version ("Posix");
33 d_add_builtin_version ("Solaris"); \
36 /* Implement TARGET_D_CRITSEC_SIZE for Solaris targets. */
39 solaris_d_critsec_size (void)
41 /* This is the sizeof pthread_mutex_t. */
45 #undef TARGET_D_OS_VERSIONS
46 #define TARGET_D_OS_VERSIONS solaris_d_os_builtins
48 #undef TARGET_D_CRITSEC_SIZE
49 #define TARGET_D_CRITSEC_SIZE solaris_d_critsec_size
51 struct gcc_targetdm targetdm
= TARGETDM_INITIALIZER
;