]> gcc.gnu.org Git - gcc.git/blame - gcc/config/i386/gnu-user-common.h
Remove SF_SIZE etc. target macros.
[gcc.git] / gcc / config / i386 / gnu-user-common.h
CommitLineData
70a69509 1/* Common definitions for Intel 386 and AMD x86-64 systems using
23a5b65a 2 GNU userspace. Copyright (C) 2012-2014 Free Software Foundation, Inc.
70a69509
EI
3 Contributed by Ilya Enkovich.
4
5This file is part of GCC.
6
7GCC is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 3, or (at your option)
10any later version.
11
12GCC is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with GCC; see the file COPYING3. If not see
19<http://www.gnu.org/licenses/>. */
20
21/* The svr4 ABI for the i386 says that records and unions are returned
22 in memory. In the 64bit compilation we will turn this flag off in
23 ix86_option_override_internal, as we never do pcc_struct_return
24 scheme on this target. */
25#undef DEFAULT_PCC_STRUCT_RETURN
26#define DEFAULT_PCC_STRUCT_RETURN 1
27
28/* We arrange for the whole %fs segment to map the tls area. */
29#undef TARGET_TLS_DIRECT_SEG_REFS_DEFAULT
30#define TARGET_TLS_DIRECT_SEG_REFS_DEFAULT MASK_TLS_DIRECT_SEG_REFS
31
32#define TARGET_OS_CPP_BUILTINS() \
33 do \
34 { \
35 GNU_USER_TARGET_OS_CPP_BUILTINS(); \
36 } \
37 while (0)
38
39#undef CPP_SPEC
40#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
41
6acc8a3c
EI
42#undef GNU_USER_TARGET_CC1_SPEC
43#define GNU_USER_TARGET_CC1_SPEC "%(cc1_cpu) %{profile:-p}"
44
70a69509 45#undef CC1_SPEC
6acc8a3c 46#define CC1_SPEC GNU_USER_TARGET_CC1_SPEC
70a69509
EI
47
48/* Similar to standard GNU userspace, but adding -ffast-math support. */
6acc8a3c 49#define GNU_USER_TARGET_MATHFILE_SPEC \
70a69509
EI
50 "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \
51 %{mpc32:crtprec32.o%s} \
52 %{mpc64:crtprec64.o%s} \
6acc8a3c
EI
53 %{mpc80:crtprec80.o%s}"
54
55#undef ENDFILE_SPEC
56#define ENDFILE_SPEC \
57 GNU_USER_TARGET_MATHFILE_SPEC " " \
58 GNU_USER_TARGET_ENDFILE_SPEC
70a69509
EI
59
60/* Put all *tf routines in libgcc. */
61#undef LIBGCC2_HAS_TF_MODE
62#define LIBGCC2_HAS_TF_MODE 1
63#define LIBGCC2_TF_CEXT q
70a69509
EI
64
65#define TARGET_ASM_FILE_END file_end_indicate_exec_stack
66
67/* The stack pointer needs to be moved while checking the stack. */
68#define STACK_CHECK_MOVING_SP 1
69
70/* Static stack checking is supported by means of probes. */
71#define STACK_CHECK_STATIC_BUILTIN 1
This page took 0.698744 seconds and 5 git commands to generate.