annotate gcc/config/aarch64/aarch64-freebsd.h @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Definitions for AArch64 running FreeBSD
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
2 Copyright (C) 2016-2018 Free Software Foundation, Inc.
111
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 This file is part of GCC.
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 GCC is free software; you can redistribute it and/or modify it
kono
parents:
diff changeset
7 under the terms of the GNU General Public License as published by
kono
parents:
diff changeset
8 the Free Software Foundation; either version 3, or (at your option)
kono
parents:
diff changeset
9 any later version.
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 GCC is distributed in the hope that it will be useful, but
kono
parents:
diff changeset
12 WITHOUT ANY WARRANTY; without even the implied warranty of
kono
parents:
diff changeset
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
kono
parents:
diff changeset
14 General Public License for more details.
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
17 along with GCC; see the file COPYING3. If not see
kono
parents:
diff changeset
18 <http://www.gnu.org/licenses/>. */
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 #ifndef GCC_AARCH64_FREEBSD_H
kono
parents:
diff changeset
21 #define GCC_AARCH64_FREEBSD_H
kono
parents:
diff changeset
22
kono
parents:
diff changeset
23 #undef SUBTARGET_CPP_SPEC
kono
parents:
diff changeset
24 #define SUBTARGET_CPP_SPEC FBSD_CPP_SPEC
kono
parents:
diff changeset
25
kono
parents:
diff changeset
26 #if TARGET_BIG_ENDIAN_DEFAULT
kono
parents:
diff changeset
27 #define TARGET_LINKER_EMULATION "aarch64fbsdb"
kono
parents:
diff changeset
28 #else
kono
parents:
diff changeset
29 #define TARGET_LINKER_EMULATION "aarch64fbsd"
kono
parents:
diff changeset
30 #endif
kono
parents:
diff changeset
31
kono
parents:
diff changeset
32 #undef SUBTARGET_EXTRA_LINK_SPEC
kono
parents:
diff changeset
33 #define SUBTARGET_EXTRA_LINK_SPEC " -m" TARGET_LINKER_EMULATION
kono
parents:
diff changeset
34
kono
parents:
diff changeset
35 #undef FBSD_TARGET_LINK_SPEC
kono
parents:
diff changeset
36 #define FBSD_TARGET_LINK_SPEC " \
kono
parents:
diff changeset
37 %{p:%nconsider using `-pg' instead of `-p' with gprof (1) } \
kono
parents:
diff changeset
38 %{v:-V} \
kono
parents:
diff changeset
39 %{assert*} %{R*} %{rpath*} %{defsym*} \
kono
parents:
diff changeset
40 %{shared:-Bshareable %{h*} %{soname*}} \
kono
parents:
diff changeset
41 %{symbolic:-Bsymbolic} \
kono
parents:
diff changeset
42 %{static:-Bstatic} \
kono
parents:
diff changeset
43 %{!static: \
kono
parents:
diff changeset
44 %{rdynamic:-export-dynamic} \
kono
parents:
diff changeset
45 %{!shared:-dynamic-linker " FBSD_DYNAMIC_LINKER " }} \
kono
parents:
diff changeset
46 -X" SUBTARGET_EXTRA_LINK_SPEC " \
kono
parents:
diff changeset
47 %{mbig-endian:-EB} %{mlittle-endian:-EL}"
kono
parents:
diff changeset
48
kono
parents:
diff changeset
49 #if TARGET_FIX_ERR_A53_835769_DEFAULT
kono
parents:
diff changeset
50 #define CA53_ERR_835769_SPEC \
kono
parents:
diff changeset
51 " %{!mno-fix-cortex-a53-835769:--fix-cortex-a53-835769}"
kono
parents:
diff changeset
52 #else
kono
parents:
diff changeset
53 #define CA53_ERR_835769_SPEC \
kono
parents:
diff changeset
54 " %{mfix-cortex-a53-835769:--fix-cortex-a53-835769}"
kono
parents:
diff changeset
55 #endif
kono
parents:
diff changeset
56
kono
parents:
diff changeset
57 #ifdef TARGET_FIX_ERR_A53_843419_DEFAULT
kono
parents:
diff changeset
58 #define CA53_ERR_843419_SPEC \
kono
parents:
diff changeset
59 " %{!mno-fix-cortex-a53-843419:--fix-cortex-a53-843419}"
kono
parents:
diff changeset
60 #else
kono
parents:
diff changeset
61 #define CA53_ERR_843419_SPEC \
kono
parents:
diff changeset
62 " %{mfix-cortex-a53-843419:--fix-cortex-a53-843419}"
kono
parents:
diff changeset
63 #endif
kono
parents:
diff changeset
64
kono
parents:
diff changeset
65 #undef LINK_SPEC
kono
parents:
diff changeset
66 #define LINK_SPEC FBSD_TARGET_LINK_SPEC \
kono
parents:
diff changeset
67 CA53_ERR_835769_SPEC \
kono
parents:
diff changeset
68 CA53_ERR_843419_SPEC
kono
parents:
diff changeset
69
kono
parents:
diff changeset
70 #define GNU_USER_TARGET_MATHFILE_SPEC \
kono
parents:
diff changeset
71 "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s}"
kono
parents:
diff changeset
72
kono
parents:
diff changeset
73 #undef ENDFILE_SPEC
kono
parents:
diff changeset
74 #define ENDFILE_SPEC \
kono
parents:
diff changeset
75 GNU_USER_TARGET_MATHFILE_SPEC " " \
kono
parents:
diff changeset
76 FBSD_ENDFILE_SPEC
kono
parents:
diff changeset
77
kono
parents:
diff changeset
78 #undef TARGET_OS_CPP_BUILTINS
kono
parents:
diff changeset
79 #define TARGET_OS_CPP_BUILTINS() \
kono
parents:
diff changeset
80 do \
kono
parents:
diff changeset
81 { \
kono
parents:
diff changeset
82 FBSD_TARGET_OS_CPP_BUILTINS (); \
kono
parents:
diff changeset
83 } \
kono
parents:
diff changeset
84 while (false)
kono
parents:
diff changeset
85
kono
parents:
diff changeset
86 #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
kono
parents:
diff changeset
87
kono
parents:
diff changeset
88 /* Uninitialized common symbols in non-PIE executables, even with
kono
parents:
diff changeset
89 strong definitions in dependent shared libraries, will resolve
kono
parents:
diff changeset
90 to COPY relocated symbol in the executable. See PR65780. */
kono
parents:
diff changeset
91 #undef TARGET_BINDS_LOCAL_P
kono
parents:
diff changeset
92 #define TARGET_BINDS_LOCAL_P default_binds_local_p_2
kono
parents:
diff changeset
93
kono
parents:
diff changeset
94 /* Use the AAPCS type for wchar_t, override the one from
kono
parents:
diff changeset
95 config/freebsd.h. */
kono
parents:
diff changeset
96 #undef WCHAR_TYPE
kono
parents:
diff changeset
97 #define WCHAR_TYPE "unsigned int"
kono
parents:
diff changeset
98
kono
parents:
diff changeset
99 #undef MCOUNT_NAME
kono
parents:
diff changeset
100 #define MCOUNT_NAME ".mcount"
kono
parents:
diff changeset
101
kono
parents:
diff changeset
102 #endif /* GCC_AARCH64_FREEBSD_H */