]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/config/darwin-d.c
Update copyright years.
[thirdparty/gcc.git] / gcc / config / darwin-d.c
1 /* Darwin support needed only by D front-end.
2 Copyright (C) 2020-2021 Free Software Foundation, Inc.
3
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
7 version.
8
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
12 for more details.
13
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/>. */
17
18 #include "config.h"
19 #include "system.h"
20 #include "coretypes.h"
21 #include "tm_d.h"
22 #include "d/d-target.h"
23 #include "d/d-target-def.h"
24
25 /* Implement TARGET_D_OS_VERSIONS for Darwin targets. */
26
27 static void
28 darwin_d_os_builtins (void)
29 {
30 d_add_builtin_version ("Posix");
31 d_add_builtin_version ("OSX");
32 d_add_builtin_version ("darwin");
33 }
34
35 #undef TARGET_D_OS_VERSIONS
36 #define TARGET_D_OS_VERSIONS darwin_d_os_builtins
37
38 /* Define TARGET_D_MINFO_SECTION for Darwin targets. */
39
40 #undef TARGET_D_MINFO_SECTION
41 #define TARGET_D_MINFO_SECTION "__DATA,__minfodata"
42
43 #undef TARGET_D_MINFO_START_NAME
44 #define TARGET_D_MINFO_START_NAME "*section$start$__DATA$__minfodata"
45
46 #undef TARGET_D_MINFO_END_NAME
47 #define TARGET_D_MINFO_END_NAME "*section$end$__DATA$__minfodata"
48
49 struct gcc_targetdm targetdm = TARGETDM_INITIALIZER;