annotate gcc/config/i386/gnu-user-common.h @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Common definitions for Intel 386 and AMD x86-64 systems using
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
2 GNU userspace. Copyright (C) 2012-2020 Free Software Foundation, Inc.
111
kono
parents:
diff changeset
3 Contributed by Ilya Enkovich.
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 This file is part of GCC.
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 GCC is free software; you can redistribute it and/or modify
kono
parents:
diff changeset
8 it under the terms of the GNU General Public License as published by
kono
parents:
diff changeset
9 the Free Software Foundation; either version 3, or (at your option)
kono
parents:
diff changeset
10 any later version.
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 GCC is distributed in the hope that it will be useful,
kono
parents:
diff changeset
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
kono
parents:
diff changeset
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
kono
parents:
diff changeset
15 GNU General Public License for more details.
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
18 along with GCC; see the file COPYING3. If not see
kono
parents:
diff changeset
19 <http://www.gnu.org/licenses/>. */
kono
parents:
diff changeset
20
kono
parents:
diff changeset
21 /* The svr4 ABI for the i386 says that records and unions are returned
kono
parents:
diff changeset
22 in memory. In the 64bit compilation we will turn this flag off in
kono
parents:
diff changeset
23 ix86_option_override_internal, as we never do pcc_struct_return
kono
parents:
diff changeset
24 scheme on this target. */
kono
parents:
diff changeset
25 #undef DEFAULT_PCC_STRUCT_RETURN
kono
parents:
diff changeset
26 #define DEFAULT_PCC_STRUCT_RETURN 1
kono
parents:
diff changeset
27
kono
parents:
diff changeset
28 /* We arrange for the whole %fs segment to map the tls area. */
kono
parents:
diff changeset
29 #undef TARGET_TLS_DIRECT_SEG_REFS_DEFAULT
kono
parents:
diff changeset
30 #define TARGET_TLS_DIRECT_SEG_REFS_DEFAULT MASK_TLS_DIRECT_SEG_REFS
kono
parents:
diff changeset
31
kono
parents:
diff changeset
32 #define TARGET_OS_CPP_BUILTINS() \
kono
parents:
diff changeset
33 do \
kono
parents:
diff changeset
34 { \
kono
parents:
diff changeset
35 GNU_USER_TARGET_OS_CPP_BUILTINS(); \
kono
parents:
diff changeset
36 } \
kono
parents:
diff changeset
37 while (0)
kono
parents:
diff changeset
38
kono
parents:
diff changeset
39 #undef CPP_SPEC
kono
parents:
diff changeset
40 #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
kono
parents:
diff changeset
41
kono
parents:
diff changeset
42 #undef GNU_USER_TARGET_CC1_SPEC
kono
parents:
diff changeset
43 #define GNU_USER_TARGET_CC1_SPEC "%(cc1_cpu) %{profile:-p}"
kono
parents:
diff changeset
44
kono
parents:
diff changeset
45 #undef CC1_SPEC
kono
parents:
diff changeset
46 #define CC1_SPEC GNU_USER_TARGET_CC1_SPEC
kono
parents:
diff changeset
47
kono
parents:
diff changeset
48 /* Similar to standard GNU userspace, but adding -ffast-math support. */
kono
parents:
diff changeset
49 #define GNU_USER_TARGET_MATHFILE_SPEC \
kono
parents:
diff changeset
50 "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \
kono
parents:
diff changeset
51 %{mpc32:crtprec32.o%s} \
kono
parents:
diff changeset
52 %{mpc64:crtprec64.o%s} \
kono
parents:
diff changeset
53 %{mpc80:crtprec80.o%s}"
kono
parents:
diff changeset
54
kono
parents:
diff changeset
55 #undef ENDFILE_SPEC
kono
parents:
diff changeset
56 #define ENDFILE_SPEC \
kono
parents:
diff changeset
57 GNU_USER_TARGET_MATHFILE_SPEC " " \
kono
parents:
diff changeset
58 GNU_USER_TARGET_ENDFILE_SPEC
kono
parents:
diff changeset
59
kono
parents:
diff changeset
60 #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
kono
parents:
diff changeset
61
kono
parents:
diff changeset
62 /* The stack pointer needs to be moved while checking the stack. */
kono
parents:
diff changeset
63 #define STACK_CHECK_MOVING_SP 1
kono
parents:
diff changeset
64
kono
parents:
diff changeset
65 /* Static stack checking is supported by means of probes. */
kono
parents:
diff changeset
66 #define STACK_CHECK_STATIC_BUILTIN 1
kono
parents:
diff changeset
67
kono
parents:
diff changeset
68 /* We only build the -fsplit-stack support in libgcc if the
kono
parents:
diff changeset
69 assembler has full support for the CFI directives. */
kono
parents:
diff changeset
70 #if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
kono
parents:
diff changeset
71 #define TARGET_CAN_SPLIT_STACK
kono
parents:
diff changeset
72 #endif