annotate gcc/config/i386/cygwin-w64.h @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 84e7813d76e9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Operating system specific defines to be used when targeting GCC for
kono
parents:
diff changeset
2 hosting on Windows 32/64 via Cygwin runtime, using GNU tools and
kono
parents:
diff changeset
3 the Windows API Library.
kono
parents:
diff changeset
4 Copyright (C) 2013-2017 Free Software Foundation, Inc.
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 This file is part of GCC.
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 GCC is free software; you can redistribute it and/or modify
kono
parents:
diff changeset
9 it under the terms of the GNU General Public License as published by
kono
parents:
diff changeset
10 the Free Software Foundation; either version 3, or (at your option)
kono
parents:
diff changeset
11 any later version.
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 GCC is distributed in the hope that it will be useful,
kono
parents:
diff changeset
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
kono
parents:
diff changeset
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
kono
parents:
diff changeset
16 GNU General Public License for more details.
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
19 along with GCC; see the file COPYING3. If not see
kono
parents:
diff changeset
20 <http://www.gnu.org/licenses/>. */
kono
parents:
diff changeset
21
kono
parents:
diff changeset
22 /* Enable multilib. */
kono
parents:
diff changeset
23
kono
parents:
diff changeset
24 #undef ASM_SPEC
kono
parents:
diff changeset
25 #define ASM_SPEC "%{m32:--32} %{m64:--64}"
kono
parents:
diff changeset
26
kono
parents:
diff changeset
27 /* To implement C++ function replacement we always wrap the cxx
kono
parents:
diff changeset
28 malloc-like operators. See N2800 #17.6.4.6 [replacement.functions] */
kono
parents:
diff changeset
29 #undef CXX_WRAP_SPEC_LIST
kono
parents:
diff changeset
30 #define CXX_WRAP_SPEC_LIST " \
kono
parents:
diff changeset
31 --wrap _Znwm \
kono
parents:
diff changeset
32 --wrap _Znam \
kono
parents:
diff changeset
33 --wrap _ZdlPv \
kono
parents:
diff changeset
34 --wrap _ZdaPv \
kono
parents:
diff changeset
35 --wrap _ZnwmRKSt9nothrow_t \
kono
parents:
diff changeset
36 --wrap _ZnamRKSt9nothrow_t \
kono
parents:
diff changeset
37 --wrap _ZdlPvRKSt9nothrow_t \
kono
parents:
diff changeset
38 --wrap _ZdaPvRKSt9nothrow_t \
kono
parents:
diff changeset
39 "
kono
parents:
diff changeset
40
kono
parents:
diff changeset
41 #undef SPEC_32
kono
parents:
diff changeset
42 #undef SPEC_64
kono
parents:
diff changeset
43 #define SPEC_32 "m32"
kono
parents:
diff changeset
44 #define SPEC_64 "!m32"
kono
parents:
diff changeset
45
kono
parents:
diff changeset
46 #undef SUB_LINK_ENTRY32
kono
parents:
diff changeset
47 #undef SUB_LINK_ENTRY64
kono
parents:
diff changeset
48 #define SUB_LINK_ENTRY32 "-e __cygwin_dll_entry@12"
kono
parents:
diff changeset
49 #define SUB_LINK_ENTRY64 "-e _cygwin_dll_entry"
kono
parents:
diff changeset
50
kono
parents:
diff changeset
51 #undef SUB_LINK_SPEC
kono
parents:
diff changeset
52 #undef SUB_LINK_ENTRY
kono
parents:
diff changeset
53 #define SUB_LINK_SPEC "%{" SPEC_64 ":-m i386pep} %{" SPEC_32 ":-m i386pe}"
kono
parents:
diff changeset
54 #define SUB_LINK_ENTRY "%{" SPEC_64 ":" SUB_LINK_ENTRY64 "} %{" SPEC_32 ":" SUB_LINK_ENTRY32 "}"
kono
parents:
diff changeset
55
kono
parents:
diff changeset
56 #undef MULTILIB_DEFAULTS
kono
parents:
diff changeset
57 #define MULTILIB_DEFAULTS { "m64" }
kono
parents:
diff changeset
58
kono
parents:
diff changeset
59 #undef LINK_SPEC
kono
parents:
diff changeset
60 #define LINK_SPEC SUB_LINK_SPEC "\
kono
parents:
diff changeset
61 %{mwindows:--subsystem windows} \
kono
parents:
diff changeset
62 %{mconsole:--subsystem console} \
kono
parents:
diff changeset
63 " CXX_WRAP_SPEC " \
kono
parents:
diff changeset
64 %{shared: %{mdll: %eshared and mdll are not compatible}} \
kono
parents:
diff changeset
65 %{shared: --shared} %{mdll:--dll} \
kono
parents:
diff changeset
66 %{static:-Bstatic} %{!static:-Bdynamic} \
kono
parents:
diff changeset
67 %{shared|mdll: " SUB_LINK_ENTRY " --enable-auto-image-base} \
kono
parents:
diff changeset
68 %(shared_libgcc_undefs) \
kono
parents:
diff changeset
69 --dll-search-prefix=cyg \
kono
parents:
diff changeset
70 %{!shared: %{!mdll: %{" SPEC_32 ":--large-address-aware} --tsaware}}"
kono
parents:
diff changeset
71
kono
parents:
diff changeset
72 /* Cygwin64 will have a 64-bit long type. */
kono
parents:
diff changeset
73 #undef LONG_TYPE_SIZE
kono
parents:
diff changeset
74 #undef LONG_TYPE_SIZE
kono
parents:
diff changeset
75 #define LONG_TYPE_SIZE (TARGET_64BIT ? 64 : 32)
kono
parents:
diff changeset
76
kono
parents:
diff changeset
77 /* Override default "long long unsigned int" from cygming.h. */
kono
parents:
diff changeset
78 #undef SIZE_TYPE
kono
parents:
diff changeset
79 #define SIZE_TYPE (TARGET_64BIT ? "long unsigned int" : "unsigned int")
kono
parents:
diff changeset
80 #undef PTRDIFF_TYPE
kono
parents:
diff changeset
81 #define PTRDIFF_TYPE (TARGET_64BIT ? "long int" : "int")
kono
parents:
diff changeset
82
kono
parents:
diff changeset
83 #undef LIBGCC_SONAME
kono
parents:
diff changeset
84 #define LIBGCC_SONAME "cyggcc_s-seh-1.dll"